tests

package
v0.11.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2026 License: MIT Imports: 2 Imported by: 0

README

Documentation

Index

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",
}
View Source
var User_ = struct {
	Id        string
	FirstName string
	LastName  string
	Email     string
	Score     string
	IsActive  string
	Avatar    string
}{
	Id:        "id",
	FirstName: "first_name",
	LastName:  "last_name",
	Email:     "email",
	Score:     "score",
	IsActive:  "is_active",
	Avatar:    "avatar",
}

Functions

This section is empty.

Types

type Address added in v0.2.7

type Address struct {
	Street string
	City   string
}

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)

func (*Address) IsNil added in v0.9.27

func (m *Address) IsNil() bool

func (*Address) ModelName added in v0.9.27

func (m *Address) ModelName() string

func (*Address) Pointers added in v0.2.7

func (m *Address) Pointers() []any

func (*Address) Schema added in v0.2.7

func (m *Address) Schema() []model.Field

func (*Address) Validate added in v0.9.27

func (m *Address) Validate(action byte) error

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) At added in v0.9.27

func (s *AddressList) At(i int) 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

type LoginForm struct {
	Email    string
	Password string
}

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)

func (*LoginForm) IsNil added in v0.9.27

func (m *LoginForm) IsNil() bool

func (*LoginForm) ModelName added in v0.9.27

func (m *LoginForm) ModelName() string

func (*LoginForm) Pointers added in v0.9.27

func (m *LoginForm) Pointers() []any

func (*LoginForm) Schema added in v0.9.27

func (m *LoginForm) Schema() []model.Field

func (*LoginForm) Validate added in v0.9.27

func (m *LoginForm) Validate(action byte) error

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) At added in v0.9.27

func (s *LoginFormList) At(i int) 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

type ModelWithIgnored struct {
	Id    string
	Name  string
	Tags  string
	Score float64
}

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 (*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

type MultiA struct {
	Id   string
	Name string
}

func ReadOneMultiA added in v0.9.27

func ReadOneMultiA(qb *orm.QB, model *MultiA) (*MultiA, error)

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)

func (*MultiA) IsNil added in v0.9.27

func (m *MultiA) IsNil() bool

func (*MultiA) ModelName added in v0.4.0

func (m *MultiA) ModelName() string

func (*MultiA) Pointers added in v0.9.27

func (m *MultiA) Pointers() []any

func (*MultiA) Schema added in v0.9.27

func (m *MultiA) Schema() []model.Field

func (*MultiA) Validate added in v0.9.27

func (m *MultiA) Validate(action byte) error

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) At added in v0.9.27

func (s *MultiAList) At(i int) 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

type MultiB struct {
	Id    string
	Value int64
}

func ReadOneMultiB added in v0.9.27

func ReadOneMultiB(qb *orm.QB, model *MultiB) (*MultiB, error)

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)

func (*MultiB) IsNil added in v0.9.27

func (m *MultiB) IsNil() bool

func (*MultiB) ModelName added in v0.9.27

func (m *MultiB) ModelName() string

func (*MultiB) Pointers added in v0.9.27

func (m *MultiB) Pointers() []any

func (*MultiB) Schema added in v0.9.27

func (m *MultiB) Schema() []model.Field

func (*MultiB) Validate added in v0.9.27

func (m *MultiB) Validate(action byte) error

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) At added in v0.9.27

func (s *MultiBList) At(i int) 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

type NumericTypes struct {
	IdNumeric int64
	CountUint int64
	RatioF32  float64
}

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) At added in v0.9.27

func (s *NumericTypesList) At(i int) 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

type Order struct {
	Id     string
	UserId int64
	Total  float64
}

func ReadOneOrder added in v0.9.27

func ReadOneOrder(qb *orm.QB, model *Order) (*Order, error)

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)

func (*Order) IsNil added in v0.9.27

func (m *Order) IsNil() bool

func (*Order) ModelName added in v0.9.27

func (m *Order) ModelName() string

func (*Order) Pointers added in v0.9.27

func (m *Order) Pointers() []any

func (*Order) Schema added in v0.9.27

func (m *Order) Schema() []model.Field

func (*Order) Validate added in v0.9.27

func (m *Order) Validate(action byte) error

type OrderList added in v0.9.27

type OrderList []*Order

func ReadAllOrder added in v0.9.27

func ReadAllOrder(qb *orm.QB) (OrderList, error)

func (*OrderList) Append added in v0.9.27

func (s *OrderList) Append() model.Fielder

func (*OrderList) At added in v0.9.27

func (s *OrderList) At(i int) model.Fielder

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)

func (*OrderList) IsNil added in v0.9.27

func (s *OrderList) IsNil() bool

func (*OrderList) Len added in v0.9.27

func (s *OrderList) Len() int

func (*OrderList) Pointers added in v0.9.27

func (s *OrderList) Pointers() []any

func (*OrderList) Schema added in v0.9.27

func (s *OrderList) Schema() []model.Field

type PointerReceiver added in v0.1.4

type PointerReceiver struct {
	Id   string
	Name string
}

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 (*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

type RefNoColumn struct {
	IdRef    string
	ParentId int64
}

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) At added in v0.9.27

func (s *RefNoColumnList) At(i int) 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

type ShortAutoInc struct {
	Id    int64
	Value int64
}

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) At added in v0.9.27

func (s *ShortAutoIncList) At(i int) 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 ReadOneUser added in v0.9.27

func ReadOneUser(qb *orm.QB, model *User) (*User, error)

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)

func (*User) IsNil added in v0.9.27

func (m *User) IsNil() bool

func (*User) ModelName added in v0.9.27

func (m *User) ModelName() string

func (*User) Pointers added in v0.9.27

func (m *User) Pointers() []any

func (*User) Schema added in v0.9.27

func (m *User) Schema() []model.Field

func (*User) Validate added in v0.9.27

func (m *User) Validate(action byte) error

type UserForm added in v0.2.6

type UserForm struct {
	Id       string
	Name     string
	Email    string
	Password string
	Bio      string
	Age      int64
}

func ReadOneUserForm added in v0.9.27

func ReadOneUserForm(qb *orm.QB, model *UserForm) (*UserForm, error)

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)

func (*UserForm) IsNil added in v0.9.27

func (m *UserForm) IsNil() bool

func (*UserForm) ModelName added in v0.9.27

func (m *UserForm) ModelName() string

func (*UserForm) Pointers added in v0.9.27

func (m *UserForm) Pointers() []any

func (*UserForm) Schema added in v0.9.27

func (m *UserForm) Schema() []model.Field

func (*UserForm) Validate added in v0.9.27

func (m *UserForm) Validate(action byte) error

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) At added in v0.9.27

func (s *UserFormList) At(i int) 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 ReadAllUser added in v0.9.27

func ReadAllUser(qb *orm.QB) (UserList, error)

func (*UserList) Append added in v0.9.27

func (s *UserList) Append() model.Fielder

func (*UserList) At added in v0.9.27

func (s *UserList) At(i int) model.Fielder

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)

func (*UserList) IsNil added in v0.9.27

func (s *UserList) IsNil() bool

func (*UserList) Len added in v0.9.27

func (s *UserList) Len() int

func (*UserList) Pointers added in v0.9.27

func (s *UserList) Pointers() []any

func (*UserList) Schema added in v0.9.27

func (s *UserList) Schema() []model.Field

type UserWithComposition added in v0.9.27

type UserWithComposition struct {
	Id       string
	Name     string
	HomeAddr Address
}

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 (*UserWithCompositionList) At added in v0.9.27

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

type UserWithNoTilde struct {
	Id     string
	Nombre string
}

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 (*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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL