class Crorm::Schema
- Crorm::Schema
- Reference
- Object
Defined in:
crorm/schema.crConstructors
Instance Method Summary
- #db_fields : Array(String)
- #delete_stmt(fields = @pk_fields)
- #delete_stmt(&)
- #insert_fields : Array(String)
- #insert_stmt
- #insert_stmt(&)
- #pk_fields : Array(String)
- #select_by_pkey(fields : Enumerable(String) = @db_fields)
- #select_stmt(fields = @db_fields, &)
- #select_stmt(fields : Enumerable(String) = @db_fields)
- #table : String
- #update_stmt(fields : Enumerable(String) = @upsert_fields)
- #update_stmt(fields : Enumerable(String) = @upsert_fields, &)
- #upsert_fields : Array(String)
- #upsert_stmt(conflicts : Enumerable(String) = @pk_fields, keep_fields : Enumerable(String) = @upsert_fields)
- #upsert_stmt(conflicts : Enumerable(String) = @pk_fields, keep_fields : Enumerable(String) = @upsert_fields, &)
- #where_db_stmt(stmt : IO, clauses : Enumerable(String), index = 1)
- #where_pk_stmt(stmt : IO, fields = @pk_fields, index = 1)
Constructor Detail
Instance Method Detail
def upsert_stmt(conflicts : Enumerable(String) = @pk_fields, keep_fields : Enumerable(String) = @upsert_fields)
#
def upsert_stmt(conflicts : Enumerable(String) = @pk_fields, keep_fields : Enumerable(String) = @upsert_fields, &)
#