class Crorm::Schema

Defined in:

crorm/schema.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(table : String, dialect : Dialect = :sqlite) #

[View source]

Instance Method Detail

def db_fields : Array(String) #

[View source]
def delete_stmt(fields = @pk_fields) #

[View source]
def delete_stmt(&) #

[View source]
def insert_fields : Array(String) #

[View source]
def insert_stmt #

[View source]
def insert_stmt(&) #

[View source]
def pk_fields : Array(String) #

[View source]
def select_by_pkey(fields : Enumerable(String) = @db_fields) #

[View source]
def select_stmt(fields = @db_fields, &) #

[View source]
def select_stmt(fields : Enumerable(String) = @db_fields) #

[View source]
def table : String #

[View source]
def update_stmt(fields : Enumerable(String) = @upsert_fields) #

[View source]
def update_stmt(fields : Enumerable(String) = @upsert_fields, &) #

[View source]
def upsert_fields : Array(String) #

[View source]
def upsert_stmt(conflicts : Enumerable(String) = @pk_fields, keep_fields : Enumerable(String) = @upsert_fields) #

[View source]
def upsert_stmt(conflicts : Enumerable(String) = @pk_fields, keep_fields : Enumerable(String) = @upsert_fields, &) #

[View source]
def where_db_stmt(stmt : IO, clauses : Enumerable(String), index = 1) #

[View source]
def where_pk_stmt(stmt : IO, fields = @pk_fields, index = 1) #

[View source]