def primary
#
abstract class Jennifer::Model::Base
- Jennifer::Model::Base
- Reference
- Object
Included Modules
Extended Modules
Direct Known Subclasses
Defined in:
jennifer/model/base.crConstant Summary
-
TYPES =
{Integer => Int32, Int32 => Int32, String => String, SmallInt => Int16, Bool => Bool, Serial => Int64, Int64 => Int64}
Class Method Summary
- .all
- .c(name)
- .delete(*ids)
- .delete_all
- .destroy(*ids)
- .destroy_all
- .search_by_sql(query : String, args = [] of Supportable)
- .table_name(value : String | Symbol)
- .table_name : String
- .where(&)
Instance Method Summary
Macro Summary
- belongs_to(name, klass, request = nil, foreign = nil, primary = nil)
- has_many(name, klass, request = nil, foreign = nil, primary = nil)
- has_one(name, klass, request = nil, foreign = nil, primary = nil)
- mapping(properties)
- mapping(**properties)
- scope(name, opts, block = nil)