Documentation ¶
Overview ¶
Code generated by corestoreio/pkg/util/codegen. DO NOT EDIT. Generated by sql/dmlgen. DO NOT EDIT.
Index ¶
- Constants
- Variables
- type CustomerAddressEntities
- func (cc *CustomerAddressEntities) AssignLastInsertID(id int64)
- func (cc *CustomerAddressEntities) Clear() *CustomerAddressEntities
- func (cc *CustomerAddressEntities) DBDelete(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (res sql.Result, err error)
- func (cc *CustomerAddressEntities) DBInsert(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (err error)
- func (cc *CustomerAddressEntities) DBLoad(ctx context.Context, dbm *DBM, pkIDs []uint32, opts ...dml.DBRFunc) (err error)
- func (cc *CustomerAddressEntities) DBUpdate(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (err error)
- func (cc *CustomerAddressEntities) DBUpsert(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (err error)
- func (cc *CustomerAddressEntities) Each(f func(*CustomerAddressEntity)) *CustomerAddressEntities
- func (cc *CustomerAddressEntities) EntityIDs(ret ...uint32) []uint32
- func (cc *CustomerAddressEntities) MapColumns(cm *dml.ColumnMap) error
- type CustomerAddressEntity
- func (e *CustomerAddressEntity) AssignLastInsertID(id int64)
- func (e *CustomerAddressEntity) Delete(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (res sql.Result, err error)
- func (e *CustomerAddressEntity) Insert(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (res sql.Result, err error)
- func (e *CustomerAddressEntity) IsSet() bool
- func (e *CustomerAddressEntity) Load(ctx context.Context, dbm *DBM, primaryKey uint32, opts ...dml.DBRFunc) (err error)
- func (e *CustomerAddressEntity) MapColumns(cm *dml.ColumnMap) error
- func (e *CustomerAddressEntity) Update(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (res sql.Result, err error)
- func (e *CustomerAddressEntity) Upsert(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (res sql.Result, err error)
- type CustomerEntities
- func (cc *CustomerEntities) AssignLastInsertID(id int64)
- func (cc *CustomerEntities) Clear() *CustomerEntities
- func (cc *CustomerEntities) DBDelete(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (res sql.Result, err error)
- func (cc *CustomerEntities) DBInsert(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (err error)
- func (cc *CustomerEntities) DBLoad(ctx context.Context, dbm *DBM, pkIDs []uint32, opts ...dml.DBRFunc) (err error)
- func (cc *CustomerEntities) DBUpdate(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (err error)
- func (cc *CustomerEntities) DBUpsert(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (err error)
- func (cc *CustomerEntities) Each(f func(*CustomerEntity)) *CustomerEntities
- func (cc *CustomerEntities) EntityIDs(ret ...uint32) []uint32
- func (cc *CustomerEntities) MapColumns(cm *dml.ColumnMap) error
- type CustomerEntity
- func (e *CustomerEntity) AssignLastInsertID(id int64)
- func (e *CustomerEntity) Delete(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (res sql.Result, err error)
- func (e *CustomerEntity) Insert(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (res sql.Result, err error)
- func (e *CustomerEntity) IsSet() bool
- func (e *CustomerEntity) Load(ctx context.Context, dbm *DBM, primaryKey uint32, opts ...dml.DBRFunc) (err error)
- func (e *CustomerEntity) MapColumns(cm *dml.ColumnMap) error
- func (e *CustomerEntity) NewRelations() *customerEntityRelations
- func (e *CustomerEntity) Update(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (res sql.Result, err error)
- func (e *CustomerEntity) Upsert(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (res sql.Result, err error)
- type CustomerEntityInt
- func (e *CustomerEntityInt) AssignLastInsertID(id int64)
- func (e *CustomerEntityInt) Copy() *CustomerEntityInt
- func (e *CustomerEntityInt) Delete(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (res sql.Result, err error)
- func (e *CustomerEntityInt) Empty() *CustomerEntityInt
- func (e *CustomerEntityInt) Insert(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (res sql.Result, err error)
- func (e *CustomerEntityInt) IsSet() bool
- func (e *CustomerEntityInt) Load(ctx context.Context, dbm *DBM, primaryKey int32, opts ...dml.DBRFunc) (err error)
- func (e *CustomerEntityInt) MapColumns(cm *dml.ColumnMap) error
- func (e *CustomerEntityInt) Update(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (res sql.Result, err error)
- func (e *CustomerEntityInt) Upsert(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (res sql.Result, err error)
- func (e *CustomerEntityInt) Validate() error
- func (e *CustomerEntityInt) WriteTo(w io.Writer) (n int64, err error)
- type CustomerEntityInts
- func (cc *CustomerEntityInts) Append(n ...*CustomerEntityInt) *CustomerEntityInts
- func (cc *CustomerEntityInts) AssignLastInsertID(id int64)
- func (cc *CustomerEntityInts) Clear() *CustomerEntityInts
- func (cc *CustomerEntityInts) Cut(i, j int) *CustomerEntityInts
- func (cc *CustomerEntityInts) DBDelete(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (res sql.Result, err error)
- func (cc *CustomerEntityInts) DBInsert(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (err error)
- func (cc *CustomerEntityInts) DBLoad(ctx context.Context, dbm *DBM, pkIDs []int32, opts ...dml.DBRFunc) (err error)
- func (cc *CustomerEntityInts) DBUpdate(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (err error)
- func (cc *CustomerEntityInts) DBUpsert(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (err error)
- func (cc *CustomerEntityInts) Delete(i int) *CustomerEntityInts
- func (cc *CustomerEntityInts) Each(f func(*CustomerEntityInt)) *CustomerEntityInts
- func (cc *CustomerEntityInts) Filter(f func(*CustomerEntityInt) bool) *CustomerEntityInts
- func (cc *CustomerEntityInts) Insert(n *CustomerEntityInt, i int) *CustomerEntityInts
- func (cc *CustomerEntityInts) Len() int
- func (cc *CustomerEntityInts) MapColumns(cm *dml.ColumnMap) error
- func (cc *CustomerEntityInts) Swap(i, j int)
- func (cc *CustomerEntityInts) Validate() (err error)
- func (cc *CustomerEntityInts) ValueIDs(ret ...int32) []int32
- func (cc *CustomerEntityInts) WriteTo(w io.Writer) (n int64, err error)
- type CustomerEntityVarchar
- func (e *CustomerEntityVarchar) AssignLastInsertID(id int64)
- func (e *CustomerEntityVarchar) Copy() *CustomerEntityVarchar
- func (e *CustomerEntityVarchar) Delete(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (res sql.Result, err error)
- func (e *CustomerEntityVarchar) Empty() *CustomerEntityVarchar
- func (e *CustomerEntityVarchar) Insert(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (res sql.Result, err error)
- func (e *CustomerEntityVarchar) IsSet() bool
- func (e *CustomerEntityVarchar) Load(ctx context.Context, dbm *DBM, primaryKey int32, opts ...dml.DBRFunc) (err error)
- func (e *CustomerEntityVarchar) MapColumns(cm *dml.ColumnMap) error
- func (e *CustomerEntityVarchar) Update(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (res sql.Result, err error)
- func (e *CustomerEntityVarchar) Upsert(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (res sql.Result, err error)
- func (e *CustomerEntityVarchar) Validate() error
- func (e *CustomerEntityVarchar) WriteTo(w io.Writer) (n int64, err error)
- type CustomerEntityVarchars
- func (cc *CustomerEntityVarchars) Append(n ...*CustomerEntityVarchar) *CustomerEntityVarchars
- func (cc *CustomerEntityVarchars) AssignLastInsertID(id int64)
- func (cc *CustomerEntityVarchars) Clear() *CustomerEntityVarchars
- func (cc *CustomerEntityVarchars) Cut(i, j int) *CustomerEntityVarchars
- func (cc *CustomerEntityVarchars) DBDelete(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (res sql.Result, err error)
- func (cc *CustomerEntityVarchars) DBInsert(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (err error)
- func (cc *CustomerEntityVarchars) DBLoad(ctx context.Context, dbm *DBM, pkIDs []int32, opts ...dml.DBRFunc) (err error)
- func (cc *CustomerEntityVarchars) DBUpdate(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (err error)
- func (cc *CustomerEntityVarchars) DBUpsert(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (err error)
- func (cc *CustomerEntityVarchars) Delete(i int) *CustomerEntityVarchars
- func (cc *CustomerEntityVarchars) Each(f func(*CustomerEntityVarchar)) *CustomerEntityVarchars
- func (cc *CustomerEntityVarchars) Filter(f func(*CustomerEntityVarchar) bool) *CustomerEntityVarchars
- func (cc *CustomerEntityVarchars) Insert(n *CustomerEntityVarchar, i int) *CustomerEntityVarchars
- func (cc *CustomerEntityVarchars) Len() int
- func (cc *CustomerEntityVarchars) MapColumns(cm *dml.ColumnMap) error
- func (cc *CustomerEntityVarchars) Swap(i, j int)
- func (cc *CustomerEntityVarchars) Validate() (err error)
- func (cc *CustomerEntityVarchars) ValueIDs(ret ...int32) []int32
- func (cc *CustomerEntityVarchars) WriteTo(w io.Writer) (n int64, err error)
- type DBM
- type DBMOption
- func (o *DBMOption) AddEventCustomerAddressEntity(event dml.EventFlag, fn EventCustomerAddressEntityFn) *DBMOption
- func (o *DBMOption) AddEventCustomerEntity(event dml.EventFlag, fn EventCustomerEntityFn) *DBMOption
- func (o *DBMOption) AddEventCustomerEntityInt(event dml.EventFlag, fn EventCustomerEntityIntFn) *DBMOption
- func (o *DBMOption) AddEventCustomerEntityVarchar(event dml.EventFlag, fn EventCustomerEntityVarcharFn) *DBMOption
- type EventCustomerAddressEntityFn
- type EventCustomerEntityFn
- type EventCustomerEntityIntFn
- type EventCustomerEntityVarcharFn
Constants ¶
const ( TableNameCustomerAddressEntity = "customer_address_entity" TableNameCustomerEntity = "customer_entity" TableNameCustomerEntityInt = "customer_entity_int" TableNameCustomerEntityVarchar = "customer_entity_varchar" )
TableName constants define the names of all tables.
Variables ¶
var Columns = struct { CustomerAddressEntity struct { EntityID string ParentID string City string Company string Firstname string Lastname string } CustomerEntity struct { EntityID string WebsiteID string Email string } CustomerEntityInt struct { ValueID string AttributeID string EntityID string Value string } CustomerEntityVarchar struct { ValueID string AttributeID string EntityID string Value string } }{ CustomerAddressEntity: struct { EntityID string ParentID string City string Company string Firstname string Lastname string }{ EntityID: "entity_id", ParentID: "parent_id", City: "city", Company: "company", Firstname: "firstname", Lastname: "lastname", }, CustomerEntity: struct { EntityID string WebsiteID string Email string }{ EntityID: "entity_id", WebsiteID: "website_id", Email: "email", }, CustomerEntityInt: struct { ValueID string AttributeID string EntityID string Value string }{ ValueID: "value_id", AttributeID: "attribute_id", EntityID: "entity_id", Value: "value", }, CustomerEntityVarchar: struct { ValueID string AttributeID string EntityID string Value string }{ ValueID: "value_id", AttributeID: "attribute_id", EntityID: "entity_id", Value: "value", }, }
Columns struct provides for all tables the name of the columns. Allows type safety.
Functions ¶
This section is empty.
Types ¶
type CustomerAddressEntities ¶
type CustomerAddressEntities struct {
Data []*CustomerAddressEntity `json:"data,omitempty"`
}
CustomerAddressEntities represents a collection type for DB table customer_address_entity Not thread safe. Auto generated.
func NewCustomerAddressEntities ¶
func NewCustomerAddressEntities() *CustomerAddressEntities
NewCustomerAddressEntities creates a new initialized collection. Auto generated.
func (*CustomerAddressEntities) AssignLastInsertID ¶
func (cc *CustomerAddressEntities) AssignLastInsertID(id int64)
AssignLastInsertID traverses through the slice and sets an incrementing new ID to each entity.
func (*CustomerAddressEntities) Clear ¶
func (cc *CustomerAddressEntities) Clear() *CustomerAddressEntities
Clear will reset the data slice or create a new type. Useful for reusing the underlying backing slice array. Auto generated via dmlgen.
func (*CustomerAddressEntities) Each ¶
func (cc *CustomerAddressEntities) Each(f func(*CustomerAddressEntity)) *CustomerAddressEntities
Each will run function f on all items in []* CustomerAddressEntity . Auto generated via dmlgen.
func (*CustomerAddressEntities) EntityIDs ¶
func (cc *CustomerAddressEntities) EntityIDs(ret ...uint32) []uint32
EntityIDs returns a slice with the data or appends it to a slice. Auto generated.
func (*CustomerAddressEntities) MapColumns ¶
func (cc *CustomerAddressEntities) MapColumns(cm *dml.ColumnMap) error
MapColumns implements dml.ColumnMapper interface. Auto generated.
type CustomerAddressEntity ¶
type CustomerAddressEntity struct { EntityID uint32 `max_len:"10"` // entity_id int(10) unsigned NOT NULL PRI auto_increment "Entity ID" ParentID null.Uint32 `max_len:"10"` // parent_id int(10) unsigned NULL MUL DEFAULT 'NULL' "Parent ID" City string `max_len:"255"` // city varchar(255) NOT NULL "City" Company null.String `max_len:"255"` // company varchar(255) NULL DEFAULT 'NULL' "Company" Firstname string `max_len:"255"` // firstname varchar(255) NOT NULL "First Name" Lastname string `max_len:"255"` // lastname varchar(255) NOT NULL "Last Name" }
CustomerAddressEntity represents a single row for DB table customer_address_entity. Auto generated. Table comment: Customer Address Entity
func (*CustomerAddressEntity) AssignLastInsertID ¶
func (e *CustomerAddressEntity) AssignLastInsertID(id int64)
AssignLastInsertID updates the increment ID field with the last inserted ID from an INSERT operation. Implements dml.InsertIDAssigner. Auto generated.
func (*CustomerAddressEntity) IsSet ¶
func (e *CustomerAddressEntity) IsSet() bool
IsSet returns true if the entity has non-empty primary keys.
func (*CustomerAddressEntity) MapColumns ¶
func (e *CustomerAddressEntity) MapColumns(cm *dml.ColumnMap) error
MapColumns implements interface ColumnMapper only partially. Auto generated.
type CustomerEntities ¶
type CustomerEntities struct {
Data []*CustomerEntity `json:"data,omitempty"`
}
CustomerEntities represents a collection type for DB table customer_entity Not thread safe. Auto generated.
func NewCustomerEntities ¶
func NewCustomerEntities() *CustomerEntities
NewCustomerEntities creates a new initialized collection. Auto generated.
func (*CustomerEntities) AssignLastInsertID ¶
func (cc *CustomerEntities) AssignLastInsertID(id int64)
AssignLastInsertID traverses through the slice and sets an incrementing new ID to each entity.
func (*CustomerEntities) Clear ¶
func (cc *CustomerEntities) Clear() *CustomerEntities
Clear will reset the data slice or create a new type. Useful for reusing the underlying backing slice array. Auto generated via dmlgen.
func (*CustomerEntities) Each ¶
func (cc *CustomerEntities) Each(f func(*CustomerEntity)) *CustomerEntities
Each will run function f on all items in []* CustomerEntity . Auto generated via dmlgen.
func (*CustomerEntities) EntityIDs ¶
func (cc *CustomerEntities) EntityIDs(ret ...uint32) []uint32
EntityIDs returns a slice with the data or appends it to a slice. Auto generated.
func (*CustomerEntities) MapColumns ¶
func (cc *CustomerEntities) MapColumns(cm *dml.ColumnMap) error
MapColumns implements dml.ColumnMapper interface. Auto generated.
type CustomerEntity ¶
type CustomerEntity struct { EntityID uint32 `max_len:"10"` // entity_id int(10) unsigned NOT NULL PRI auto_increment "Entity ID" WebsiteID null.Uint16 `max_len:"5"` // website_id smallint(5) unsigned NULL MUL DEFAULT 'NULL' "Website ID" Email null.String `max_len:"255"` // email varchar(255) NULL MUL DEFAULT 'NULL' "Email" Relations *customerEntityRelations }
CustomerEntity represents a single row for DB table customer_entity. Auto generated. Table comment: Customer Entity
func (*CustomerEntity) AssignLastInsertID ¶
func (e *CustomerEntity) AssignLastInsertID(id int64)
AssignLastInsertID updates the increment ID field with the last inserted ID from an INSERT operation. Implements dml.InsertIDAssigner. Auto generated.
func (*CustomerEntity) IsSet ¶
func (e *CustomerEntity) IsSet() bool
IsSet returns true if the entity has non-empty primary keys.
func (*CustomerEntity) MapColumns ¶
func (e *CustomerEntity) MapColumns(cm *dml.ColumnMap) error
MapColumns implements interface ColumnMapper only partially. Auto generated.
func (*CustomerEntity) NewRelations ¶
func (e *CustomerEntity) NewRelations() *customerEntityRelations
type CustomerEntityInt ¶
type CustomerEntityInt struct { ValueID int32 // value_id int(11) NOT NULL PRI auto_increment "Value ID" AttributeID uint16 // attribute_id smallint(5) unsigned NOT NULL DEFAULT '0' "Attribute ID" EntityID uint32 // entity_id int(10) unsigned NOT NULL MUL DEFAULT '0' "Entity ID" Value int32 // value int(11) NOT NULL DEFAULT '0' "Value" }
CustomerEntityInt represents a single row for DB table customer_entity_int. Auto generated. Table comment: Customer Entity Int
func (*CustomerEntityInt) AssignLastInsertID ¶
func (e *CustomerEntityInt) AssignLastInsertID(id int64)
AssignLastInsertID updates the increment ID field with the last inserted ID from an INSERT operation. Implements dml.InsertIDAssigner. Auto generated.
func (*CustomerEntityInt) Copy ¶
func (e *CustomerEntityInt) Copy() *CustomerEntityInt
Copy copies the struct and returns a new pointer. TODO use deepcopy tool to generate code afterwards
func (*CustomerEntityInt) Empty ¶
func (e *CustomerEntityInt) Empty() *CustomerEntityInt
Empty empties all the fields of the current object. Also known as Reset.
func (*CustomerEntityInt) IsSet ¶
func (e *CustomerEntityInt) IsSet() bool
IsSet returns true if the entity has non-empty primary keys.
func (*CustomerEntityInt) MapColumns ¶
func (e *CustomerEntityInt) MapColumns(cm *dml.ColumnMap) error
MapColumns implements interface ColumnMapper only partially. Auto generated.
func (*CustomerEntityInt) Validate ¶
func (e *CustomerEntityInt) Validate() error
Validate runs internal consistency tests.
type CustomerEntityInts ¶
type CustomerEntityInts struct {
Data []*CustomerEntityInt `json:"data,omitempty"`
}
CustomerEntityInts represents a collection type for DB table customer_entity_int Not thread safe. Auto generated.
func NewCustomerEntityInts ¶
func NewCustomerEntityInts() *CustomerEntityInts
NewCustomerEntityInts creates a new initialized collection. Auto generated.
func (*CustomerEntityInts) Append ¶
func (cc *CustomerEntityInts) Append(n ...*CustomerEntityInt) *CustomerEntityInts
Append will add a new item at the end of * CustomerEntityInts . Auto generated via dmlgen.
func (*CustomerEntityInts) AssignLastInsertID ¶
func (cc *CustomerEntityInts) AssignLastInsertID(id int64)
AssignLastInsertID traverses through the slice and sets an incrementing new ID to each entity.
func (*CustomerEntityInts) Clear ¶
func (cc *CustomerEntityInts) Clear() *CustomerEntityInts
Clear will reset the data slice or create a new type. Useful for reusing the underlying backing slice array. Auto generated via dmlgen.
func (*CustomerEntityInts) Cut ¶
func (cc *CustomerEntityInts) Cut(i, j int) *CustomerEntityInts
Cut will remove items i through j-1. Auto generated via dmlgen.
func (*CustomerEntityInts) Delete ¶
func (cc *CustomerEntityInts) Delete(i int) *CustomerEntityInts
Delete will remove an item from the slice. Auto generated via dmlgen.
func (*CustomerEntityInts) Each ¶
func (cc *CustomerEntityInts) Each(f func(*CustomerEntityInt)) *CustomerEntityInts
Each will run function f on all items in []* CustomerEntityInt . Auto generated via dmlgen.
func (*CustomerEntityInts) Filter ¶
func (cc *CustomerEntityInts) Filter(f func(*CustomerEntityInt) bool) *CustomerEntityInts
Filter filters the current slice by predicate f without memory allocation. Auto generated via dmlgen.
func (*CustomerEntityInts) Insert ¶
func (cc *CustomerEntityInts) Insert(n *CustomerEntityInt, i int) *CustomerEntityInts
Insert will place a new item at position i. Auto generated via dmlgen.
func (*CustomerEntityInts) Len ¶
func (cc *CustomerEntityInts) Len() int
Len will satisfy the sort.Interface. Auto generated via dmlgen.
func (*CustomerEntityInts) MapColumns ¶
func (cc *CustomerEntityInts) MapColumns(cm *dml.ColumnMap) error
MapColumns implements dml.ColumnMapper interface. Auto generated.
func (*CustomerEntityInts) Swap ¶
func (cc *CustomerEntityInts) Swap(i, j int)
Swap will satisfy the sort.Interface. Auto generated via dmlgen.
func (*CustomerEntityInts) Validate ¶
func (cc *CustomerEntityInts) Validate() (err error)
Validate runs internal consistency tests on all items.
func (*CustomerEntityInts) ValueIDs ¶
func (cc *CustomerEntityInts) ValueIDs(ret ...int32) []int32
ValueIDs returns a slice with the data or appends it to a slice. Auto generated.
type CustomerEntityVarchar ¶
type CustomerEntityVarchar struct { ValueID int32 // value_id int(11) NOT NULL PRI auto_increment "Value ID" AttributeID uint16 // attribute_id smallint(5) unsigned NOT NULL DEFAULT '0' "Attribute ID" EntityID uint32 // entity_id int(10) unsigned NOT NULL MUL DEFAULT '0' "Entity ID" Value null.String // value varchar(255) NULL DEFAULT 'NULL' "Value" }
CustomerEntityVarchar represents a single row for DB table customer_entity_varchar. Auto generated. Table comment: Customer Entity Varchar
func (*CustomerEntityVarchar) AssignLastInsertID ¶
func (e *CustomerEntityVarchar) AssignLastInsertID(id int64)
AssignLastInsertID updates the increment ID field with the last inserted ID from an INSERT operation. Implements dml.InsertIDAssigner. Auto generated.
func (*CustomerEntityVarchar) Copy ¶
func (e *CustomerEntityVarchar) Copy() *CustomerEntityVarchar
Copy copies the struct and returns a new pointer. TODO use deepcopy tool to generate code afterwards
func (*CustomerEntityVarchar) Empty ¶
func (e *CustomerEntityVarchar) Empty() *CustomerEntityVarchar
Empty empties all the fields of the current object. Also known as Reset.
func (*CustomerEntityVarchar) IsSet ¶
func (e *CustomerEntityVarchar) IsSet() bool
IsSet returns true if the entity has non-empty primary keys.
func (*CustomerEntityVarchar) MapColumns ¶
func (e *CustomerEntityVarchar) MapColumns(cm *dml.ColumnMap) error
MapColumns implements interface ColumnMapper only partially. Auto generated.
func (*CustomerEntityVarchar) Validate ¶
func (e *CustomerEntityVarchar) Validate() error
Validate runs internal consistency tests.
type CustomerEntityVarchars ¶
type CustomerEntityVarchars struct {
Data []*CustomerEntityVarchar `json:"data,omitempty"`
}
CustomerEntityVarchars represents a collection type for DB table customer_entity_varchar Not thread safe. Auto generated.
func NewCustomerEntityVarchars ¶
func NewCustomerEntityVarchars() *CustomerEntityVarchars
NewCustomerEntityVarchars creates a new initialized collection. Auto generated.
func (*CustomerEntityVarchars) Append ¶
func (cc *CustomerEntityVarchars) Append(n ...*CustomerEntityVarchar) *CustomerEntityVarchars
Append will add a new item at the end of * CustomerEntityVarchars . Auto generated via dmlgen.
func (*CustomerEntityVarchars) AssignLastInsertID ¶
func (cc *CustomerEntityVarchars) AssignLastInsertID(id int64)
AssignLastInsertID traverses through the slice and sets an incrementing new ID to each entity.
func (*CustomerEntityVarchars) Clear ¶
func (cc *CustomerEntityVarchars) Clear() *CustomerEntityVarchars
Clear will reset the data slice or create a new type. Useful for reusing the underlying backing slice array. Auto generated via dmlgen.
func (*CustomerEntityVarchars) Cut ¶
func (cc *CustomerEntityVarchars) Cut(i, j int) *CustomerEntityVarchars
Cut will remove items i through j-1. Auto generated via dmlgen.
func (*CustomerEntityVarchars) Delete ¶
func (cc *CustomerEntityVarchars) Delete(i int) *CustomerEntityVarchars
Delete will remove an item from the slice. Auto generated via dmlgen.
func (*CustomerEntityVarchars) Each ¶
func (cc *CustomerEntityVarchars) Each(f func(*CustomerEntityVarchar)) *CustomerEntityVarchars
Each will run function f on all items in []* CustomerEntityVarchar . Auto generated via dmlgen.
func (*CustomerEntityVarchars) Filter ¶
func (cc *CustomerEntityVarchars) Filter(f func(*CustomerEntityVarchar) bool) *CustomerEntityVarchars
Filter filters the current slice by predicate f without memory allocation. Auto generated via dmlgen.
func (*CustomerEntityVarchars) Insert ¶
func (cc *CustomerEntityVarchars) Insert(n *CustomerEntityVarchar, i int) *CustomerEntityVarchars
Insert will place a new item at position i. Auto generated via dmlgen.
func (*CustomerEntityVarchars) Len ¶
func (cc *CustomerEntityVarchars) Len() int
Len will satisfy the sort.Interface. Auto generated via dmlgen.
func (*CustomerEntityVarchars) MapColumns ¶
func (cc *CustomerEntityVarchars) MapColumns(cm *dml.ColumnMap) error
MapColumns implements dml.ColumnMapper interface. Auto generated.
func (*CustomerEntityVarchars) Swap ¶
func (cc *CustomerEntityVarchars) Swap(i, j int)
Swap will satisfy the sort.Interface. Auto generated via dmlgen.
func (*CustomerEntityVarchars) Validate ¶
func (cc *CustomerEntityVarchars) Validate() (err error)
Validate runs internal consistency tests on all items.
func (*CustomerEntityVarchars) ValueIDs ¶
func (cc *CustomerEntityVarchars) ValueIDs(ret ...int32) []int32
ValueIDs returns a slice with the data or appends it to a slice. Auto generated.
type DBM ¶
DBM defines the DataBaseManagement object for the tables customer_address_entity, customer_entity, customer_entity_int, customer_entity_varchar
type DBMOption ¶
type DBMOption struct { Trace cstrace.Tracer TableOptions []ddl.TableOption // gets applied at the beginning TableOptionsAfter []ddl.TableOption // gets applied at the end InitSelectFn func(*dml.Select) *dml.Select InitUpdateFn func(*dml.Update) *dml.Update InitDeleteFn func(*dml.Delete) *dml.Delete InitInsertFn func(*dml.Insert) *dml.Insert // contains filtered or unexported fields }
DBMOption provides various options to the DBM object.
func (*DBMOption) AddEventCustomerAddressEntity ¶
func (o *DBMOption) AddEventCustomerAddressEntity(event dml.EventFlag, fn EventCustomerAddressEntityFn) *DBMOption
AddEventCustomerAddressEntity adds a specific defined event call back to the DBM. It panics if the event argument is larger than dml.EventFlagMax.
func (*DBMOption) AddEventCustomerEntity ¶
func (o *DBMOption) AddEventCustomerEntity(event dml.EventFlag, fn EventCustomerEntityFn) *DBMOption
AddEventCustomerEntity adds a specific defined event call back to the DBM. It panics if the event argument is larger than dml.EventFlagMax.
func (*DBMOption) AddEventCustomerEntityInt ¶
func (o *DBMOption) AddEventCustomerEntityInt(event dml.EventFlag, fn EventCustomerEntityIntFn) *DBMOption
AddEventCustomerEntityInt adds a specific defined event call back to the DBM. It panics if the event argument is larger than dml.EventFlagMax.
func (*DBMOption) AddEventCustomerEntityVarchar ¶
func (o *DBMOption) AddEventCustomerEntityVarchar(event dml.EventFlag, fn EventCustomerEntityVarcharFn) *DBMOption
AddEventCustomerEntityVarchar adds a specific defined event call back to the DBM. It panics if the event argument is larger than dml.EventFlagMax.
type EventCustomerAddressEntityFn ¶
type EventCustomerAddressEntityFn func(context.Context, *CustomerAddressEntities, *CustomerAddressEntity) error
Event functions are getting dispatched during before or after handling a collection or an entity. Context is always non-nil but either collection or entity pointer will be set.
type EventCustomerEntityFn ¶
type EventCustomerEntityFn func(context.Context, *CustomerEntities, *CustomerEntity) error
Event functions are getting dispatched during before or after handling a collection or an entity. Context is always non-nil but either collection or entity pointer will be set.
type EventCustomerEntityIntFn ¶
type EventCustomerEntityIntFn func(context.Context, *CustomerEntityInts, *CustomerEntityInt) error
Event functions are getting dispatched during before or after handling a collection or an entity. Context is always non-nil but either collection or entity pointer will be set.
type EventCustomerEntityVarcharFn ¶
type EventCustomerEntityVarcharFn func(context.Context, *CustomerEntityVarchars, *CustomerEntityVarchar) error
Event functions are getting dispatched during before or after handling a collection or an entity. Context is always non-nil but either collection or entity pointer will be set.