Class Rubernate::Queries::Query
In: rubernate/queries.rb
Parent: Expr

Represents context in which query building executes Holds constraints tables and so on.


OrderBy   Select   Where   markers   new   params   to_sql  

Included Modules


Public Class methods

Accepts query as string or as block and executes it.

Public Instance methods

Declares +Order By+ clause.

Next section contains methods available during query construction. Declares objects for selection. The first argument will be result object.

Declares Where clause.

Returns markers used in query in valid order.

Arranges map: values {marker=>value} to ordered array of values accroding to markers in query.

Generates SQL for entire query.