def self.primary
#
class Jennifer::Migration::Version
- Jennifer::Migration::Version
- Jennifer::Model::Base
- Reference
- Object
Defined in:
jennifer/migration/version.crConstant Summary
-
RELATION_NAMES =
[] of String
Constructors
- .new(values : Hash | NamedTuple, new_record : Bool)
-
.new(__temp_78 : MySql::ResultSet | MySql::TextResultSet)
creates object from db tuple
- .new(values : Hash | NamedTuple)
- .new
- .new(**values)
Class Method Summary
- ._id
- ._version
- .create(values : Hash | NamedTuple)
- .create
- .create(**values)
- .field_count
- .field_names
- .primary
- .primary_field_name
- .primary_field_type
- .relation(name : String)
- .relations
Instance Method Summary
- #attribute(name : String)
- #attribute(name : Symbol)
- #attributes_hash
- #id : Int32?
- #id=(_id : Int32 | Nil)
- #init_primary_field(value : Int32)
- #new_record? : Bool
- #primary : Int32?
- #save
- #set_relation(name, hash)
- #to_h
- #version : String
- #version=(_version : String)
Instance methods inherited from class Jennifer::Model::Base
delete
delete,
destroy
destroy,
id
id,
primary
primary
Class methods inherited from class Jennifer::Model::Base
all
all,
c(name)
c,
delete(*ids)
delete,
delete_all
delete_all,
destroy(*ids)
destroy,
destroy_all
destroy_all,
search_by_sql(query : String, args = [] of Supportable)
search_by_sql,
table_name(value : String | Symbol)table_name : String table_name, where(&) where