dmltestgenerated5

package
v0.0.0-...-202847b Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Code generated by corestoreio/pkg/util/codegen. DO NOT EDIT. Generated by sql/dmlgen. DO NOT EDIT.

Index

Constants

View Source
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

View Source
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

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) DBDelete

func (cc *CustomerAddressEntities) DBDelete(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (res sql.Result, err error)

func (*CustomerAddressEntities) DBInsert

func (cc *CustomerAddressEntities) DBInsert(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (err error)

func (*CustomerAddressEntities) DBLoad

func (cc *CustomerAddressEntities) DBLoad(ctx context.Context, dbm *DBM, pkIDs []uint32, opts ...dml.DBRFunc) (err error)

func (*CustomerAddressEntities) DBUpdate

func (cc *CustomerAddressEntities) DBUpdate(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (err error)

func (*CustomerAddressEntities) DBUpsert

func (cc *CustomerAddressEntities) DBUpsert(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (err error)

func (*CustomerAddressEntities) Each

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) Delete

func (e *CustomerAddressEntity) Delete(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (res sql.Result, err error)

func (*CustomerAddressEntity) Insert

func (e *CustomerAddressEntity) Insert(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (res sql.Result, err error)

func (*CustomerAddressEntity) IsSet

func (e *CustomerAddressEntity) IsSet() bool

IsSet returns true if the entity has non-empty primary keys.

func (*CustomerAddressEntity) Load

func (e *CustomerAddressEntity) Load(ctx context.Context, dbm *DBM, primaryKey uint32, opts ...dml.DBRFunc) (err error)

func (*CustomerAddressEntity) MapColumns

func (e *CustomerAddressEntity) MapColumns(cm *dml.ColumnMap) error

MapColumns implements interface ColumnMapper only partially. Auto generated.

func (*CustomerAddressEntity) Update

func (e *CustomerAddressEntity) Update(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (res sql.Result, err error)

func (*CustomerAddressEntity) Upsert

func (e *CustomerAddressEntity) Upsert(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (res sql.Result, err error)

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) DBDelete

func (cc *CustomerEntities) DBDelete(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (res sql.Result, err error)

func (*CustomerEntities) DBInsert

func (cc *CustomerEntities) DBInsert(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (err error)

func (*CustomerEntities) DBLoad

func (cc *CustomerEntities) DBLoad(ctx context.Context, dbm *DBM, pkIDs []uint32, opts ...dml.DBRFunc) (err error)

func (*CustomerEntities) DBUpdate

func (cc *CustomerEntities) DBUpdate(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (err error)

func (*CustomerEntities) DBUpsert

func (cc *CustomerEntities) DBUpsert(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (err error)

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) Delete

func (e *CustomerEntity) Delete(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (res sql.Result, err error)

func (*CustomerEntity) Insert

func (e *CustomerEntity) Insert(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (res sql.Result, err error)

func (*CustomerEntity) IsSet

func (e *CustomerEntity) IsSet() bool

IsSet returns true if the entity has non-empty primary keys.

func (*CustomerEntity) Load

func (e *CustomerEntity) Load(ctx context.Context, dbm *DBM, primaryKey uint32, opts ...dml.DBRFunc) (err error)

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

func (*CustomerEntity) Update

func (e *CustomerEntity) Update(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (res sql.Result, err error)

func (*CustomerEntity) Upsert

func (e *CustomerEntity) Upsert(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (res sql.Result, err error)

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

Copy copies the struct and returns a new pointer. TODO use deepcopy tool to generate code afterwards

func (*CustomerEntityInt) Delete

func (e *CustomerEntityInt) Delete(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (res sql.Result, err error)

func (*CustomerEntityInt) Empty

Empty empties all the fields of the current object. Also known as Reset.

func (*CustomerEntityInt) Insert

func (e *CustomerEntityInt) Insert(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (res sql.Result, err error)

func (*CustomerEntityInt) IsSet

func (e *CustomerEntityInt) IsSet() bool

IsSet returns true if the entity has non-empty primary keys.

func (*CustomerEntityInt) Load

func (e *CustomerEntityInt) Load(ctx context.Context, dbm *DBM, primaryKey int32, opts ...dml.DBRFunc) (err error)

func (*CustomerEntityInt) MapColumns

func (e *CustomerEntityInt) MapColumns(cm *dml.ColumnMap) error

MapColumns implements interface ColumnMapper only partially. Auto generated.

func (*CustomerEntityInt) Update

func (e *CustomerEntityInt) Update(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (res sql.Result, err error)

func (*CustomerEntityInt) Upsert

func (e *CustomerEntityInt) Upsert(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (res sql.Result, err error)

func (*CustomerEntityInt) Validate

func (e *CustomerEntityInt) Validate() error

Validate runs internal consistency tests.

func (*CustomerEntityInt) WriteTo

func (e *CustomerEntityInt) WriteTo(w io.Writer) (n int64, err error)

WriteTo implements io.WriterTo and writes the field names and their values to w. This is especially useful for debugging or or generating a hash of the struct.

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

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

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) DBDelete

func (cc *CustomerEntityInts) DBDelete(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (res sql.Result, err error)

func (*CustomerEntityInts) DBInsert

func (cc *CustomerEntityInts) DBInsert(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (err error)

func (*CustomerEntityInts) DBLoad

func (cc *CustomerEntityInts) DBLoad(ctx context.Context, dbm *DBM, pkIDs []int32, opts ...dml.DBRFunc) (err error)

func (*CustomerEntityInts) DBUpdate

func (cc *CustomerEntityInts) DBUpdate(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (err error)

func (*CustomerEntityInts) DBUpsert

func (cc *CustomerEntityInts) DBUpsert(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (err error)

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

Each will run function f on all items in []* CustomerEntityInt . Auto generated via dmlgen.

func (*CustomerEntityInts) Filter

Filter filters the current slice by predicate f without memory allocation. Auto generated via dmlgen.

func (*CustomerEntityInts) Insert

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.

func (*CustomerEntityInts) WriteTo

func (cc *CustomerEntityInts) WriteTo(w io.Writer) (n int64, err error)

WriteTo implements io.WriterTo and writes the field names and their values to w. This is especially useful for debugging or or generating a hash of the struct.

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

Copy copies the struct and returns a new pointer. TODO use deepcopy tool to generate code afterwards

func (*CustomerEntityVarchar) Delete

func (e *CustomerEntityVarchar) Delete(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (res sql.Result, err error)

func (*CustomerEntityVarchar) Empty

Empty empties all the fields of the current object. Also known as Reset.

func (*CustomerEntityVarchar) Insert

func (e *CustomerEntityVarchar) Insert(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (res sql.Result, err error)

func (*CustomerEntityVarchar) IsSet

func (e *CustomerEntityVarchar) IsSet() bool

IsSet returns true if the entity has non-empty primary keys.

func (*CustomerEntityVarchar) Load

func (e *CustomerEntityVarchar) Load(ctx context.Context, dbm *DBM, primaryKey int32, opts ...dml.DBRFunc) (err error)

func (*CustomerEntityVarchar) MapColumns

func (e *CustomerEntityVarchar) MapColumns(cm *dml.ColumnMap) error

MapColumns implements interface ColumnMapper only partially. Auto generated.

func (*CustomerEntityVarchar) Update

func (e *CustomerEntityVarchar) Update(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (res sql.Result, err error)

func (*CustomerEntityVarchar) Upsert

func (e *CustomerEntityVarchar) Upsert(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (res sql.Result, err error)

func (*CustomerEntityVarchar) Validate

func (e *CustomerEntityVarchar) Validate() error

Validate runs internal consistency tests.

func (*CustomerEntityVarchar) WriteTo

func (e *CustomerEntityVarchar) WriteTo(w io.Writer) (n int64, err error)

WriteTo implements io.WriterTo and writes the field names and their values to w. This is especially useful for debugging or or generating a hash of the struct.

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

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

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

Cut will remove items i through j-1. Auto generated via dmlgen.

func (*CustomerEntityVarchars) DBDelete

func (cc *CustomerEntityVarchars) DBDelete(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (res sql.Result, err error)

func (*CustomerEntityVarchars) DBInsert

func (cc *CustomerEntityVarchars) DBInsert(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (err error)

func (*CustomerEntityVarchars) DBLoad

func (cc *CustomerEntityVarchars) DBLoad(ctx context.Context, dbm *DBM, pkIDs []int32, opts ...dml.DBRFunc) (err error)

func (*CustomerEntityVarchars) DBUpdate

func (cc *CustomerEntityVarchars) DBUpdate(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (err error)

func (*CustomerEntityVarchars) DBUpsert

func (cc *CustomerEntityVarchars) DBUpsert(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (err error)

func (*CustomerEntityVarchars) Delete

Delete will remove an item from the slice. Auto generated via dmlgen.

func (*CustomerEntityVarchars) Each

Each will run function f on all items in []* CustomerEntityVarchar . Auto generated via dmlgen.

func (*CustomerEntityVarchars) Filter

Filter filters the current slice by predicate f without memory allocation. Auto generated via dmlgen.

func (*CustomerEntityVarchars) Insert

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.

func (*CustomerEntityVarchars) WriteTo

func (cc *CustomerEntityVarchars) WriteTo(w io.Writer) (n int64, err error)

WriteTo implements io.WriterTo and writes the field names and their values to w. This is especially useful for debugging or or generating a hash of the struct.

type DBM

type DBM struct {
	*ddl.Tables
	// contains filtered or unexported fields
}

DBM defines the DataBaseManagement object for the tables customer_address_entity, customer_entity, customer_entity_int, customer_entity_varchar

func NewDBManager

func NewDBManager(ctx context.Context, dbmo *DBMOption) (*DBM, error)

NewDBManager returns a goified version of the MySQL/MariaDB table schema for the tables: customer_address_entity, customer_entity, customer_entity_int, customer_entity_varchar Auto generated by dmlgen.

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.

Jump to

Keyboard shortcuts

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