class

Spacetime::SqlStmtResult

Inherits Reference < Object

Result of a single SQL statement returned by POST /v1/database/:name/sql.

Constructors

from_sats_json(any : JSON::Any) : self
Source
new(schema : SATS::ProductType, rows : Array(SATS::ProductValue), total_duration_micros : UInt64 = 0_u64, stats : SqlStmtStats = SqlStmtStats.new)
Source

Instance methods

decode_rows(type : T.class) : Array(T) forall T

Maps each row in this result set to a strongly-typed T (which includes Spacetime::Serializable).

Source
rows
Source
schema
Source
stats
Source
total_duration_micros
Source