{"modulePath":"github.com/weiwolves/pkg","version":"v0.0.0-20200322065615-581c8d33cff6","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package dmltestgenerated4\n\nCode generated by codegen. DO NOT EDIT. Generated by sql/dmlgen. DO NOT EDIT.\n\n## Constants\n\n```go\nconst (\n\tTableNameCoreConfiguration         = \"core_configuration\"\n\tTableNameSalesOrderStatusState     = \"sales_order_status_state\"\n\tTableNameViewCustomerAutoIncrement = \"view_customer_auto_increment\"\n)\n```\n\n## Types\n\n```go\ntype CoreConfiguration struct {\n\tConfigID  uint32      `max_len:\"10\"` // config_id int(10) unsigned NOT NULL PRI  auto_increment \"Id\"\n\tScope     string      `max_len:\"8\"`  // scope varchar(8) NOT NULL MUL DEFAULT ''default''  \"Scope\"\n\tScopeID   int32       `max_len:\"10\"` // scope_id int(11) NOT NULL  DEFAULT '0'  \"Scope Id\"\n\tExpires   null.Time   // expires datetime NULL  DEFAULT 'NULL'  \"Value expiration time\"\n\tPath      string      `max_len:\"255\"`   // path varchar(255) NOT NULL    \"Path\"\n\tValue     null.String `max_len:\"65535\"` // value text NULL  DEFAULT 'NULL'  \"Value\"\n\tVersionTs time.Time   // version_ts timestamp(6) NOT NULL   STORED GENERATED \"Timestamp Start Versioning\"\n\tVersionTe time.Time   // version_te timestamp(6) NOT NULL PRI  STORED GENERATED \"Timestamp End Versioning\"\n}\n```\nCoreConfiguration represents a single row for DB table core\\_configuration. Auto generated. Table comment: Config Data\n\n```go\nfunc (e *CoreConfiguration) AssignLastInsertID(id int64)\n```\nAssignLastInsertID updates the increment ID field with the last inserted ID from an INSERT operation. Implements dml.InsertIDAssigner. Auto generated.\n\n```go\nfunc (e *CoreConfiguration) Delete(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (res sql.Result, err error)\n```\n\n```go\nfunc (e *CoreConfiguration) Insert(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (res sql.Result, err error)\n```\n\n```go\nfunc (e *CoreConfiguration) IsSet() bool\n```\nIsSet returns true if the entity has non-empty primary keys.\n\n```go\nfunc (e *CoreConfiguration) Load(ctx context.Context, dbm *DBM, configID uint32, opts ...dml.DBRFunc) (err error)\n```\n\n```go\nfunc (e *CoreConfiguration) MapColumns(cm *dml.ColumnMap) error\n```\nMapColumns implements interface ColumnMapper only partially. Auto generated.\n\n```go\nfunc (e *CoreConfiguration) Update(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (res sql.Result, err error)\n```\n\n```go\nfunc (e *CoreConfiguration) Upsert(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (res sql.Result, err error)\n```\n\n```go\ntype CoreConfigurations struct {\n\tData []*CoreConfiguration `json:\"data,omitempty\"`\n}\n```\nCoreConfigurations represents a collection type for DB table core\\_configuration Not thread safe. Auto generated.\n\n```go\nfunc NewCoreConfigurations() *CoreConfigurations\n```\nNewCoreConfigurations  creates a new initialized collection. Auto generated.\n\n```go\nfunc (cc *CoreConfigurations) AssignLastInsertID(id int64)\n```\nAssignLastInsertID traverses through the slice and sets an incrementing new ID to each entity.\n\n```go\nfunc (cc *CoreConfigurations) ConfigIDs(ret ...uint32) []uint32\n```\nConfigIDs returns a slice with the data or appends it to a slice. Auto generated.\n\n```go\nfunc (cc *CoreConfigurations) DBDelete(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (res sql.Result, err error)\n```\n\n```go\nfunc (cc *CoreConfigurations) DBInsert(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (res sql.Result, err error)\n```\n\n```go\nfunc (cc *CoreConfigurations) DBLoad(ctx context.Context, dbm *DBM, pkIDs []uint32, opts ...dml.DBRFunc) (err error)\n```\n\n```go\nfunc (cc *CoreConfigurations) DBUpdate(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (res sql.Result, err error)\n```\n\n```go\nfunc (cc *CoreConfigurations) DBUpsert(ctx context.Context, dbm *DBM, opts ...dml.DBRFunc) (res sql.Result, err error)\n```\n\n```go\nfunc (cc *CoreConfigurations) Each(f func(*CoreConfiguration)) *CoreConfigurations\n```\nEach will run function f on all items in \\[]\\* CoreConfiguration . Auto generated via dmlgen.\n\n```go\nfunc (cc *CoreConfigurations) MapColumns(cm *dml.ColumnMap) error\n```\nMapColumns implements dml.ColumnMapper interface. Auto generated.\n\n```go\ntype DBM struct {\n\t*ddl.Tables\n\t// contains filtered or unexported fields\n}\n```\nDBM defines the DataBaseManagement object for the tables  core\\_configuration, sales\\_order\\_status\\_state, view\\_customer\\_auto\\_increment\n\n```go\nfunc NewDBManager(ctx context.Context, dbmo *DBMOption) (*DBM, error)\n```\nNewDBManager returns a goified version of the MySQL/MariaDB table schema for the tables:  core\\_configuration, sales\\_order\\_status\\_state, view\\_customer\\_auto\\_increment Auto generated by dmlgen.\n\n```go\ntype DBMOption struct {\n\tTableOptions      []ddl.TableOption // gets applied at the beginning\n\tTableOptionsAfter []ddl.TableOption // gets applied at the end\n\tInitSelectFn      func(*dml.Select) *dml.Select\n\tInitUpdateFn      func(*dml.Update) *dml.Update\n\tInitDeleteFn      func(*dml.Delete) *dml.Delete\n\tInitInsertFn      func(*dml.Insert) *dml.Insert\n\t// contains filtered or unexported fields\n}\n```\nDBMOption provides various options to the DBM object.\n\n```go\nfunc (o *DBMOption) AddEventCoreConfiguration(event dml.EventFlag, fn func(context.Context, *CoreConfigurations, *CoreConfiguration) error) *DBMOption\n```\nAddEventCoreConfiguration adds a specific defined event call back to the DBM. It panics if the event argument is larger than dml.EventFlagMax.\n\n```go\nfunc (o *DBMOption) AddEventSalesOrderStatusState(event dml.EventFlag, fn func(context.Context, *SalesOrderStatusStates, *SalesOrderStatusState) error) *DBMOption\n```\nAddEventSalesOrderStatusState adds a specific defined event call back to the DBM. It panics if the event argument is larger than dml.EventFlagMax.\n\n```go\nfunc (o *DBMOption) AddEventViewCustomerAutoIncrement(event dml.EventFlag, fn func(context.Context, *ViewCustomerAutoIncrements, *ViewCustomerAutoIncrement) error) *DBMOption\n```\nAddEventViewCustomerAutoIncrement adds a specific defined event call back to the DBM. It panics if the event argument is larger than dml.EventFlagMax.\n\n```go\ntype SalesOrderStatusState struct {\n\tStatus         string // status varchar(32) NOT NULL PRI   \"Status\"\n\tState          string // state varchar(32) NOT NULL PRI   \"Label\"\n\tIsDefault      bool   // is_default smallint(5) unsigned NOT NULL  DEFAULT '0'  \"Is Default\"\n\tVisibleOnFront uint16 // visible_on_front smallint(5) unsigned NOT NULL  DEFAULT '0'  \"Visible on front\"\n}\n```\nSalesOrderStatusState represents a single row for DB table sales\\_order\\_status\\_state. Auto generated. Table comment: Sales Order Status Table\n\n```go\nfunc (e *SalesOrderStatusState) IsSet() bool\n```\nIsSet returns true if the entity has non-empty primary keys.\n\n```go\nfunc (e *SalesOrderStatusState) Load(ctx context.Context, dbm *DBM, status string, state string, opts ...dml.DBRFunc) (err error)\n```\n\n```go\nfunc (e *SalesOrderStatusState) MapColumns(cm *dml.ColumnMap) error\n```\nMapColumns implements interface ColumnMapper only partially. Auto generated.\n\n```go\ntype SalesOrderStatusStates struct {\n\tData []*SalesOrderStatusState `json:\"data,omitempty\"`\n}\n```\nSalesOrderStatusStates represents a collection type for DB table sales\\_order\\_status\\_state Not thread safe. Auto generated.\n\n```go\nfunc NewSalesOrderStatusStates() *SalesOrderStatusStates\n```\nNewSalesOrderStatusStates  creates a new initialized collection. Auto generated.\n\n```go\nfunc (cc *SalesOrderStatusStates) DBLoad(ctx context.Context, dbm *DBM, pkIDs []SalesOrderStatusStatesDBLoadArgs, opts ...dml.DBRFunc) (err error)\n```\n\n```go\nfunc (cc *SalesOrderStatusStates) Each(f func(*SalesOrderStatusState)) *SalesOrderStatusStates\n```\nEach will run function f on all items in \\[]\\* SalesOrderStatusState . Auto generated via dmlgen.\n\n```go\nfunc (cc *SalesOrderStatusStates) MapColumns(cm *dml.ColumnMap) error\n```\nMapColumns implements dml.ColumnMapper interface. Auto generated.\n\n```go\nfunc (cc *SalesOrderStatusStates) States(ret ...string) []string\n```\nStates returns a slice with the data or appends it to a slice. Auto generated.\n\n```go\nfunc (cc *SalesOrderStatusStates) Statuss(ret ...string) []string\n```\nStatuss returns a slice with the data or appends it to a slice. Auto generated.\n\n```go\ntype SalesOrderStatusStatesDBLoadArgs struct {\n\tStatus string\n\tState  string\n}\n```\n\n```go\ntype ViewCustomerAutoIncrement struct {\n\tCeEntityID uint32      // ce_entity_id int(10) unsigned NOT NULL  DEFAULT '0'  \"Entity ID\"\n\tEmail      null.String // email varchar(255) NULL  DEFAULT 'NULL'  \"Email\"\n\tFirstname  string      // firstname varchar(255) NOT NULL    \"First Name\"\n\tLastname   string      // lastname varchar(255) NOT NULL    \"Last Name\"\n\tCity       string      // city varchar(255) NOT NULL    \"City\"\n}\n```\nViewCustomerAutoIncrement represents a single row for DB table view\\_customer\\_auto\\_increment. Auto generated. Table comment: VIEW\n\n```go\nfunc (e *ViewCustomerAutoIncrement) IsSet() bool\n```\nIsSet returns true if the entity has non-empty primary keys.\n\n```go\nfunc (e *ViewCustomerAutoIncrement) Load(ctx context.Context, dbm *DBM, ceEntityID uint32, opts ...dml.DBRFunc) (err error)\n```\n\n```go\nfunc (e *ViewCustomerAutoIncrement) MapColumns(cm *dml.ColumnMap) error\n```\nMapColumns implements interface ColumnMapper only partially. Auto generated.\n\n```go\ntype ViewCustomerAutoIncrements struct {\n\tData []*ViewCustomerAutoIncrement `json:\"data,omitempty\"`\n}\n```\nViewCustomerAutoIncrements represents a collection type for DB table view\\_customer\\_auto\\_increment Not thread safe. Auto generated.\n\n```go\nfunc NewViewCustomerAutoIncrements() *ViewCustomerAutoIncrements\n```\nNewViewCustomerAutoIncrements  creates a new initialized collection. Auto generated.\n\n```go\nfunc (cc *ViewCustomerAutoIncrements) DBLoad(ctx context.Context, dbm *DBM, pkIDs []uint32, opts ...dml.DBRFunc) (err error)\n```\n\n```go\nfunc (cc *ViewCustomerAutoIncrements) Each(f func(*ViewCustomerAutoIncrement)) *ViewCustomerAutoIncrements\n```\nEach will run function f on all items in \\[]\\* ViewCustomerAutoIncrement . Auto generated via dmlgen.\n\n```go\nfunc (cc *ViewCustomerAutoIncrements) MapColumns(cm *dml.ColumnMap) error\n```\nMapColumns implements dml.ColumnMapper interface. Auto generated.\n\n","path":"github.com/weiwolves/pkg/sql/dmlgen/dmltestgenerated4","name":"dmltestgenerated4","synopsis":"Code generated by codegen.","isRedistributable":true}
