Documentation ¶
Overview ¶
Code generated by codegen. DO NOT EDIT. Generated by sql/dmlgen. DO NOT EDIT.
Index ¶
- Constants
- type CoreConfiguration
- func (e *CoreConfiguration) AssignLastInsertID(id int64)
- func (e *CoreConfiguration) Delete(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (res sql.Result, err error)
- func (e *CoreConfiguration) Insert(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (res sql.Result, err error)
- func (e *CoreConfiguration) IsSet() bool
- func (e *CoreConfiguration) Load(ctx context.Context, dbm *DBM, configID uint32, opts ...dml.DBRFunc) (err error)
- func (e *CoreConfiguration) MapColumns(cm *dml.ColumnMap) error
- func (e *CoreConfiguration) Update(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (res sql.Result, err error)
- func (e *CoreConfiguration) Upsert(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (res sql.Result, err error)
- type CoreConfigurations
- func (cc *CoreConfigurations) AssignLastInsertID(id int64)
- func (cc *CoreConfigurations) ConfigIDs(ret ...uint32) []uint32
- func (cc *CoreConfigurations) DBDelete(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (res sql.Result, err error)
- func (cc *CoreConfigurations) DBInsert(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (res sql.Result, err error)
- func (cc *CoreConfigurations) DBLoad(ctx context.Context, dbm *DBM, pkIDs []uint32, opts ...dml.DBRFunc) (err error)
- func (cc *CoreConfigurations) DBUpdate(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (res sql.Result, err error)
- func (cc *CoreConfigurations) DBUpsert(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (res sql.Result, err error)
- func (cc *CoreConfigurations) Each(f func(*CoreConfiguration)) *CoreConfigurations
- func (cc *CoreConfigurations) MapColumns(cm *dml.ColumnMap) error
- type DBM
- type DBMOption
- type SalesOrderStatusState
- type SalesOrderStatusStates
- func (cc *SalesOrderStatusStates) DBLoad(ctx context.Context, dbm *DBM, pkIDs []SalesOrderStatusStatesDBLoadArgs, ...) (err error)
- func (cc *SalesOrderStatusStates) Each(f func(*SalesOrderStatusState)) *SalesOrderStatusStates
- func (cc *SalesOrderStatusStates) MapColumns(cm *dml.ColumnMap) error
- func (cc *SalesOrderStatusStates) States(ret ...string) []string
- func (cc *SalesOrderStatusStates) Statuss(ret ...string) []string
- type SalesOrderStatusStatesDBLoadArgs
- type ViewCustomerAutoIncrement
- type ViewCustomerAutoIncrements
- func (cc *ViewCustomerAutoIncrements) DBLoad(ctx context.Context, dbm *DBM, pkIDs []uint32, opts ...dml.DBRFunc) (err error)
- func (cc *ViewCustomerAutoIncrements) Each(f func(*ViewCustomerAutoIncrement)) *ViewCustomerAutoIncrements
- func (cc *ViewCustomerAutoIncrements) MapColumns(cm *dml.ColumnMap) error
Constants ¶
const ( TableNameCoreConfiguration = "core_configuration" TableNameSalesOrderStatusState = "sales_order_status_state" TableNameViewCustomerAutoIncrement = "view_customer_auto_increment" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CoreConfiguration ¶
type CoreConfiguration struct { ConfigID uint32 `max_len:"10"` // config_id int(10) unsigned NOT NULL PRI auto_increment "Id" Scope string `max_len:"8"` // scope varchar(8) NOT NULL MUL DEFAULT ”default” "Scope" ScopeID int32 `max_len:"10"` // scope_id int(11) NOT NULL DEFAULT '0' "Scope Id" Expires null.Time // expires datetime NULL DEFAULT 'NULL' "Value expiration time" Path string `max_len:"255"` // path varchar(255) NOT NULL "Path" Value null.String `max_len:"65535"` // value text NULL DEFAULT 'NULL' "Value" VersionTs time.Time // version_ts timestamp(6) NOT NULL STORED GENERATED "Timestamp Start Versioning" VersionTe time.Time // version_te timestamp(6) NOT NULL PRI STORED GENERATED "Timestamp End Versioning" }
CoreConfiguration represents a single row for DB table core_configuration. Auto generated. Table comment: Config Data
func (*CoreConfiguration) AssignLastInsertID ¶
func (e *CoreConfiguration) AssignLastInsertID(id int64)
AssignLastInsertID updates the increment ID field with the last inserted ID from an INSERT operation. Implements dml.InsertIDAssigner. Auto generated.
func (*CoreConfiguration) IsSet ¶
func (e *CoreConfiguration) IsSet() bool
IsSet returns true if the entity has non-empty primary keys.
func (*CoreConfiguration) MapColumns ¶
func (e *CoreConfiguration) MapColumns(cm *dml.ColumnMap) error
MapColumns implements interface ColumnMapper only partially. Auto generated.
type CoreConfigurations ¶
type CoreConfigurations struct {
Data []*CoreConfiguration `json:"data,omitempty"`
}
CoreConfigurations represents a collection type for DB table core_configuration Not thread safe. Auto generated.
func NewCoreConfigurations ¶
func NewCoreConfigurations() *CoreConfigurations
NewCoreConfigurations creates a new initialized collection. Auto generated.
func (*CoreConfigurations) AssignLastInsertID ¶
func (cc *CoreConfigurations) AssignLastInsertID(id int64)
AssignLastInsertID traverses through the slice and sets an incrementing new ID to each entity.
func (*CoreConfigurations) ConfigIDs ¶
func (cc *CoreConfigurations) ConfigIDs(ret ...uint32) []uint32
ConfigIDs returns a slice with the data or appends it to a slice. Auto generated.
func (*CoreConfigurations) Each ¶
func (cc *CoreConfigurations) Each(f func(*CoreConfiguration)) *CoreConfigurations
Each will run function f on all items in []* CoreConfiguration . Auto generated via dmlgen.
func (*CoreConfigurations) MapColumns ¶
func (cc *CoreConfigurations) MapColumns(cm *dml.ColumnMap) error
MapColumns implements dml.ColumnMapper interface. Auto generated.
type DBM ¶
DBM defines the DataBaseManagement object for the tables core_configuration, sales_order_status_state, view_customer_auto_increment
type DBMOption ¶
type DBMOption struct { 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) AddEventCoreConfiguration ¶
func (o *DBMOption) AddEventCoreConfiguration(event dml.EventFlag, fn func(context.Context, *CoreConfigurations, *CoreConfiguration) error) *DBMOption
AddEventCoreConfiguration adds a specific defined event call back to the DBM. It panics if the event argument is larger than dml.EventFlagMax.
func (*DBMOption) AddEventSalesOrderStatusState ¶
func (o *DBMOption) AddEventSalesOrderStatusState(event dml.EventFlag, fn func(context.Context, *SalesOrderStatusStates, *SalesOrderStatusState) error) *DBMOption
AddEventSalesOrderStatusState adds a specific defined event call back to the DBM. It panics if the event argument is larger than dml.EventFlagMax.
func (*DBMOption) AddEventViewCustomerAutoIncrement ¶
func (o *DBMOption) AddEventViewCustomerAutoIncrement(event dml.EventFlag, fn func(context.Context, *ViewCustomerAutoIncrements, *ViewCustomerAutoIncrement) error) *DBMOption
AddEventViewCustomerAutoIncrement adds a specific defined event call back to the DBM. It panics if the event argument is larger than dml.EventFlagMax.
type SalesOrderStatusState ¶
type SalesOrderStatusState struct { Status string // status varchar(32) NOT NULL PRI "Status" State string // state varchar(32) NOT NULL PRI "Label" IsDefault bool // is_default smallint(5) unsigned NOT NULL DEFAULT '0' "Is Default" VisibleOnFront uint16 // visible_on_front smallint(5) unsigned NOT NULL DEFAULT '0' "Visible on front" }
SalesOrderStatusState represents a single row for DB table sales_order_status_state. Auto generated. Table comment: Sales Order Status Table
func (*SalesOrderStatusState) IsSet ¶
func (e *SalesOrderStatusState) IsSet() bool
IsSet returns true if the entity has non-empty primary keys.
func (*SalesOrderStatusState) MapColumns ¶
func (e *SalesOrderStatusState) MapColumns(cm *dml.ColumnMap) error
MapColumns implements interface ColumnMapper only partially. Auto generated.
type SalesOrderStatusStates ¶
type SalesOrderStatusStates struct {
Data []*SalesOrderStatusState `json:"data,omitempty"`
}
SalesOrderStatusStates represents a collection type for DB table sales_order_status_state Not thread safe. Auto generated.
func NewSalesOrderStatusStates ¶
func NewSalesOrderStatusStates() *SalesOrderStatusStates
NewSalesOrderStatusStates creates a new initialized collection. Auto generated.
func (*SalesOrderStatusStates) DBLoad ¶
func (cc *SalesOrderStatusStates) DBLoad(ctx context.Context, dbm *DBM, pkIDs []SalesOrderStatusStatesDBLoadArgs, opts ...dml.DBRFunc) (err error)
func (*SalesOrderStatusStates) Each ¶
func (cc *SalesOrderStatusStates) Each(f func(*SalesOrderStatusState)) *SalesOrderStatusStates
Each will run function f on all items in []* SalesOrderStatusState . Auto generated via dmlgen.
func (*SalesOrderStatusStates) MapColumns ¶
func (cc *SalesOrderStatusStates) MapColumns(cm *dml.ColumnMap) error
MapColumns implements dml.ColumnMapper interface. Auto generated.
func (*SalesOrderStatusStates) States ¶
func (cc *SalesOrderStatusStates) States(ret ...string) []string
States returns a slice with the data or appends it to a slice. Auto generated.
func (*SalesOrderStatusStates) Statuss ¶
func (cc *SalesOrderStatusStates) Statuss(ret ...string) []string
Statuss returns a slice with the data or appends it to a slice. Auto generated.
type ViewCustomerAutoIncrement ¶
type ViewCustomerAutoIncrement struct { CeEntityID uint32 // ce_entity_id int(10) unsigned NOT NULL DEFAULT '0' "Entity ID" Email null.String // email varchar(255) NULL DEFAULT 'NULL' "Email" Firstname string // firstname varchar(255) NOT NULL "First Name" Lastname string // lastname varchar(255) NOT NULL "Last Name" City string // city varchar(255) NOT NULL "City" }
ViewCustomerAutoIncrement represents a single row for DB table view_customer_auto_increment. Auto generated. Table comment: VIEW
func (*ViewCustomerAutoIncrement) IsSet ¶
func (e *ViewCustomerAutoIncrement) IsSet() bool
IsSet returns true if the entity has non-empty primary keys.
func (*ViewCustomerAutoIncrement) MapColumns ¶
func (e *ViewCustomerAutoIncrement) MapColumns(cm *dml.ColumnMap) error
MapColumns implements interface ColumnMapper only partially. Auto generated.
type ViewCustomerAutoIncrements ¶
type ViewCustomerAutoIncrements struct {
Data []*ViewCustomerAutoIncrement `json:"data,omitempty"`
}
ViewCustomerAutoIncrements represents a collection type for DB table view_customer_auto_increment Not thread safe. Auto generated.
func NewViewCustomerAutoIncrements ¶
func NewViewCustomerAutoIncrements() *ViewCustomerAutoIncrements
NewViewCustomerAutoIncrements creates a new initialized collection. Auto generated.
func (*ViewCustomerAutoIncrements) Each ¶
func (cc *ViewCustomerAutoIncrements) Each(f func(*ViewCustomerAutoIncrement)) *ViewCustomerAutoIncrements
Each will run function f on all items in []* ViewCustomerAutoIncrement . Auto generated via dmlgen.
func (*ViewCustomerAutoIncrements) MapColumns ¶
func (cc *ViewCustomerAutoIncrements) MapColumns(cm *dml.ColumnMap) error
MapColumns implements dml.ColumnMapper interface. Auto generated.