Change::SQL::Query
Inherits Reference < Object
Constructors
new
SourceInstance methods
from(source : String) : self
Sourcefroms
Sourcelimit(number) : self
Sourcelimit
Sourcelimit=(limit : Int32 | Nil)
Sourcelimit?
Sourceoffset(number) : self
Sourceoffset
Sourceoffset=(offset : Int32 | Nil)
Sourceoffset?
Sourceonly_from(source : String) : self
Sourceonly_order(orders) : self
Sourceonly_select(columns : Array) : self
The only_ methods are clones of all the other methods, but clear out
any other existing entries in that expression list beforehand.
Using these methods can guarantee that values are controlled and not composed with any previous values.
only_update(updates) : self
Sourceonly_where(conditions) : self
Sourceorder(orders) : self
Sourceorder
Sourceorders
Sourceselect(columns : Array) : self
Sourceselects
Sourceupdate(updates) : self
Sourceupdate
Sourceupdates
Sourcewhere(conditions) : self
Sourcewhere
Sourcewithout_limit
LIMIT and OFFSET do not have only_ methods, since they can only
contain a single value to start with. Instead, they have without
methods to remove any existing value
without_offset
Source