class Sqlite3::QueryBuilder

Defined in:

sqlite3/query_builder.cr

Instance Method Summary

Instance methods inherited from class QueryBuilder::SqlBuilder(Bool | Float32 | Float64 | Int32 | Int64 | Slice(UInt8) | String | Time | Nil)

build : String build, params : Array(T | T | T | T | T | T(UInt8) | T | T | T) params

Instance Method Detail

def build : String #

[View source]
def columns(insert_columns : Array(String | Projection)) #

[View source]
def columns(*insert_columns) #

[View source]
def delete(table : String) #

Delete


[View source]
def delete(table : From) #

[View source]
def distinct #

[View source]
def from(table : String) #

[View source]
def from(subquery : SqlBuilder) #

[View source]
def from(from : From) #

[View source]
def from_select(subquery : SqlBuilder) #

[View source]
def group_by(*columns) #

[View source]
def having(criteria : Criteria) #

[View source]
def inner_join(table : String, condition : String) #

[View source]
def insert #

Insert specifics


[View source]
def into(table : String, aliased_name : String | Nil = nil) #

[View source]
def into(table : From) #

[View source]
def join(table : String, condition : String) #

[View source]
def left_join(table : String, condition : String) #

[View source]
def limit(rows : Int32, offset : DB::Any | Nil = nil) #

[View source]
def not_distinct #

[View source]
def or(criteria : Criteria) #

[View source]
def or(**conditions) #

[View source]
def order_by(*columns, sort : String = "ASC", ignore_case : Bool = false) #

[View source]
def params : Array(DB::Any) #

[View source]
def reset! #

[View source]
def reset_group_by! #

[View source]
def reset_limit! #

[View source]
def reset_order_by! #

[View source]
def select(columns : Array(String | Projection)) #

[View source]
def select(*columns) #

[View source]
def set(column : String, value : T | T | T | T | T | T(UInt8) | T | T | T) #

[View source]
def set(column : Projection, value : T | T | T | T | T | T(UInt8) | T | T | T) #

[View source]
def union(query : SqlBuilder) #

[View source]
def union_all(query : SqlBuilder) #

[View source]
def update(table : String) #

Update specifics


[View source]
def update(table : From) #

[View source]
def values(ivalues : Array(DB::Any)) #

[View source]
def values(*ivalues) #

[View source]
def where(criteria : Criteria) #

[View source]
def where(**conditions) #

[View source]