Avram::QueryBuilder
Constructors
Instance methods
args
Sourceargs_for_update(params)
Sourcedelete
Sourcedistinct
Sourcedistinct?
Sourcedistinct_on(column : ColumnName) : self
Sourcedistinct_on
Sourcefor_update
Sourcegroup_by(column : ColumnName) : self
Sourcegroup_sql
Sourcegrouped?
Sourcegroups
Sourcehas_distinct_on?
Sourcejoin(join_clause : Avram::Join::SqlClause) : self
Sourcejoins
Sourcelimit
Sourcemerge(query_to_merge : Avram::QueryBuilder)
Merges the wheres, joins, and orders from the passed in query
offset
Sourceor
Sourceorder_by(order : OrderByClause) : self
Sourceorder_sql
Sourceordered?
Sourceordered_randomly?
Sourceorders
Sourcerandom_order
Sourcereset_order
Sourcereset_where(column : ColumnName) : self
Sourcereverse_order
Sourceselect_average(column : ColumnName) : self
Sourceselect_count
Sourceselect_max(column : ColumnName) : self
Sourceselect_min(column : ColumnName) : self
Sourceselect_sum(column : ColumnName) : self
Sourceselects
Sourcestatement
Sourcestatement!
Sourcestatement_for_update!(params, return_columns returning : Bool = true)
Creates the SQL for updating. If any joins are present, it moves the WHERE clause to a subquery allowing for joins
table
Sourceto_prepared_sql
Prepares the SQL statement by combining the args and statement
in to a single String
to_sql
Sourcewhere(where_clause : Avram::Where::Condition) : self
Sourcewheres
Source