class

Change::SQL::Query

Inherits Reference < Object

Constructors

Instance methods

from(source : String) : self
Source
froms
Source
froms=(froms : Array(Change::SQL::FromExpr))
Source
limit(number) : self
Source
limit
Source
limit=(limit : Int32 | Nil)
Source
limit?
Source
offset(number) : self
Source
offset
Source
offset=(offset : Int32 | Nil)
Source
offset?
Source
only_from(source : String) : self
Source
only_order(orders) : self
Source
only_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.

Source
only_update(updates) : self
Source
only_where(conditions) : self
Source
order(orders) : self
Source
order
Source
orders
Source
orders=(orders : Array(Change::SQL::OrderExpr))
Source
select(columns : Array) : self
Source
selects
Source
selects=(selects : Array(Change::SQL::SelectExpr))
Source
update(updates) : self
Source
update
Source
updates
Source
updates=(updates : Array(Change::SQL::UpdateExpr))
Source
where(conditions) : self
Source
where
Source
wheres

Currently all ANDd together

Source
wheres=(wheres : Array(Change::SQL::WhereExpr))

Currently all ANDd together

Source
without_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

Source
without_offset
Source