Documentation ¶
Index ¶
- Variables
- func CompoundFieldToPersistenceRepresentation(field domainModel.PersistenceCompoundField) sql.FieldSpec
- func FieldToPersistenceRepresentation(f field.Field) sql.FieldSpec
- func UnmarshalField(raw_field json.RawMessage) field.Field
- type Model
- type ModelFieldsMap
- type ModelSQLDriver
- type ModelSchema
Constants ¶
This section is empty.
Variables ¶
View Source
var FieldTypes = map[string]func(message json.RawMessage) field.Field{}
Functions ¶
func CompoundFieldToPersistenceRepresentation ¶
func CompoundFieldToPersistenceRepresentation(field domainModel.PersistenceCompoundField) sql.FieldSpec
func UnmarshalField ¶
func UnmarshalField(raw_field json.RawMessage) field.Field
Types ¶
type Model ¶
type Model struct { Name string Fields ModelFieldsMap }
func UnmarshalModel ¶
func (Model) ProduceSQLDriver ¶
func (m Model) ProduceSQLDriver(dialect dialect.Dialect) (*ModelSQLDriver, error)
type ModelFieldsMap ¶
type ModelSQLDriver ¶
type ModelSQLDriver struct { Name string Fields map[string]sql.FieldDriver }
type ModelSchema ¶
func (*ModelSchema) RegisterModel ¶
func (schema *ModelSchema) RegisterModel(model *Model) error
Click to show internal directories.
Click to hide internal directories.