Documentation
¶
Index ¶
- Variables
- type Address
- type AddressList
- func (s *AddressList) Append() model.Fielder
- func (s *AddressList) At(i int) model.Fielder
- func (s *AddressList) DecodeFields(_ model.FieldReader)
- func (s *AddressList) EncodeFields(_ model.FieldWriter)
- func (s *AddressList) IsNil() bool
- func (s *AddressList) Len() int
- func (s *AddressList) Pointers() []any
- func (s *AddressList) Schema() []model.Field
- type LoginForm
- func (m *LoginForm) DecodeFields(r model.FieldReader)
- func (m *LoginForm) EncodeFields(w model.FieldWriter)
- func (m *LoginForm) IsNil() bool
- func (m *LoginForm) ModelName() string
- func (m *LoginForm) Pointers() []any
- func (m *LoginForm) Schema() []model.Field
- func (m *LoginForm) Validate(action byte) error
- type LoginFormList
- func (s *LoginFormList) Append() model.Fielder
- func (s *LoginFormList) At(i int) model.Fielder
- func (s *LoginFormList) DecodeFields(_ model.FieldReader)
- func (s *LoginFormList) EncodeFields(_ model.FieldWriter)
- func (s *LoginFormList) IsNil() bool
- func (s *LoginFormList) Len() int
- func (s *LoginFormList) Pointers() []any
- func (s *LoginFormList) Schema() []model.Field
- type ModelWithIgnored
- func (m *ModelWithIgnored) DecodeFields(r model.FieldReader)
- func (m *ModelWithIgnored) EncodeFields(w model.FieldWriter)
- func (m *ModelWithIgnored) IsNil() bool
- func (m *ModelWithIgnored) ModelName() string
- func (m *ModelWithIgnored) Pointers() []any
- func (m *ModelWithIgnored) Schema() []model.Field
- func (m *ModelWithIgnored) Validate(action byte) error
- type ModelWithIgnoredList
- func (s *ModelWithIgnoredList) Append() model.Fielder
- func (s *ModelWithIgnoredList) At(i int) model.Fielder
- func (s *ModelWithIgnoredList) DecodeFields(_ model.FieldReader)
- func (s *ModelWithIgnoredList) EncodeFields(_ model.FieldWriter)
- func (s *ModelWithIgnoredList) IsNil() bool
- func (s *ModelWithIgnoredList) Len() int
- func (s *ModelWithIgnoredList) Pointers() []any
- func (s *ModelWithIgnoredList) Schema() []model.Field
- type MultiA
- type MultiAList
- func (s *MultiAList) Append() model.Fielder
- func (s *MultiAList) At(i int) model.Fielder
- func (s *MultiAList) DecodeFields(_ model.FieldReader)
- func (s *MultiAList) EncodeFields(_ model.FieldWriter)
- func (s *MultiAList) IsNil() bool
- func (s *MultiAList) Len() int
- func (s *MultiAList) Pointers() []any
- func (s *MultiAList) Schema() []model.Field
- type MultiB
- type MultiBList
- func (s *MultiBList) Append() model.Fielder
- func (s *MultiBList) At(i int) model.Fielder
- func (s *MultiBList) DecodeFields(_ model.FieldReader)
- func (s *MultiBList) EncodeFields(_ model.FieldWriter)
- func (s *MultiBList) IsNil() bool
- func (s *MultiBList) Len() int
- func (s *MultiBList) Pointers() []any
- func (s *MultiBList) Schema() []model.Field
- type NumericTypes
- func (m *NumericTypes) DecodeFields(r model.FieldReader)
- func (m *NumericTypes) EncodeFields(w model.FieldWriter)
- func (m *NumericTypes) IsNil() bool
- func (m *NumericTypes) ModelName() string
- func (m *NumericTypes) Pointers() []any
- func (m *NumericTypes) Schema() []model.Field
- func (m *NumericTypes) Validate(action byte) error
- type NumericTypesList
- func (s *NumericTypesList) Append() model.Fielder
- func (s *NumericTypesList) At(i int) model.Fielder
- func (s *NumericTypesList) DecodeFields(_ model.FieldReader)
- func (s *NumericTypesList) EncodeFields(_ model.FieldWriter)
- func (s *NumericTypesList) IsNil() bool
- func (s *NumericTypesList) Len() int
- func (s *NumericTypesList) Pointers() []any
- func (s *NumericTypesList) Schema() []model.Field
- type Order
- type OrderList
- func (s *OrderList) Append() model.Fielder
- func (s *OrderList) At(i int) model.Fielder
- func (s *OrderList) DecodeFields(_ model.FieldReader)
- func (s *OrderList) EncodeFields(_ model.FieldWriter)
- func (s *OrderList) IsNil() bool
- func (s *OrderList) Len() int
- func (s *OrderList) Pointers() []any
- func (s *OrderList) Schema() []model.Field
- type PointerReceiver
- func (m *PointerReceiver) DecodeFields(r model.FieldReader)
- func (m *PointerReceiver) EncodeFields(w model.FieldWriter)
- func (m *PointerReceiver) IsNil() bool
- func (m *PointerReceiver) ModelName() string
- func (m *PointerReceiver) Pointers() []any
- func (m *PointerReceiver) Schema() []model.Field
- func (m *PointerReceiver) Validate(action byte) error
- type PointerReceiverList
- func (s *PointerReceiverList) Append() model.Fielder
- func (s *PointerReceiverList) At(i int) model.Fielder
- func (s *PointerReceiverList) DecodeFields(_ model.FieldReader)
- func (s *PointerReceiverList) EncodeFields(_ model.FieldWriter)
- func (s *PointerReceiverList) IsNil() bool
- func (s *PointerReceiverList) Len() int
- func (s *PointerReceiverList) Pointers() []any
- func (s *PointerReceiverList) Schema() []model.Field
- type RefNoColumn
- func (m *RefNoColumn) DecodeFields(r model.FieldReader)
- func (m *RefNoColumn) EncodeFields(w model.FieldWriter)
- func (m *RefNoColumn) IsNil() bool
- func (m *RefNoColumn) ModelName() string
- func (m *RefNoColumn) Pointers() []any
- func (m *RefNoColumn) Schema() []model.Field
- func (m *RefNoColumn) Validate(action byte) error
- type RefNoColumnList
- func (s *RefNoColumnList) Append() model.Fielder
- func (s *RefNoColumnList) At(i int) model.Fielder
- func (s *RefNoColumnList) DecodeFields(_ model.FieldReader)
- func (s *RefNoColumnList) EncodeFields(_ model.FieldWriter)
- func (s *RefNoColumnList) IsNil() bool
- func (s *RefNoColumnList) Len() int
- func (s *RefNoColumnList) Pointers() []any
- func (s *RefNoColumnList) Schema() []model.Field
- type ShortAutoInc
- func (m *ShortAutoInc) DecodeFields(r model.FieldReader)
- func (m *ShortAutoInc) EncodeFields(w model.FieldWriter)
- func (m *ShortAutoInc) IsNil() bool
- func (m *ShortAutoInc) ModelName() string
- func (m *ShortAutoInc) Pointers() []any
- func (m *ShortAutoInc) Schema() []model.Field
- func (m *ShortAutoInc) Validate(action byte) error
- type ShortAutoIncList
- func (s *ShortAutoIncList) Append() model.Fielder
- func (s *ShortAutoIncList) At(i int) model.Fielder
- func (s *ShortAutoIncList) DecodeFields(_ model.FieldReader)
- func (s *ShortAutoIncList) EncodeFields(_ model.FieldWriter)
- func (s *ShortAutoIncList) IsNil() bool
- func (s *ShortAutoIncList) Len() int
- func (s *ShortAutoIncList) Pointers() []any
- func (s *ShortAutoIncList) Schema() []model.Field
- type User
- type UserForm
- func (m *UserForm) DecodeFields(r model.FieldReader)
- func (m *UserForm) EncodeFields(w model.FieldWriter)
- func (m *UserForm) IsNil() bool
- func (m *UserForm) ModelName() string
- func (m *UserForm) Pointers() []any
- func (m *UserForm) Schema() []model.Field
- func (m *UserForm) Validate(action byte) error
- type UserFormList
- func (s *UserFormList) Append() model.Fielder
- func (s *UserFormList) At(i int) model.Fielder
- func (s *UserFormList) DecodeFields(_ model.FieldReader)
- func (s *UserFormList) EncodeFields(_ model.FieldWriter)
- func (s *UserFormList) IsNil() bool
- func (s *UserFormList) Len() int
- func (s *UserFormList) Pointers() []any
- func (s *UserFormList) Schema() []model.Field
- type UserList
- func (s *UserList) Append() model.Fielder
- func (s *UserList) At(i int) model.Fielder
- func (s *UserList) DecodeFields(_ model.FieldReader)
- func (s *UserList) EncodeFields(_ model.FieldWriter)
- func (s *UserList) IsNil() bool
- func (s *UserList) Len() int
- func (s *UserList) Pointers() []any
- func (s *UserList) Schema() []model.Field
- type UserWithComposition
- func (m *UserWithComposition) DecodeFields(r model.FieldReader)
- func (m *UserWithComposition) EncodeFields(w model.FieldWriter)
- func (m *UserWithComposition) IsNil() bool
- func (m *UserWithComposition) ModelName() string
- func (m *UserWithComposition) Pointers() []any
- func (m *UserWithComposition) Schema() []model.Field
- func (m *UserWithComposition) Validate(action byte) error
- type UserWithCompositionList
- func (s *UserWithCompositionList) Append() model.Fielder
- func (s *UserWithCompositionList) At(i int) model.Fielder
- func (s *UserWithCompositionList) DecodeFields(_ model.FieldReader)
- func (s *UserWithCompositionList) EncodeFields(_ model.FieldWriter)
- func (s *UserWithCompositionList) IsNil() bool
- func (s *UserWithCompositionList) Len() int
- func (s *UserWithCompositionList) Pointers() []any
- func (s *UserWithCompositionList) Schema() []model.Field
- type UserWithNoTilde
- func (m *UserWithNoTilde) DecodeFields(r model.FieldReader)
- func (m *UserWithNoTilde) EncodeFields(w model.FieldWriter)
- func (m *UserWithNoTilde) IsNil() bool
- func (m *UserWithNoTilde) ModelName() string
- func (m *UserWithNoTilde) Pointers() []any
- func (m *UserWithNoTilde) Schema() []model.Field
- func (m *UserWithNoTilde) Validate(action byte) error
- type UserWithNoTildeList
- func (s *UserWithNoTildeList) Append() model.Fielder
- func (s *UserWithNoTildeList) At(i int) model.Fielder
- func (s *UserWithNoTildeList) DecodeFields(_ model.FieldReader)
- func (s *UserWithNoTildeList) EncodeFields(_ model.FieldWriter)
- func (s *UserWithNoTildeList) IsNil() bool
- func (s *UserWithNoTildeList) Len() int
- func (s *UserWithNoTildeList) Pointers() []any
- func (s *UserWithNoTildeList) Schema() []model.Field
Constants ¶
This section is empty.
Variables ¶
View Source
var AddressModel = model.Definition{ Name: "address", Fields: model.Fields{ {Name: "street", Type: model.Text()}, {Name: "city", Type: model.Text()}, }, }
View Source
var LoginFormModel = model.Definition{ Name: "login_form", Fields: model.Fields{ {Name: "email", Type: model.Text(), NotNull: true}, {Name: "password", Type: model.Text(), NotNull: true}, }, }
View Source
var ModelWithIgnoredModel = model.Definition{ Name: "model_with_ignored", Fields: model.Fields{ {Name: "id", Type: model.Text(), DB: &model.FieldDB{PK: true}}, {Name: "name", Type: model.Text()}, {Name: "tags", Type: model.Text(), Exclude: true}, {Name: "score", Type: model.Float()}, }, }
View Source
var ModelWithIgnored_ = struct { Id string Name string Tags string Score string }{ Id: "id", Name: "name", Tags: "tags", Score: "score", }
View Source
var MultiAModel = model.Definition{ Name: "multi_a_records", Fields: model.Fields{ {Name: "id", Type: model.Text(), DB: &model.FieldDB{PK: true}}, {Name: "name", Type: model.Text()}, }, }
View Source
var MultiA_ = struct { Id string Name string }{ Id: "id", Name: "name", }
View Source
var MultiBModel = model.Definition{ Name: "multi_b", Fields: model.Fields{ {Name: "id", Type: model.Text(), DB: &model.FieldDB{PK: true}}, {Name: "value", Type: model.Int()}, }, }
View Source
var MultiB_ = struct { Id string Value string }{ Id: "id", Value: "value", }
View Source
var NumericTypesModel = model.Definition{ Name: "numeric_types", Fields: model.Fields{ {Name: "id_numeric", Type: model.Int(), DB: &model.FieldDB{PK: true}}, {Name: "count_uint", Type: model.Int()}, {Name: "ratio_f32", Type: model.Float()}, }, }
View Source
var NumericTypes_ = struct { IdNumeric string CountUint string RatioF32 string }{ IdNumeric: "id_numeric", CountUint: "count_uint", RatioF32: "ratio_f32", }
View Source
var OrderModel = model.Definition{ Name: "order", Fields: model.Fields{ {Name: "id", Type: model.Text(), DB: &model.FieldDB{PK: true}}, {Name: "user_id", Type: model.Int(), Ref: &UserModel, DB: &model.FieldDB{RefColumn: "id"}}, {Name: "total", Type: model.Float()}, }, }
View Source
var Order_ = struct { Id string UserId string Total string }{ Id: "id", UserId: "user_id", Total: "total", }
View Source
var PointerReceiverModel = model.Definition{ Name: "ptr_table", Fields: model.Fields{ {Name: "id", Type: model.Text(), DB: &model.FieldDB{PK: true}}, {Name: "name", Type: model.Text()}, }, }
View Source
var PointerReceiver_ = struct { Id string Name string }{ Id: "id", Name: "name", }
View Source
var RefNoColumnModel = model.Definition{ Name: "ref_no_column", Fields: model.Fields{ {Name: "id_ref", Type: model.Text(), DB: &model.FieldDB{PK: true}}, {Name: "parent_id", Type: model.Int(), Ref: &MultiAModel}, }, }
View Source
var RefNoColumn_ = struct { IdRef string ParentId string }{ IdRef: "id_ref", ParentId: "parent_id", }
View Source
var ShortAutoIncModel = model.Definition{ Name: "short_auto_inc", Fields: model.Fields{ {Name: "id", Type: model.Int(), DB: &model.FieldDB{PK: true, AutoInc: true}}, {Name: "value", Type: model.Int()}, }, }
View Source
var ShortAutoInc_ = struct { Id string Value string }{ Id: "id", Value: "value", }
View Source
var UserFormModel = model.Definition{ Name: "user_form", Fields: model.Fields{ {Name: "id", Type: model.Text(), DB: &model.FieldDB{PK: true}}, {Name: "name", Type: model.Text(), Permitted: model.Permitted{Minimum: 2, Maximum: 100}}, {Name: "email", Type: model.Text(), NotNull: true}, {Name: "password", Type: model.Text(), NotNull: true, Permitted: model.Permitted{Minimum: 8}}, {Name: "bio", Type: model.Text(), Permitted: model.Permitted{Tilde: true, Spaces: true}}, {Name: "age", Type: model.Int()}, }, }
View Source
var UserForm_ = struct { Id string Name string Email string Password string Bio string Age string }{ Id: "id", Name: "name", Email: "email", Password: "password", Bio: "bio", Age: "age", }
View Source
var UserModel = model.Definition{ Name: "user", Fields: model.Fields{ {Name: "id", Type: model.Int(), DB: &model.FieldDB{PK: true}}, {Name: "first_name", Type: model.Text(), NotNull: true}, {Name: "last_name", Type: model.Text()}, {Name: "email", Type: model.Text(), DB: &model.FieldDB{Unique: true}}, {Name: "score", Type: model.Float()}, {Name: "is_active", Type: model.Bool()}, {Name: "avatar", Type: model.Blob()}, }, }
View Source
var UserWithCompositionModel = model.Definition{ Name: "user_with_composition", Fields: model.Fields{ {Name: "id", Type: model.Text(), DB: &model.FieldDB{PK: true}}, {Name: "name", Type: model.Text()}, {Name: "home_addr", Type: model.Struct(&AddressModel)}, }, }
View Source
var UserWithComposition_ = struct { Id string Name string HomeAddr string }{ Id: "id", Name: "name", HomeAddr: "home_addr", }
View Source
var UserWithNoTildeModel = model.Definition{ Name: "user_with_no_tilde", Fields: model.Fields{ {Name: "id", Type: model.Text(), DB: &model.FieldDB{PK: true}}, {Name: "nombre", Type: model.Text(), NotNull: true}, }, }
View Source
var UserWithNoTilde_ = struct { Id string Nombre string }{ Id: "id", Nombre: "nombre", }
Functions ¶
This section is empty.
Types ¶
type Address ¶ added in v0.2.7
func (*Address) DecodeFields ¶ added in v0.9.27
func (m *Address) DecodeFields(r model.FieldReader)
func (*Address) EncodeFields ¶ added in v0.9.27
func (m *Address) EncodeFields(w model.FieldWriter)
type AddressList ¶ added in v0.9.27
type AddressList []*Address
func (*AddressList) Append ¶ added in v0.9.27
func (s *AddressList) Append() model.Fielder
func (*AddressList) DecodeFields ¶ added in v0.9.27
func (s *AddressList) DecodeFields(_ model.FieldReader)
func (*AddressList) EncodeFields ¶ added in v0.9.27
func (s *AddressList) EncodeFields(_ model.FieldWriter)
func (*AddressList) IsNil ¶ added in v0.9.27
func (s *AddressList) IsNil() bool
func (*AddressList) Len ¶ added in v0.9.27
func (s *AddressList) Len() int
func (*AddressList) Pointers ¶ added in v0.9.27
func (s *AddressList) Pointers() []any
func (*AddressList) Schema ¶ added in v0.9.27
func (s *AddressList) Schema() []model.Field
type LoginForm ¶ added in v0.2.6
func (*LoginForm) DecodeFields ¶ added in v0.9.27
func (m *LoginForm) DecodeFields(r model.FieldReader)
func (*LoginForm) EncodeFields ¶ added in v0.9.27
func (m *LoginForm) EncodeFields(w model.FieldWriter)
type LoginFormList ¶ added in v0.9.27
type LoginFormList []*LoginForm
func (*LoginFormList) Append ¶ added in v0.9.27
func (s *LoginFormList) Append() model.Fielder
func (*LoginFormList) DecodeFields ¶ added in v0.9.27
func (s *LoginFormList) DecodeFields(_ model.FieldReader)
func (*LoginFormList) EncodeFields ¶ added in v0.9.27
func (s *LoginFormList) EncodeFields(_ model.FieldWriter)
func (*LoginFormList) IsNil ¶ added in v0.9.27
func (s *LoginFormList) IsNil() bool
func (*LoginFormList) Len ¶ added in v0.9.27
func (s *LoginFormList) Len() int
func (*LoginFormList) Pointers ¶ added in v0.9.27
func (s *LoginFormList) Pointers() []any
func (*LoginFormList) Schema ¶ added in v0.9.27
func (s *LoginFormList) Schema() []model.Field
type ModelWithIgnored ¶ added in v0.1.3
func ReadOneModelWithIgnored ¶ added in v0.9.27
func ReadOneModelWithIgnored(qb *orm.QB, model *ModelWithIgnored) (*ModelWithIgnored, error)
func (*ModelWithIgnored) DecodeFields ¶ added in v0.9.27
func (m *ModelWithIgnored) DecodeFields(r model.FieldReader)
func (*ModelWithIgnored) EncodeFields ¶ added in v0.9.27
func (m *ModelWithIgnored) EncodeFields(w model.FieldWriter)
func (*ModelWithIgnored) IsNil ¶ added in v0.9.27
func (m *ModelWithIgnored) IsNil() bool
func (*ModelWithIgnored) ModelName ¶ added in v0.9.27
func (m *ModelWithIgnored) ModelName() string
func (*ModelWithIgnored) Pointers ¶ added in v0.9.27
func (m *ModelWithIgnored) Pointers() []any
func (*ModelWithIgnored) Schema ¶ added in v0.9.27
func (m *ModelWithIgnored) Schema() []model.Field
func (*ModelWithIgnored) Validate ¶ added in v0.9.27
func (m *ModelWithIgnored) Validate(action byte) error
type ModelWithIgnoredList ¶ added in v0.9.27
type ModelWithIgnoredList []*ModelWithIgnored
func ReadAllModelWithIgnored ¶ added in v0.9.27
func ReadAllModelWithIgnored(qb *orm.QB) (ModelWithIgnoredList, error)
func (*ModelWithIgnoredList) Append ¶ added in v0.9.27
func (s *ModelWithIgnoredList) Append() model.Fielder
func (*ModelWithIgnoredList) At ¶ added in v0.9.27
func (s *ModelWithIgnoredList) At(i int) model.Fielder
func (*ModelWithIgnoredList) DecodeFields ¶ added in v0.9.27
func (s *ModelWithIgnoredList) DecodeFields(_ model.FieldReader)
func (*ModelWithIgnoredList) EncodeFields ¶ added in v0.9.27
func (s *ModelWithIgnoredList) EncodeFields(_ model.FieldWriter)
func (*ModelWithIgnoredList) IsNil ¶ added in v0.9.27
func (s *ModelWithIgnoredList) IsNil() bool
func (*ModelWithIgnoredList) Len ¶ added in v0.9.27
func (s *ModelWithIgnoredList) Len() int
func (*ModelWithIgnoredList) Pointers ¶ added in v0.9.27
func (s *ModelWithIgnoredList) Pointers() []any
func (*ModelWithIgnoredList) Schema ¶ added in v0.9.27
func (s *ModelWithIgnoredList) Schema() []model.Field
type MultiA ¶ added in v0.1.3
func ReadOneMultiA ¶ added in v0.9.27
func (*MultiA) DecodeFields ¶ added in v0.9.27
func (m *MultiA) DecodeFields(r model.FieldReader)
func (*MultiA) EncodeFields ¶ added in v0.9.27
func (m *MultiA) EncodeFields(w model.FieldWriter)
type MultiAList ¶ added in v0.9.27
type MultiAList []*MultiA
func ReadAllMultiA ¶ added in v0.9.27
func ReadAllMultiA(qb *orm.QB) (MultiAList, error)
func (*MultiAList) Append ¶ added in v0.9.27
func (s *MultiAList) Append() model.Fielder
func (*MultiAList) DecodeFields ¶ added in v0.9.27
func (s *MultiAList) DecodeFields(_ model.FieldReader)
func (*MultiAList) EncodeFields ¶ added in v0.9.27
func (s *MultiAList) EncodeFields(_ model.FieldWriter)
func (*MultiAList) IsNil ¶ added in v0.9.27
func (s *MultiAList) IsNil() bool
func (*MultiAList) Len ¶ added in v0.9.27
func (s *MultiAList) Len() int
func (*MultiAList) Pointers ¶ added in v0.9.27
func (s *MultiAList) Pointers() []any
func (*MultiAList) Schema ¶ added in v0.9.27
func (s *MultiAList) Schema() []model.Field
type MultiB ¶ added in v0.1.3
func ReadOneMultiB ¶ added in v0.9.27
func (*MultiB) DecodeFields ¶ added in v0.9.27
func (m *MultiB) DecodeFields(r model.FieldReader)
func (*MultiB) EncodeFields ¶ added in v0.9.27
func (m *MultiB) EncodeFields(w model.FieldWriter)
type MultiBList ¶ added in v0.9.27
type MultiBList []*MultiB
func ReadAllMultiB ¶ added in v0.9.27
func ReadAllMultiB(qb *orm.QB) (MultiBList, error)
func (*MultiBList) Append ¶ added in v0.9.27
func (s *MultiBList) Append() model.Fielder
func (*MultiBList) DecodeFields ¶ added in v0.9.27
func (s *MultiBList) DecodeFields(_ model.FieldReader)
func (*MultiBList) EncodeFields ¶ added in v0.9.27
func (s *MultiBList) EncodeFields(_ model.FieldWriter)
func (*MultiBList) IsNil ¶ added in v0.9.27
func (s *MultiBList) IsNil() bool
func (*MultiBList) Len ¶ added in v0.9.27
func (s *MultiBList) Len() int
func (*MultiBList) Pointers ¶ added in v0.9.27
func (s *MultiBList) Pointers() []any
func (*MultiBList) Schema ¶ added in v0.9.27
func (s *MultiBList) Schema() []model.Field
type NumericTypes ¶ added in v0.1.1
func ReadOneNumericTypes ¶ added in v0.9.27
func ReadOneNumericTypes(qb *orm.QB, model *NumericTypes) (*NumericTypes, error)
func (*NumericTypes) DecodeFields ¶ added in v0.9.27
func (m *NumericTypes) DecodeFields(r model.FieldReader)
func (*NumericTypes) EncodeFields ¶ added in v0.9.27
func (m *NumericTypes) EncodeFields(w model.FieldWriter)
func (*NumericTypes) IsNil ¶ added in v0.9.27
func (m *NumericTypes) IsNil() bool
func (*NumericTypes) ModelName ¶ added in v0.9.27
func (m *NumericTypes) ModelName() string
func (*NumericTypes) Pointers ¶ added in v0.9.27
func (m *NumericTypes) Pointers() []any
func (*NumericTypes) Schema ¶ added in v0.9.27
func (m *NumericTypes) Schema() []model.Field
func (*NumericTypes) Validate ¶ added in v0.9.27
func (m *NumericTypes) Validate(action byte) error
type NumericTypesList ¶ added in v0.9.27
type NumericTypesList []*NumericTypes
func ReadAllNumericTypes ¶ added in v0.9.27
func ReadAllNumericTypes(qb *orm.QB) (NumericTypesList, error)
func (*NumericTypesList) Append ¶ added in v0.9.27
func (s *NumericTypesList) Append() model.Fielder
func (*NumericTypesList) DecodeFields ¶ added in v0.9.27
func (s *NumericTypesList) DecodeFields(_ model.FieldReader)
func (*NumericTypesList) EncodeFields ¶ added in v0.9.27
func (s *NumericTypesList) EncodeFields(_ model.FieldWriter)
func (*NumericTypesList) IsNil ¶ added in v0.9.27
func (s *NumericTypesList) IsNil() bool
func (*NumericTypesList) Len ¶ added in v0.9.27
func (s *NumericTypesList) Len() int
func (*NumericTypesList) Pointers ¶ added in v0.9.27
func (s *NumericTypesList) Pointers() []any
func (*NumericTypesList) Schema ¶ added in v0.9.27
func (s *NumericTypesList) Schema() []model.Field
type Order ¶ added in v0.1.0
func (*Order) DecodeFields ¶ added in v0.9.27
func (m *Order) DecodeFields(r model.FieldReader)
func (*Order) EncodeFields ¶ added in v0.9.27
func (m *Order) EncodeFields(w model.FieldWriter)
type OrderList ¶ added in v0.9.27
type OrderList []*Order
func (*OrderList) DecodeFields ¶ added in v0.9.27
func (s *OrderList) DecodeFields(_ model.FieldReader)
func (*OrderList) EncodeFields ¶ added in v0.9.27
func (s *OrderList) EncodeFields(_ model.FieldWriter)
type PointerReceiver ¶ added in v0.1.4
func ReadOnePointerReceiver ¶ added in v0.9.27
func ReadOnePointerReceiver(qb *orm.QB, model *PointerReceiver) (*PointerReceiver, error)
func (*PointerReceiver) DecodeFields ¶ added in v0.9.27
func (m *PointerReceiver) DecodeFields(r model.FieldReader)
func (*PointerReceiver) EncodeFields ¶ added in v0.9.27
func (m *PointerReceiver) EncodeFields(w model.FieldWriter)
func (*PointerReceiver) IsNil ¶ added in v0.9.27
func (m *PointerReceiver) IsNil() bool
func (*PointerReceiver) ModelName ¶ added in v0.4.0
func (m *PointerReceiver) ModelName() string
func (*PointerReceiver) Pointers ¶ added in v0.9.27
func (m *PointerReceiver) Pointers() []any
func (*PointerReceiver) Schema ¶ added in v0.9.27
func (m *PointerReceiver) Schema() []model.Field
func (*PointerReceiver) Validate ¶ added in v0.9.27
func (m *PointerReceiver) Validate(action byte) error
type PointerReceiverList ¶ added in v0.9.27
type PointerReceiverList []*PointerReceiver
func ReadAllPointerReceiver ¶ added in v0.9.27
func ReadAllPointerReceiver(qb *orm.QB) (PointerReceiverList, error)
func (*PointerReceiverList) Append ¶ added in v0.9.27
func (s *PointerReceiverList) Append() model.Fielder
func (*PointerReceiverList) At ¶ added in v0.9.27
func (s *PointerReceiverList) At(i int) model.Fielder
func (*PointerReceiverList) DecodeFields ¶ added in v0.9.27
func (s *PointerReceiverList) DecodeFields(_ model.FieldReader)
func (*PointerReceiverList) EncodeFields ¶ added in v0.9.27
func (s *PointerReceiverList) EncodeFields(_ model.FieldWriter)
func (*PointerReceiverList) IsNil ¶ added in v0.9.27
func (s *PointerReceiverList) IsNil() bool
func (*PointerReceiverList) Len ¶ added in v0.9.27
func (s *PointerReceiverList) Len() int
func (*PointerReceiverList) Pointers ¶ added in v0.9.27
func (s *PointerReceiverList) Pointers() []any
func (*PointerReceiverList) Schema ¶ added in v0.9.27
func (s *PointerReceiverList) Schema() []model.Field
type RefNoColumn ¶ added in v0.1.1
func ReadOneRefNoColumn ¶ added in v0.9.27
func ReadOneRefNoColumn(qb *orm.QB, model *RefNoColumn) (*RefNoColumn, error)
func (*RefNoColumn) DecodeFields ¶ added in v0.9.27
func (m *RefNoColumn) DecodeFields(r model.FieldReader)
func (*RefNoColumn) EncodeFields ¶ added in v0.9.27
func (m *RefNoColumn) EncodeFields(w model.FieldWriter)
func (*RefNoColumn) IsNil ¶ added in v0.9.27
func (m *RefNoColumn) IsNil() bool
func (*RefNoColumn) ModelName ¶ added in v0.9.27
func (m *RefNoColumn) ModelName() string
func (*RefNoColumn) Pointers ¶ added in v0.9.27
func (m *RefNoColumn) Pointers() []any
func (*RefNoColumn) Schema ¶ added in v0.9.27
func (m *RefNoColumn) Schema() []model.Field
func (*RefNoColumn) Validate ¶ added in v0.9.27
func (m *RefNoColumn) Validate(action byte) error
type RefNoColumnList ¶ added in v0.9.27
type RefNoColumnList []*RefNoColumn
func ReadAllRefNoColumn ¶ added in v0.9.27
func ReadAllRefNoColumn(qb *orm.QB) (RefNoColumnList, error)
func (*RefNoColumnList) Append ¶ added in v0.9.27
func (s *RefNoColumnList) Append() model.Fielder
func (*RefNoColumnList) DecodeFields ¶ added in v0.9.27
func (s *RefNoColumnList) DecodeFields(_ model.FieldReader)
func (*RefNoColumnList) EncodeFields ¶ added in v0.9.27
func (s *RefNoColumnList) EncodeFields(_ model.FieldWriter)
func (*RefNoColumnList) IsNil ¶ added in v0.9.27
func (s *RefNoColumnList) IsNil() bool
func (*RefNoColumnList) Len ¶ added in v0.9.27
func (s *RefNoColumnList) Len() int
func (*RefNoColumnList) Pointers ¶ added in v0.9.27
func (s *RefNoColumnList) Pointers() []any
func (*RefNoColumnList) Schema ¶ added in v0.9.27
func (s *RefNoColumnList) Schema() []model.Field
type ShortAutoInc ¶ added in v0.8.3
func ReadOneShortAutoInc ¶ added in v0.9.27
func ReadOneShortAutoInc(qb *orm.QB, model *ShortAutoInc) (*ShortAutoInc, error)
func (*ShortAutoInc) DecodeFields ¶ added in v0.9.27
func (m *ShortAutoInc) DecodeFields(r model.FieldReader)
func (*ShortAutoInc) EncodeFields ¶ added in v0.9.27
func (m *ShortAutoInc) EncodeFields(w model.FieldWriter)
func (*ShortAutoInc) IsNil ¶ added in v0.9.27
func (m *ShortAutoInc) IsNil() bool
func (*ShortAutoInc) ModelName ¶ added in v0.9.27
func (m *ShortAutoInc) ModelName() string
func (*ShortAutoInc) Pointers ¶ added in v0.9.27
func (m *ShortAutoInc) Pointers() []any
func (*ShortAutoInc) Schema ¶ added in v0.9.27
func (m *ShortAutoInc) Schema() []model.Field
func (*ShortAutoInc) Validate ¶ added in v0.9.27
func (m *ShortAutoInc) Validate(action byte) error
type ShortAutoIncList ¶ added in v0.9.27
type ShortAutoIncList []*ShortAutoInc
func ReadAllShortAutoInc ¶ added in v0.9.27
func ReadAllShortAutoInc(qb *orm.QB) (ShortAutoIncList, error)
func (*ShortAutoIncList) Append ¶ added in v0.9.27
func (s *ShortAutoIncList) Append() model.Fielder
func (*ShortAutoIncList) DecodeFields ¶ added in v0.9.27
func (s *ShortAutoIncList) DecodeFields(_ model.FieldReader)
func (*ShortAutoIncList) EncodeFields ¶ added in v0.9.27
func (s *ShortAutoIncList) EncodeFields(_ model.FieldWriter)
func (*ShortAutoIncList) IsNil ¶ added in v0.9.27
func (s *ShortAutoIncList) IsNil() bool
func (*ShortAutoIncList) Len ¶ added in v0.9.27
func (s *ShortAutoIncList) Len() int
func (*ShortAutoIncList) Pointers ¶ added in v0.9.27
func (s *ShortAutoIncList) Pointers() []any
func (*ShortAutoIncList) Schema ¶ added in v0.9.27
func (s *ShortAutoIncList) Schema() []model.Field
type User ¶
type User struct {
Id int64
FirstName string
LastName string
Email string
Score float64
IsActive bool
Avatar []byte
}
func (*User) DecodeFields ¶ added in v0.9.27
func (m *User) DecodeFields(r model.FieldReader)
func (*User) EncodeFields ¶ added in v0.9.27
func (m *User) EncodeFields(w model.FieldWriter)
type UserForm ¶ added in v0.2.6
func ReadOneUserForm ¶ added in v0.9.27
func (*UserForm) DecodeFields ¶ added in v0.9.27
func (m *UserForm) DecodeFields(r model.FieldReader)
func (*UserForm) EncodeFields ¶ added in v0.9.27
func (m *UserForm) EncodeFields(w model.FieldWriter)
type UserFormList ¶ added in v0.9.27
type UserFormList []*UserForm
func ReadAllUserForm ¶ added in v0.9.27
func ReadAllUserForm(qb *orm.QB) (UserFormList, error)
func (*UserFormList) Append ¶ added in v0.9.27
func (s *UserFormList) Append() model.Fielder
func (*UserFormList) DecodeFields ¶ added in v0.9.27
func (s *UserFormList) DecodeFields(_ model.FieldReader)
func (*UserFormList) EncodeFields ¶ added in v0.9.27
func (s *UserFormList) EncodeFields(_ model.FieldWriter)
func (*UserFormList) IsNil ¶ added in v0.9.27
func (s *UserFormList) IsNil() bool
func (*UserFormList) Len ¶ added in v0.9.27
func (s *UserFormList) Len() int
func (*UserFormList) Pointers ¶ added in v0.9.27
func (s *UserFormList) Pointers() []any
func (*UserFormList) Schema ¶ added in v0.9.27
func (s *UserFormList) Schema() []model.Field
type UserList ¶ added in v0.9.27
type UserList []*User
func (*UserList) DecodeFields ¶ added in v0.9.27
func (s *UserList) DecodeFields(_ model.FieldReader)
func (*UserList) EncodeFields ¶ added in v0.9.27
func (s *UserList) EncodeFields(_ model.FieldWriter)
type UserWithComposition ¶ added in v0.9.27
func ReadOneUserWithComposition ¶ added in v0.9.27
func ReadOneUserWithComposition(qb *orm.QB, model *UserWithComposition) (*UserWithComposition, error)
func (*UserWithComposition) DecodeFields ¶ added in v0.9.27
func (m *UserWithComposition) DecodeFields(r model.FieldReader)
func (*UserWithComposition) EncodeFields ¶ added in v0.9.27
func (m *UserWithComposition) EncodeFields(w model.FieldWriter)
func (*UserWithComposition) IsNil ¶ added in v0.9.27
func (m *UserWithComposition) IsNil() bool
func (*UserWithComposition) ModelName ¶ added in v0.9.27
func (m *UserWithComposition) ModelName() string
func (*UserWithComposition) Pointers ¶ added in v0.9.27
func (m *UserWithComposition) Pointers() []any
func (*UserWithComposition) Schema ¶ added in v0.9.27
func (m *UserWithComposition) Schema() []model.Field
func (*UserWithComposition) Validate ¶ added in v0.9.27
func (m *UserWithComposition) Validate(action byte) error
type UserWithCompositionList ¶ added in v0.9.27
type UserWithCompositionList []*UserWithComposition
func ReadAllUserWithComposition ¶ added in v0.9.27
func ReadAllUserWithComposition(qb *orm.QB) (UserWithCompositionList, error)
func (*UserWithCompositionList) Append ¶ added in v0.9.27
func (s *UserWithCompositionList) Append() model.Fielder
func (*UserWithCompositionList) At ¶ added in v0.9.27
func (s *UserWithCompositionList) At(i int) model.Fielder
func (*UserWithCompositionList) DecodeFields ¶ added in v0.9.27
func (s *UserWithCompositionList) DecodeFields(_ model.FieldReader)
func (*UserWithCompositionList) EncodeFields ¶ added in v0.9.27
func (s *UserWithCompositionList) EncodeFields(_ model.FieldWriter)
func (*UserWithCompositionList) IsNil ¶ added in v0.9.27
func (s *UserWithCompositionList) IsNil() bool
func (*UserWithCompositionList) Len ¶ added in v0.9.27
func (s *UserWithCompositionList) Len() int
func (*UserWithCompositionList) Pointers ¶ added in v0.9.27
func (s *UserWithCompositionList) Pointers() []any
func (*UserWithCompositionList) Schema ¶ added in v0.9.27
func (s *UserWithCompositionList) Schema() []model.Field
type UserWithNoTilde ¶ added in v0.8.1
func ReadOneUserWithNoTilde ¶ added in v0.9.27
func ReadOneUserWithNoTilde(qb *orm.QB, model *UserWithNoTilde) (*UserWithNoTilde, error)
func (*UserWithNoTilde) DecodeFields ¶ added in v0.9.27
func (m *UserWithNoTilde) DecodeFields(r model.FieldReader)
func (*UserWithNoTilde) EncodeFields ¶ added in v0.9.27
func (m *UserWithNoTilde) EncodeFields(w model.FieldWriter)
func (*UserWithNoTilde) IsNil ¶ added in v0.9.27
func (m *UserWithNoTilde) IsNil() bool
func (*UserWithNoTilde) ModelName ¶ added in v0.9.27
func (m *UserWithNoTilde) ModelName() string
func (*UserWithNoTilde) Pointers ¶ added in v0.9.27
func (m *UserWithNoTilde) Pointers() []any
func (*UserWithNoTilde) Schema ¶ added in v0.9.27
func (m *UserWithNoTilde) Schema() []model.Field
func (*UserWithNoTilde) Validate ¶ added in v0.9.27
func (m *UserWithNoTilde) Validate(action byte) error
type UserWithNoTildeList ¶ added in v0.9.27
type UserWithNoTildeList []*UserWithNoTilde
func ReadAllUserWithNoTilde ¶ added in v0.9.27
func ReadAllUserWithNoTilde(qb *orm.QB) (UserWithNoTildeList, error)
func (*UserWithNoTildeList) Append ¶ added in v0.9.27
func (s *UserWithNoTildeList) Append() model.Fielder
func (*UserWithNoTildeList) At ¶ added in v0.9.27
func (s *UserWithNoTildeList) At(i int) model.Fielder
func (*UserWithNoTildeList) DecodeFields ¶ added in v0.9.27
func (s *UserWithNoTildeList) DecodeFields(_ model.FieldReader)
func (*UserWithNoTildeList) EncodeFields ¶ added in v0.9.27
func (s *UserWithNoTildeList) EncodeFields(_ model.FieldWriter)
func (*UserWithNoTildeList) IsNil ¶ added in v0.9.27
func (s *UserWithNoTildeList) IsNil() bool
func (*UserWithNoTildeList) Len ¶ added in v0.9.27
func (s *UserWithNoTildeList) Len() int
func (*UserWithNoTildeList) Pointers ¶ added in v0.9.27
func (s *UserWithNoTildeList) Pointers() []any
func (*UserWithNoTildeList) Schema ¶ added in v0.9.27
func (s *UserWithNoTildeList) Schema() []model.Field
Click to show internal directories.
Click to hide internal directories.