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

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

Methods

OrderBy   Select   Where   markers   new   params   to_sql  

Included Modules

Operations

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.

[Validate]