Spacetime::SQL
Fluent, allocation-light SQL query builder for SpacetimeDB subscriptions and one-off queries.
Example:
query = Spacetime::SQL.select_from("users")
.where_eq("online", true)
.where_gt("score", 100)
.to_sql
# => "SELECT * FROM users WHERE online = TRUE AND score > 100"
Constructors
Class methods
Instance methods
columns
Sourceconditions
Sourcelimit_count
Sourcetable
SourceAppends a short String representation of this object which includes its class name and its object address.
class Person
def initialize(@name : String, @age : Int32)
end
end
Person.new("John", 32).to_s # => #<Person:0x10a199f20>
to_sql
Source