dmltestgenerated

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: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TableNameCatalogProductIndexEAVDecimalIDX = "catalog_product_index_eav_decimal_idx"
	TableNameCoreConfiguration                = "core_configuration"
	TableNameCustomerAddressEntity            = "customer_address_entity"
	TableNameCustomerEntity                   = "customer_entity"
	TableNameDmlgenTypes                      = "dmlgen_types"
	TableNameSalesOrderStatusState            = "sales_order_status_state"
	TableNameViewCustomerAutoIncrement        = "view_customer_auto_increment"
	TableNameViewCustomerNoAutoIncrement      = "view_customer_no_auto_increment"
)

TableName constants define the names of all tables.

Variables

View Source
var Columns = struct {
	CatalogProductIndexEAVDecimalIDX struct {
		EntityID    string
		AttributeID string
		StoreID     string
		SourceID    string
		Value       string
	}
	CoreConfiguration struct {
		ConfigID  string
		Scope     string
		ScopeID   string
		Expires   string
		Path      string
		Value     string
		VersionTs string
		VersionTe string
	}
	CustomerAddressEntity struct {
		EntityID    string
		IncrementID string
		ParentID    string
		CreatedAt   string
		UpdatedAt   string
		IsActive    string
		City        string
		Company     string
		CountryID   string
		Firstname   string
		Lastname    string
		Postcode    string
		Region      string
		Street      string
	}
	CustomerEntity struct {
		EntityID         string
		WebsiteID        string
		Email            string
		GroupID          string
		StoreID          string
		CreatedAt        string
		UpdatedAt        string
		IsActive         string
		CreatedIn        string
		Firstname        string
		Lastname         string
		Dob              string
		PasswordHash     string
		RpToken          string
		RpTokenCreatedAt string
		DefaultBilling   string
		DefaultShipping  string
		Gender           string
	}
	DmlgenTypes struct {
		ID             string
		ColBigint1     string
		ColBigint2     string
		ColBigint3     string
		ColBigint4     string
		ColBlob        string
		ColDate1       string
		ColDate2       string
		ColDatetime1   string
		ColDatetime2   string
		ColDecimal101  string
		ColDecimal124  string
		PriceA124      string
		PriceB124      string
		ColDecimal123  string
		ColDecimal206  string
		ColDecimal2412 string
		ColInt1        string
		ColInt2        string
		ColInt3        string
		ColInt4        string
		ColLongtext1   string
		ColLongtext2   string
		ColMediumblob  string
		ColMediumtext1 string
		ColMediumtext2 string
		ColSmallint1   string
		ColSmallint2   string
		ColSmallint3   string
		ColSmallint4   string
		HasSmallint5   string
		IsSmallint5    string
		ColText        string
		ColTimestamp1  string
		ColTimestamp2  string
		ColTinyint1    string
		ColVarchar1    string
		ColVarchar100  string
		ColVarchar16   string
		ColChar1       string
		ColChar2       string
	}
	SalesOrderStatusState struct {
		Status         string
		State          string
		IsDefault      string
		VisibleOnFront string
	}
	ViewCustomerAutoIncrement struct {
		CeEntityID string
		Email      string
		Firstname  string
		Lastname   string
		City       string
	}
	ViewCustomerNoAutoIncrement struct {
		Email     string
		Firstname string
		Lastname  string
		City      string
	}
}{
	CatalogProductIndexEAVDecimalIDX: struct {
		EntityID    string
		AttributeID string
		StoreID     string
		SourceID    string
		Value       string
	}{
		EntityID:    "entity_id",
		AttributeID: "attribute_id",
		StoreID:     "store_id",
		SourceID:    "source_id",
		Value:       "value",
	},
	CoreConfiguration: struct {
		ConfigID  string
		Scope     string
		ScopeID   string
		Expires   string
		Path      string
		Value     string
		VersionTs string
		VersionTe string
	}{
		ConfigID:  "config_id",
		Scope:     "scope",
		ScopeID:   "scope_id",
		Expires:   "expires",
		Path:      "path",
		Value:     "value",
		VersionTs: "version_ts",
		VersionTe: "version_te",
	},
	CustomerAddressEntity: struct {
		EntityID    string
		IncrementID string
		ParentID    string
		CreatedAt   string
		UpdatedAt   string
		IsActive    string
		City        string
		Company     string
		CountryID   string
		Firstname   string
		Lastname    string
		Postcode    string
		Region      string
		Street      string
	}{
		EntityID:    "entity_id",
		IncrementID: "increment_id",
		ParentID:    "parent_id",
		CreatedAt:   "created_at",
		UpdatedAt:   "updated_at",
		IsActive:    "is_active",
		City:        "city",
		Company:     "company",
		CountryID:   "country_id",
		Firstname:   "firstname",
		Lastname:    "lastname",
		Postcode:    "postcode",
		Region:      "region",
		Street:      "street",
	},
	CustomerEntity: struct {
		EntityID         string
		WebsiteID        string
		Email            string
		GroupID          string
		StoreID          string
		CreatedAt        string
		UpdatedAt        string
		IsActive         string
		CreatedIn        string
		Firstname        string
		Lastname         string
		Dob              string
		PasswordHash     string
		RpToken          string
		RpTokenCreatedAt string
		DefaultBilling   string
		DefaultShipping  string
		Gender           string
	}{
		EntityID:         "entity_id",
		WebsiteID:        "website_id",
		Email:            "email",
		GroupID:          "group_id",
		StoreID:          "store_id",
		CreatedAt:        "created_at",
		UpdatedAt:        "updated_at",
		IsActive:         "is_active",
		CreatedIn:        "created_in",
		Firstname:        "firstname",
		Lastname:         "lastname",
		Dob:              "dob",
		PasswordHash:     "password_hash",
		RpToken:          "rp_token",
		RpTokenCreatedAt: "rp_token_created_at",
		DefaultBilling:   "default_billing",
		DefaultShipping:  "default_shipping",
		Gender:           "gender",
	},
	DmlgenTypes: struct {
		ID             string
		ColBigint1     string
		ColBigint2     string
		ColBigint3     string
		ColBigint4     string
		ColBlob        string
		ColDate1       string
		ColDate2       string
		ColDatetime1   string
		ColDatetime2   string
		ColDecimal101  string
		ColDecimal124  string
		PriceA124      string
		PriceB124      string
		ColDecimal123  string
		ColDecimal206  string
		ColDecimal2412 string
		ColInt1        string
		ColInt2        string
		ColInt3        string
		ColInt4        string
		ColLongtext1   string
		ColLongtext2   string
		ColMediumblob  string
		ColMediumtext1 string
		ColMediumtext2 string
		ColSmallint1   string
		ColSmallint2   string
		ColSmallint3   string
		ColSmallint4   string
		HasSmallint5   string
		IsSmallint5    string
		ColText        string
		ColTimestamp1  string
		ColTimestamp2  string
		ColTinyint1    string
		ColVarchar1    string
		ColVarchar100  string
		ColVarchar16   string
		ColChar1       string
		ColChar2       string
	}{
		ID:             "id",
		ColBigint1:     "col_bigint_1",
		ColBigint2:     "col_bigint_2",
		ColBigint3:     "col_bigint_3",
		ColBigint4:     "col_bigint_4",
		ColBlob:        "col_blob",
		ColDate1:       "col_date_1",
		ColDate2:       "col_date_2",
		ColDatetime1:   "col_datetime_1",
		ColDatetime2:   "col_datetime_2",
		ColDecimal101:  "col_decimal_10_1",
		ColDecimal124:  "col_decimal_12_4",
		PriceA124:      "price_a_12_4",
		PriceB124:      "price_b_12_4",
		ColDecimal123:  "col_decimal_12_3",
		ColDecimal206:  "col_decimal_20_6",
		ColDecimal2412: "col_decimal_24_12",
		ColInt1:        "col_int_1",
		ColInt2:        "col_int_2",
		ColInt3:        "col_int_3",
		ColInt4:        "col_int_4",
		ColLongtext1:   "col_longtext_1",
		ColLongtext2:   "col_longtext_2",
		ColMediumblob:  "col_mediumblob",
		ColMediumtext1: "col_mediumtext_1",
		ColMediumtext2: "col_mediumtext_2",
		ColSmallint1:   "col_smallint_1",
		ColSmallint2:   "col_smallint_2",
		ColSmallint3:   "col_smallint_3",
		ColSmallint4:   "col_smallint_4",
		HasSmallint5:   "has_smallint_5",
		IsSmallint5:    "is_smallint_5",
		ColText:        "col_text",
		ColTimestamp1:  "col_timestamp_1",
		ColTimestamp2:  "col_timestamp_2",
		ColTinyint1:    "col_tinyint_1",
		ColVarchar1:    "col_varchar_1",
		ColVarchar100:  "col_varchar_100",
		ColVarchar16:   "col_varchar_16",
		ColChar1:       "col_char_1",
		ColChar2:       "col_char_2",
	},
	SalesOrderStatusState: struct {
		Status         string
		State          string
		IsDefault      string
		VisibleOnFront string
	}{
		Status:         "status",
		State:          "state",
		IsDefault:      "is_default",
		VisibleOnFront: "visible_on_front",
	},
	ViewCustomerAutoIncrement: struct {
		CeEntityID string
		Email      string
		Firstname  string
		Lastname   string
		City       string
	}{
		CeEntityID: "ce_entity_id",
		Email:      "email",
		Firstname:  "firstname",
		Lastname:   "lastname",
		City:       "city",
	},
	ViewCustomerNoAutoIncrement: struct {
		Email     string
		Firstname string
		Lastname  string
		City      string
	}{
		Email:     "email",
		Firstname: "firstname",
		Lastname:  "lastname",
		City:      "city",
	},
}

Columns struct provides for all tables the name of the columns. Allows type safety.

Functions

This section is empty.

Types

type CatalogProductIndexEAVDecimalIDX

type CatalogProductIndexEAVDecimalIDX struct {
	EntityID    uint32       // entity_id int(10) unsigned NOT NULL PRI   "Entity ID"
	AttributeID uint32       // attribute_id smallint(5) unsigned NOT NULL PRI   "Attribute ID"
	StoreID     uint32       // store_id smallint(5) unsigned NOT NULL PRI   "Store ID"
	SourceID    uint32       // source_id int(10) unsigned NOT NULL PRI DEFAULT '0'  "Original entity Id for attribute value"
	Value       null.Decimal // value decimal(12,4) NOT NULL MUL   "Value"
}

CatalogProductIndexEAVDecimalIDX represents a single row for DB table catalog_product_index_eav_decimal_idx. Auto generated. Table comment: Catalog Product EAV Decimal Indexer Index Table

func (*CatalogProductIndexEAVDecimalIDX) Copy

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

func (*CatalogProductIndexEAVDecimalIDX) Delete

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

func (*CatalogProductIndexEAVDecimalIDX) Empty

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

func (*CatalogProductIndexEAVDecimalIDX) Insert

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

func (*CatalogProductIndexEAVDecimalIDX) IsSet

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

func (*CatalogProductIndexEAVDecimalIDX) Load

func (*CatalogProductIndexEAVDecimalIDX) MapColumns

MapColumns implements interface ColumnMapper only partially. Auto generated.

func (*CatalogProductIndexEAVDecimalIDX) Update

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

func (*CatalogProductIndexEAVDecimalIDX) Upsert

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

func (*CatalogProductIndexEAVDecimalIDX) Validate

Validate runs internal consistency tests.

func (*CatalogProductIndexEAVDecimalIDX) WriteTo

func (e *CatalogProductIndexEAVDecimalIDX) 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 CatalogProductIndexEAVDecimalIDXLoadArgs

type CatalogProductIndexEAVDecimalIDXLoadArgs struct {
	EntityID    uint32
	AttributeID uint32
	StoreID     uint32
	SourceID    uint32
	// contains filtered or unexported fields
}

type CatalogProductIndexEAVDecimalIDXes

type CatalogProductIndexEAVDecimalIDXes struct {
	Data []*CatalogProductIndexEAVDecimalIDX `json:"data,omitempty"`
}

CatalogProductIndexEAVDecimalIDXes represents a collection type for DB table catalog_product_index_eav_decimal_idx Not thread safe. Auto generated.

func NewCatalogProductIndexEAVDecimalIDXes

func NewCatalogProductIndexEAVDecimalIDXes() *CatalogProductIndexEAVDecimalIDXes

NewCatalogProductIndexEAVDecimalIDXes creates a new initialized collection. Auto generated.

func (*CatalogProductIndexEAVDecimalIDXes) Append

Append will add a new item at the end of * CatalogProductIndexEAVDecimalIDXes . Auto generated via dmlgen.

func (*CatalogProductIndexEAVDecimalIDXes) AttributeIDs

func (cc *CatalogProductIndexEAVDecimalIDXes) AttributeIDs(ret ...uint32) []uint32

AttributeIDs returns a slice with the data or appends it to a slice. Auto generated.

func (*CatalogProductIndexEAVDecimalIDXes) 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 (*CatalogProductIndexEAVDecimalIDXes) Cut

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

func (*CatalogProductIndexEAVDecimalIDXes) DBDelete

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

func (*CatalogProductIndexEAVDecimalIDXes) DBInsert

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

func (*CatalogProductIndexEAVDecimalIDXes) DBLoad

func (*CatalogProductIndexEAVDecimalIDXes) DBUpdate

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

func (*CatalogProductIndexEAVDecimalIDXes) DBUpsert

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

func (*CatalogProductIndexEAVDecimalIDXes) Delete

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

func (*CatalogProductIndexEAVDecimalIDXes) Each

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

func (*CatalogProductIndexEAVDecimalIDXes) EntityIDs

func (cc *CatalogProductIndexEAVDecimalIDXes) EntityIDs(ret ...uint32) []uint32

EntityIDs returns a slice with the data or appends it to a slice. Auto generated.

func (*CatalogProductIndexEAVDecimalIDXes) Filter

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

func (*CatalogProductIndexEAVDecimalIDXes) Insert

Insert will place a new item at position i. Auto generated via dmlgen.

func (*CatalogProductIndexEAVDecimalIDXes) Len

Len will satisfy the sort.Interface. Auto generated via dmlgen.

func (*CatalogProductIndexEAVDecimalIDXes) MapColumns

MapColumns implements dml.ColumnMapper interface. Auto generated.

func (*CatalogProductIndexEAVDecimalIDXes) SourceIDs

func (cc *CatalogProductIndexEAVDecimalIDXes) SourceIDs(ret ...uint32) []uint32

SourceIDs returns a slice with the data or appends it to a slice. Auto generated.

func (*CatalogProductIndexEAVDecimalIDXes) StoreIDs

func (cc *CatalogProductIndexEAVDecimalIDXes) StoreIDs(ret ...uint32) []uint32

StoreIDs returns a slice with the data or appends it to a slice. Auto generated.

func (*CatalogProductIndexEAVDecimalIDXes) Swap

func (cc *CatalogProductIndexEAVDecimalIDXes) Swap(i, j int)

Swap will satisfy the sort.Interface. Auto generated via dmlgen.

func (*CatalogProductIndexEAVDecimalIDXes) Validate

func (cc *CatalogProductIndexEAVDecimalIDXes) Validate() (err error)

Validate runs internal consistency tests on all items.

func (*CatalogProductIndexEAVDecimalIDXes) WriteTo

func (cc *CatalogProductIndexEAVDecimalIDXes) 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 CatalogProductIndexEAVDecimalIDXesDBLoadArgs

type CatalogProductIndexEAVDecimalIDXesDBLoadArgs struct {
	EntityID    uint32
	AttributeID uint32
	StoreID     uint32
	SourceID    uint32
	// contains filtered or unexported fields
}

type CoreConfiguration

type CoreConfiguration struct {
	ConfigID  uint32      `json:"config_id,omitempty" max_len:"10"`  // config_id int(10) unsigned NOT NULL PRI  auto_increment "Id"
	Scope     string      `json:"scope,omitempty" max_len:"8"`       // scope varchar(8) NOT NULL MUL DEFAULT ”default”  "Scope"
	ScopeID   int32       `json:"scope_id" xml:"scope_id"`           // scope_id int(11) NOT NULL  DEFAULT '0'  "Scope Id"
	Expires   null.Time   `json:"expires,omitempty" `                // expires datetime NULL  DEFAULT 'NULL'  "Value expiration time"
	Path      string      `json:"x_path" xml:"y_path" max_len:"255"` // path varchar(255) NOT NULL  DEFAULT ”general”  "Config Path overwritten"
	Value     null.String `json:"value,omitempty" max_len:"65535"`   // value text NULL  DEFAULT 'NULL'  "Value"
	VersionTs time.Time   `json:"version_ts,omitempty" `             // version_ts timestamp(6) NOT NULL   STORED GENERATED "Timestamp Start Versioning"
	VersionTe time.Time   `json:"version_te,omitempty" `             // 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) Copy

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

func (*CoreConfiguration) Delete

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

func (*CoreConfiguration) Empty

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

func (*CoreConfiguration) Insert

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

func (*CoreConfiguration) IsSet

func (e *CoreConfiguration) IsSet() bool

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

func (*CoreConfiguration) Load

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

func (*CoreConfiguration) MapColumns

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

MapColumns implements interface ColumnMapper only partially. Auto generated.

func (CoreConfiguration) MarshalEasyJSON

func (v CoreConfiguration) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (CoreConfiguration) MarshalJSON

func (v CoreConfiguration) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*CoreConfiguration) UnmarshalEasyJSON

func (v *CoreConfiguration) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CoreConfiguration) UnmarshalJSON

func (v *CoreConfiguration) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (*CoreConfiguration) Update

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

func (*CoreConfiguration) Upsert

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

func (*CoreConfiguration) Validate

func (e *CoreConfiguration) Validate() error

Validate runs internal consistency tests.

func (*CoreConfiguration) WriteTo

func (e *CoreConfiguration) 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 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) Append

Append will add a new item at the end of * CoreConfigurations . Auto generated via dmlgen.

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

func (cc *CoreConfigurations) Cut(i, j int) *CoreConfigurations

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

func (*CoreConfigurations) DBDelete

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

func (*CoreConfigurations) DBInsert

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

func (*CoreConfigurations) DBLoad

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

func (*CoreConfigurations) DBUpdate

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

func (*CoreConfigurations) DBUpsert

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

func (*CoreConfigurations) Delete

func (cc *CoreConfigurations) Delete(i int) *CoreConfigurations

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

func (*CoreConfigurations) Each

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

func (*CoreConfigurations) Filter

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

func (*CoreConfigurations) Insert

Insert will place a new item at position i. Auto generated via dmlgen.

func (*CoreConfigurations) Len

func (cc *CoreConfigurations) Len() int

Len will satisfy the sort.Interface. Auto generated via dmlgen.

func (*CoreConfigurations) MapColumns

func (cc *CoreConfigurations) MapColumns(cm *dml.ColumnMap) error

MapColumns implements dml.ColumnMapper interface. Auto generated.

func (CoreConfigurations) MarshalEasyJSON

func (v CoreConfigurations) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (CoreConfigurations) MarshalJSON

func (v CoreConfigurations) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*CoreConfigurations) Swap

func (cc *CoreConfigurations) Swap(i, j int)

Swap will satisfy the sort.Interface. Auto generated via dmlgen.

func (*CoreConfigurations) UniquePaths

func (cc *CoreConfigurations) UniquePaths(ret ...string) []string

Paths belongs to the column "path" and returns a slice or appends to a slice only unique values of that column. The values will be filtered internally in a Go map. No DB query gets executed. Auto generated.

func (*CoreConfigurations) UnmarshalEasyJSON

func (v *CoreConfigurations) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CoreConfigurations) UnmarshalJSON

func (v *CoreConfigurations) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (*CoreConfigurations) Validate

func (cc *CoreConfigurations) Validate() (err error)

Validate runs internal consistency tests on all items.

func (*CoreConfigurations) WriteTo

func (cc *CoreConfigurations) 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 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) Append

Append will add a new item at the end of * CustomerAddressEntities . Auto generated via dmlgen.

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

Cut will remove items i through j-1. 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) Delete

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

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

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

func (*CustomerAddressEntities) Insert

Insert will place a new item at position i. Auto generated via dmlgen.

func (*CustomerAddressEntities) Len

func (cc *CustomerAddressEntities) Len() int

Len will satisfy the sort.Interface. Auto generated via dmlgen.

func (*CustomerAddressEntities) MapColumns

func (cc *CustomerAddressEntities) MapColumns(cm *dml.ColumnMap) error

MapColumns implements dml.ColumnMapper interface. Auto generated.

func (CustomerAddressEntities) MarshalEasyJSON

func (v CustomerAddressEntities) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (CustomerAddressEntities) MarshalJSON

func (v CustomerAddressEntities) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*CustomerAddressEntities) Swap

func (cc *CustomerAddressEntities) Swap(i, j int)

Swap will satisfy the sort.Interface. Auto generated via dmlgen.

func (*CustomerAddressEntities) UnmarshalEasyJSON

func (v *CustomerAddressEntities) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CustomerAddressEntities) UnmarshalJSON

func (v *CustomerAddressEntities) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (*CustomerAddressEntities) Validate

func (cc *CustomerAddressEntities) Validate() (err error)

Validate runs internal consistency tests on all items.

func (*CustomerAddressEntities) WriteTo

func (cc *CustomerAddressEntities) 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 CustomerAddressEntity

type CustomerAddressEntity struct {
	EntityID    uint32      `max_len:"10"` // entity_id int(10) unsigned NOT NULL PRI  auto_increment "Entity ID"
	IncrementID null.String `max_len:"50"` // increment_id varchar(50) NULL  DEFAULT 'NULL'  "Increment Id"
	ParentID    null.Uint32 `max_len:"10"` // parent_id int(10) unsigned NULL MUL DEFAULT 'NULL'  "Parent ID"
	CreatedAt   time.Time   // created_at timestamp NOT NULL  DEFAULT 'current_timestamp()'  "Created At"
	UpdatedAt   time.Time   // updated_at timestamp NOT NULL  DEFAULT 'current_timestamp()' on update current_timestamp() "Updated At"
	IsActive    bool        `max_len:"5"`     // is_active smallint(5) unsigned NOT NULL  DEFAULT '1'  "Is Active"
	City        string      `max_len:"255"`   // city varchar(255) NOT NULL    "City"
	Company     null.String `max_len:"255"`   // company varchar(255) NULL  DEFAULT 'NULL'  "Company"
	CountryID   string      `max_len:"255"`   // country_id varchar(255) NOT NULL    "Country"
	Firstname   string      `max_len:"255"`   // firstname varchar(255) NOT NULL    "First Name"
	Lastname    string      `max_len:"255"`   // lastname varchar(255) NOT NULL    "Last Name"
	Postcode    null.String `max_len:"255"`   // postcode varchar(255) NULL  DEFAULT 'NULL'  "Zip/Postal Code"
	Region      null.String `max_len:"255"`   // region varchar(255) NULL  DEFAULT 'NULL'  "State/Province"
	Street      string      `max_len:"65535"` // street text NOT NULL    "Street Address"
}

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

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

func (*CustomerAddressEntity) Delete

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

func (*CustomerAddressEntity) Empty

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

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

func (v CustomerAddressEntity) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (CustomerAddressEntity) MarshalJSON

func (v CustomerAddressEntity) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*CustomerAddressEntity) UnmarshalEasyJSON

func (v *CustomerAddressEntity) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CustomerAddressEntity) UnmarshalJSON

func (v *CustomerAddressEntity) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

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)

func (*CustomerAddressEntity) Validate

func (e *CustomerAddressEntity) Validate() error

Validate runs internal consistency tests.

func (*CustomerAddressEntity) WriteTo

func (e *CustomerAddressEntity) 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 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) Append

Append will add a new item at the end of * CustomerEntities . Auto generated via dmlgen.

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

func (cc *CustomerEntities) Cut(i, j int) *CustomerEntities

Cut will remove items i through j-1. 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) Delete

func (cc *CustomerEntities) Delete(i int) *CustomerEntities

Delete will remove an item from the slice. 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) Filter

func (cc *CustomerEntities) Filter(f func(*CustomerEntity) bool) *CustomerEntities

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

func (*CustomerEntities) Insert

Insert will place a new item at position i. Auto generated via dmlgen.

func (*CustomerEntities) Len

func (cc *CustomerEntities) Len() int

Len will satisfy the sort.Interface. Auto generated via dmlgen.

func (*CustomerEntities) MapColumns

func (cc *CustomerEntities) MapColumns(cm *dml.ColumnMap) error

MapColumns implements dml.ColumnMapper interface. Auto generated.

func (CustomerEntities) MarshalEasyJSON

func (v CustomerEntities) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (CustomerEntities) MarshalJSON

func (v CustomerEntities) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*CustomerEntities) Swap

func (cc *CustomerEntities) Swap(i, j int)

Swap will satisfy the sort.Interface. Auto generated via dmlgen.

func (*CustomerEntities) UnmarshalEasyJSON

func (v *CustomerEntities) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CustomerEntities) UnmarshalJSON

func (v *CustomerEntities) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (*CustomerEntities) Validate

func (cc *CustomerEntities) Validate() (err error)

Validate runs internal consistency tests on all items.

func (*CustomerEntities) WriteTo

func (cc *CustomerEntities) 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 CustomerEntity

type CustomerEntity struct {
	EntityID  uint32      `max_len:"10"`  // entity_id int(10) unsigned NOT NULL PRI  auto_increment "Entity ID"
	WebsiteID null.Uint32 `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"
	GroupID   uint32      `max_len:"5"`   // group_id smallint(5) unsigned NOT NULL  DEFAULT '0'  "Group ID"
	StoreID   null.Uint32 `max_len:"5"`   // store_id smallint(5) unsigned NULL MUL DEFAULT '0'  "Store ID"
	CreatedAt time.Time   // created_at timestamp NOT NULL  DEFAULT 'current_timestamp()'  "Created At"
	UpdatedAt time.Time   // updated_at timestamp NOT NULL  DEFAULT 'current_timestamp()' on update current_timestamp() "Updated At"
	IsActive  bool        `max_len:"5"`   // is_active smallint(5) unsigned NOT NULL  DEFAULT '1'  "Is Active"
	CreatedIn null.String `max_len:"255"` // created_in varchar(255) NULL  DEFAULT 'NULL'  "Created From"
	Firstname null.String `max_len:"255"` // firstname varchar(255) NULL MUL DEFAULT 'NULL'  "First Name"
	Lastname  null.String `max_len:"255"` // lastname varchar(255) NULL MUL DEFAULT 'NULL'  "Last Name"
	Dob       null.Time   // dob date NULL  DEFAULT 'NULL'  "Date of Birth"

	RpToken          null.String `max_len:"128"` // rp_token varchar(128) NULL  DEFAULT 'NULL'  "Reset password token"
	RpTokenCreatedAt null.Time   // rp_token_created_at datetime NULL  DEFAULT 'NULL'  "Reset password token creation time"
	DefaultBilling   null.Uint32 `max_len:"10"` // default_billing int(10) unsigned NULL  DEFAULT 'NULL'  "Default Billing Address"
	DefaultShipping  null.Uint32 `max_len:"10"` // default_shipping int(10) unsigned NULL  DEFAULT 'NULL'  "Default Shipping Address"
	Gender           null.Uint32 `max_len:"5"`  // gender smallint(5) unsigned NULL  DEFAULT 'NULL'  "Gender"
	Relations        *customerEntityRelations
	// contains filtered or unexported fields
}

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

func (e *CustomerEntity) Copy() *CustomerEntity

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

func (*CustomerEntity) Delete

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

func (*CustomerEntity) Empty

func (e *CustomerEntity) Empty() *CustomerEntity

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

func (*CustomerEntity) GetPasswordHash

func (e *CustomerEntity) GetPasswordHash() null.String

Get PasswordHash returns the data from a private and security sensitive field.

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

func (v CustomerEntity) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (CustomerEntity) MarshalJSON

func (v CustomerEntity) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*CustomerEntity) NewRelations

func (e *CustomerEntity) NewRelations() *customerEntityRelations

func (*CustomerEntity) SetPasswordHash

func (e *CustomerEntity) SetPasswordHash(d null.String) *CustomerEntity

Set PasswordHash sets the data for a private and security sensitive field.

func (*CustomerEntity) UnmarshalEasyJSON

func (v *CustomerEntity) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CustomerEntity) UnmarshalJSON

func (v *CustomerEntity) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

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)

func (*CustomerEntity) Validate

func (e *CustomerEntity) Validate() error

Validate runs internal consistency tests.

func (*CustomerEntity) WriteTo

func (e *CustomerEntity) 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 catalog_product_index_eav_decimal_idx, core_configuration, customer_address_entity, customer_entity, dmlgen_types, sales_order_status_state, view_customer_auto_increment, view_customer_no_auto_increment

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: catalog_product_index_eav_decimal_idx, core_configuration, customer_address_entity, customer_entity, dmlgen_types, sales_order_status_state, view_customer_auto_increment, view_customer_no_auto_increment 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) AddEventCatalogProductIndexEAVDecimalIDX

func (o *DBMOption) AddEventCatalogProductIndexEAVDecimalIDX(event dml.EventFlag, fn EventCatalogProductIndexEAVDecimalIDXFn) *DBMOption

AddEventCatalogProductIndexEAVDecimalIDX adds a specific defined event call back to the DBM. It panics if the event argument is larger than dml.EventFlagMax.

func (*DBMOption) AddEventCoreConfiguration

func (o *DBMOption) AddEventCoreConfiguration(event dml.EventFlag, fn EventCoreConfigurationFn) *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) 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) AddEventDmlgenTypes

func (o *DBMOption) AddEventDmlgenTypes(event dml.EventFlag, fn EventDmlgenTypesFn) *DBMOption

AddEventDmlgenTypes 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 EventSalesOrderStatusStateFn) *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 EventViewCustomerAutoIncrementFn) *DBMOption

AddEventViewCustomerAutoIncrement adds a specific defined event call back to the DBM. It panics if the event argument is larger than dml.EventFlagMax.

func (*DBMOption) AddEventViewCustomerNoAutoIncrement

func (o *DBMOption) AddEventViewCustomerNoAutoIncrement(event dml.EventFlag, fn EventViewCustomerNoAutoIncrementFn) *DBMOption

AddEventViewCustomerNoAutoIncrement adds a specific defined event call back to the DBM. It panics if the event argument is larger than dml.EventFlagMax.

type DmlgenTypes

type DmlgenTypes struct {
	ID             int32        `json:"id,omitempty"  max_len:"10"`                     // id int(11) NOT NULL PRI  auto_increment ""
	ColBigint1     null.Int64   `json:"col_bigint_1,omitempty"  max_len:"19"`           // col_bigint_1 bigint(20) NULL  DEFAULT 'NULL'  ""
	ColBigint2     int64        `json:"col_bigint_2,omitempty"  max_len:"19"`           // col_bigint_2 bigint(20) NOT NULL  DEFAULT '0'  ""
	ColBigint3     null.Uint64  `json:"col_bigint_3,omitempty"  max_len:"20"`           // col_bigint_3 bigint(20) unsigned NULL  DEFAULT 'NULL'  ""
	ColBigint4     uint64       `json:"col_bigint_4,omitempty"  max_len:"20"`           // col_bigint_4 bigint(20) unsigned NOT NULL  DEFAULT '0'  ""
	ColBlob        []byte       `json:"col_blob,omitempty"  max_len:"65535"`            // col_blob blob NULL  DEFAULT 'NULL'  ""
	ColDate1       null.Time    `json:"col_date_1,omitempty"  `                         // col_date_1 date NULL  DEFAULT 'NULL'  ""
	ColDate2       time.Time    `json:"col_date_2,omitempty"  `                         // col_date_2 date NOT NULL  DEFAULT ”0000-00-00”  ""
	ColDatetime1   null.Time    `json:"col_datetime_1,omitempty"  `                     // col_datetime_1 datetime NULL  DEFAULT 'NULL'  ""
	ColDatetime2   time.Time    `json:"col_datetime_2,omitempty"  `                     // col_datetime_2 datetime NOT NULL  DEFAULT ”0000-00-00 00:00:00”  ""
	ColDecimal101  null.Decimal `json:"col_decimal_10_1,omitempty"  max_len:"10"`       // col_decimal_10_1 decimal(10,1) unsigned NULL  DEFAULT 'NULL'  ""
	ColDecimal124  null.Decimal `json:"col_decimal_12_4,omitempty"  max_len:"12"`       // col_decimal_12_4 decimal(12,4) NULL  DEFAULT 'NULL'  ""
	PriceA124      null.Decimal `json:"price_a_12_4,omitempty"  max_len:"12"`           // price_a_12_4 decimal(12,4) NULL  DEFAULT 'NULL'  ""
	PriceB124      null.Decimal `json:"price_b_12_4,omitempty"  max_len:"12"`           // price_b_12_4 decimal(12,4) NOT NULL  DEFAULT '0.0000'  ""
	ColDecimal123  null.Decimal `json:"col_decimal_12_3,omitempty"  max_len:"12"`       // col_decimal_12_3 decimal(12,3) NOT NULL  DEFAULT '0.000'  ""
	ColDecimal206  null.Decimal `json:"col_decimal_20_6,omitempty"  max_len:"20"`       // col_decimal_20_6 decimal(20,6) NOT NULL  DEFAULT '0.000000'  ""
	ColDecimal2412 null.Decimal `json:"col_decimal_24_12,omitempty"  max_len:"24"`      // col_decimal_24_12 decimal(24,12) NOT NULL  DEFAULT '0.000000000000'  ""
	ColInt1        null.Int32   `json:"col_int_1,omitempty"  max_len:"10"`              // col_int_1 int(10) NULL  DEFAULT 'NULL'  ""
	ColInt2        int32        `json:"col_int_2,omitempty"  max_len:"10"`              // col_int_2 int(10) NOT NULL  DEFAULT '0'  ""
	ColInt3        null.Uint32  `json:"col_int_3,omitempty"  max_len:"10"`              // col_int_3 int(10) unsigned NULL  DEFAULT 'NULL'  ""
	ColInt4        uint32       `json:"col_int_4,omitempty"  max_len:"10"`              // col_int_4 int(10) unsigned NOT NULL  DEFAULT '0'  ""
	ColLongtext1   null.String  `json:"col_longtext_1,omitempty"  max_len:"4294967295"` // col_longtext_1 longtext NULL  DEFAULT 'NULL'  ""
	ColLongtext2   string       `json:"col_longtext_2,omitempty"  max_len:"4294967295"` // col_longtext_2 longtext NOT NULL  DEFAULT ””  ""
	ColMediumblob  []byte       `json:"col_mediumblob,omitempty"  max_len:"16777215"`   // col_mediumblob mediumblob NULL  DEFAULT 'NULL'  ""
	ColMediumtext1 null.String  `json:"col_mediumtext_1,omitempty"  max_len:"16777215"` // col_mediumtext_1 mediumtext NULL  DEFAULT 'NULL'  ""
	ColMediumtext2 string       `json:"col_mediumtext_2,omitempty"  max_len:"16777215"` // col_mediumtext_2 mediumtext NOT NULL  DEFAULT ””  ""
	ColSmallint1   null.Int32   `json:"col_smallint_1,omitempty"  max_len:"5"`          // col_smallint_1 smallint(5) NULL  DEFAULT 'NULL'  ""
	ColSmallint2   int32        `json:"col_smallint_2,omitempty"  max_len:"5"`          // col_smallint_2 smallint(5) NOT NULL  DEFAULT '0'  ""
	ColSmallint3   null.Uint32  `json:"col_smallint_3,omitempty"  max_len:"5"`          // col_smallint_3 smallint(5) unsigned NULL  DEFAULT 'NULL'  ""
	ColSmallint4   uint32       `json:"col_smallint_4,omitempty"  max_len:"5"`          // col_smallint_4 smallint(5) unsigned NOT NULL  DEFAULT '0'  ""
	HasSmallint5   bool         `json:"has_smallint_5,omitempty"  max_len:"5"`          // has_smallint_5 smallint(5) unsigned NOT NULL  DEFAULT '0'  ""
	IsSmallint5    null.Bool    `json:"is_smallint_5,omitempty"  max_len:"5"`           // is_smallint_5 smallint(5) NULL  DEFAULT 'NULL'  ""
	ColText        null.String  `json:"col_text,omitempty"  max_len:"65535"`            // col_text text NULL  DEFAULT 'NULL'  ""
	ColTimestamp1  time.Time    `json:"col_timestamp_1,omitempty"  `                    // col_timestamp_1 timestamp NOT NULL  DEFAULT 'current_timestamp()'  ""
	ColTimestamp2  null.Time    `json:"col_timestamp_2,omitempty"  `                    // col_timestamp_2 timestamp NULL  DEFAULT 'NULL'  ""
	ColTinyint1    int32        `json:"col_tinyint_1,omitempty"  max_len:"3"`           // col_tinyint_1 tinyint(1) NOT NULL  DEFAULT '0'  ""
	ColVarchar1    string       `json:"col_varchar_1,omitempty"  max_len:"1"`           // col_varchar_1 varchar(1) NOT NULL  DEFAULT ”0”  ""
	ColVarchar100  null.String  `json:"col_varchar_100,omitempty"  max_len:"100"`       // col_varchar_100 varchar(100) NULL  DEFAULT 'NULL'  ""
	ColVarchar16   string       `json:"col_varchar_16,omitempty"  max_len:"16"`         // col_varchar_16 varchar(16) NOT NULL  DEFAULT ”de_DE”  ""
	ColChar1       null.String  `json:"col_char_1,omitempty"  max_len:"21"`             // col_char_1 char(21) NULL  DEFAULT 'NULL'  ""
	ColChar2       string       `json:"col_char_2,omitempty"  max_len:"17"`             // col_char_2 char(17) NOT NULL  DEFAULT ”xchar”  ""
}

DmlgenTypes represents a single row for DB table dmlgen_types. Auto generated. // Just another comment.

func (*DmlgenTypes) AssignLastInsertID

func (e *DmlgenTypes) AssignLastInsertID(id int64)

AssignLastInsertID updates the increment ID field with the last inserted ID from an INSERT operation. Implements dml.InsertIDAssigner. Auto generated.

func (*DmlgenTypes) Copy

func (e *DmlgenTypes) Copy() *DmlgenTypes

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

func (*DmlgenTypes) Delete

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

func (*DmlgenTypes) Empty

func (e *DmlgenTypes) Empty() *DmlgenTypes

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

func (*DmlgenTypes) Insert

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

func (*DmlgenTypes) IsSet

func (e *DmlgenTypes) IsSet() bool

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

func (*DmlgenTypes) Load

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

func (*DmlgenTypes) MapColumns

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

MapColumns implements interface ColumnMapper only partially. Auto generated.

func (DmlgenTypes) MarshalEasyJSON

func (v DmlgenTypes) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (DmlgenTypes) MarshalJSON

func (v DmlgenTypes) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*DmlgenTypes) UnmarshalEasyJSON

func (v *DmlgenTypes) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*DmlgenTypes) UnmarshalJSON

func (v *DmlgenTypes) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (*DmlgenTypes) Update

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

func (*DmlgenTypes) Upsert

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

func (*DmlgenTypes) Validate

func (e *DmlgenTypes) Validate() error

Validate runs internal consistency tests.

func (*DmlgenTypes) WriteTo

func (e *DmlgenTypes) 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 DmlgenTypesCollection

type DmlgenTypesCollection struct {
	Data []*DmlgenTypes `json:"data,omitempty"`
}

DmlgenTypesCollection represents a collection type for DB table dmlgen_types Not thread safe. Auto generated. // Just another comment.

func NewDmlgenTypesCollection

func NewDmlgenTypesCollection() *DmlgenTypesCollection

NewDmlgenTypesCollection creates a new initialized collection. Auto generated.

func (*DmlgenTypesCollection) Append

Append will add a new item at the end of * DmlgenTypesCollection . Auto generated via dmlgen.

func (*DmlgenTypesCollection) AssignLastInsertID

func (cc *DmlgenTypesCollection) AssignLastInsertID(id int64)

AssignLastInsertID traverses through the slice and sets an incrementing new ID to each entity.

func (*DmlgenTypesCollection) 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 (*DmlgenTypesCollection) Cut

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

func (*DmlgenTypesCollection) DBDelete

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

func (*DmlgenTypesCollection) DBInsert

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

func (*DmlgenTypesCollection) DBLoad

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

func (*DmlgenTypesCollection) DBUpdate

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

func (*DmlgenTypesCollection) DBUpsert

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

func (*DmlgenTypesCollection) Delete

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

func (*DmlgenTypesCollection) Each

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

func (*DmlgenTypesCollection) Filter

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

func (*DmlgenTypesCollection) IDs

func (cc *DmlgenTypesCollection) IDs(ret ...int32) []int32

IDs returns a slice with the data or appends it to a slice. Auto generated.

func (*DmlgenTypesCollection) Insert

Insert will place a new item at position i. Auto generated via dmlgen.

func (*DmlgenTypesCollection) Len

func (cc *DmlgenTypesCollection) Len() int

Len will satisfy the sort.Interface. Auto generated via dmlgen.

func (*DmlgenTypesCollection) MapColumns

func (cc *DmlgenTypesCollection) MapColumns(cm *dml.ColumnMap) error

MapColumns implements dml.ColumnMapper interface. Auto generated.

func (DmlgenTypesCollection) MarshalEasyJSON

func (v DmlgenTypesCollection) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (DmlgenTypesCollection) MarshalJSON

func (v DmlgenTypesCollection) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*DmlgenTypesCollection) Swap

func (cc *DmlgenTypesCollection) Swap(i, j int)

Swap will satisfy the sort.Interface. Auto generated via dmlgen.

func (*DmlgenTypesCollection) UniqueColDate2s

func (cc *DmlgenTypesCollection) UniqueColDate2s(ret ...time.Time) []time.Time

ColDate2s belongs to the column "col_date_2" and returns a slice or appends to a slice only unique values of that column. The values will be filtered internally in a Go map. No DB query gets executed. Auto generated.

func (*DmlgenTypesCollection) UniqueColInt1s

func (cc *DmlgenTypesCollection) UniqueColInt1s(ret ...int32) []int32

ColInt1s belongs to the column "col_int_1" and returns a slice or appends to a slice only unique values of that column. The values will be filtered internally in a Go map. No DB query gets executed. Auto generated.

func (*DmlgenTypesCollection) UniqueColInt2s

func (cc *DmlgenTypesCollection) UniqueColInt2s(ret ...int32) []int32

ColInt2s belongs to the column "col_int_2" and returns a slice or appends to a slice only unique values of that column. The values will be filtered internally in a Go map. No DB query gets executed. Auto generated.

func (*DmlgenTypesCollection) UniqueColVarchar100s

func (cc *DmlgenTypesCollection) UniqueColVarchar100s(ret ...string) []string

ColVarchar100s belongs to the column "col_varchar_100" and returns a slice or appends to a slice only unique values of that column. The values will be filtered internally in a Go map. No DB query gets executed. Auto generated.

func (*DmlgenTypesCollection) UniqueHasSmallint5s

func (cc *DmlgenTypesCollection) UniqueHasSmallint5s(ret ...bool) []bool

HasSmallint5s belongs to the column "has_smallint_5" and returns a slice or appends to a slice only unique values of that column. The values will be filtered internally in a Go map. No DB query gets executed. Auto generated.

func (*DmlgenTypesCollection) UniquePriceA124s

func (cc *DmlgenTypesCollection) UniquePriceA124s(ret ...null.Decimal) []null.Decimal

PriceA124s belongs to the column "price_a_12_4" and returns a slice or appends to a slice only unique values of that column. The values will be filtered internally in a Go map. No DB query gets executed. Auto generated.

func (*DmlgenTypesCollection) UnmarshalEasyJSON

func (v *DmlgenTypesCollection) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*DmlgenTypesCollection) UnmarshalJSON

func (v *DmlgenTypesCollection) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (*DmlgenTypesCollection) Validate

func (cc *DmlgenTypesCollection) Validate() (err error)

Validate runs internal consistency tests on all items.

func (*DmlgenTypesCollection) WriteTo

func (cc *DmlgenTypesCollection) 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 EventCatalogProductIndexEAVDecimalIDXFn

type EventCatalogProductIndexEAVDecimalIDXFn func(context.Context, *CatalogProductIndexEAVDecimalIDXes, *CatalogProductIndexEAVDecimalIDX) 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 EventCoreConfigurationFn

type EventCoreConfigurationFn func(context.Context, *CoreConfigurations, *CoreConfiguration) 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 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 EventDmlgenTypesFn

type EventDmlgenTypesFn func(context.Context, *DmlgenTypesCollection, *DmlgenTypes) 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 EventSalesOrderStatusStateFn

type EventSalesOrderStatusStateFn func(context.Context, *SalesOrderStatusStates, *SalesOrderStatusState) 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 EventViewCustomerAutoIncrementFn

type EventViewCustomerAutoIncrementFn func(context.Context, *ViewCustomerAutoIncrements, *ViewCustomerAutoIncrement) 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 EventViewCustomerNoAutoIncrementFn

type EventViewCustomerNoAutoIncrementFn func(context.Context, *ViewCustomerNoAutoIncrements, *ViewCustomerNoAutoIncrement) 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 SalesOrderStatusState

type SalesOrderStatusState struct {
	Status         string `max_len:"32"` // status varchar(32) NOT NULL PRI   "Status"
	State          string `max_len:"32"` // state varchar(32) NOT NULL PRI   "Label"
	IsDefault      bool   `max_len:"5"`  // is_default smallint(5) unsigned NOT NULL  DEFAULT '0'  "Is Default"
	VisibleOnFront uint32 `max_len:"5"`  // 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) Copy

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

func (*SalesOrderStatusState) Delete

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

func (*SalesOrderStatusState) Empty

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

func (*SalesOrderStatusState) Insert

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

func (*SalesOrderStatusState) IsSet

func (e *SalesOrderStatusState) IsSet() bool

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

func (*SalesOrderStatusState) Load

func (e *SalesOrderStatusState) Load(ctx context.Context, dbm *DBM, arg SalesOrderStatusStateLoadArgs, opts ...dml.DBRFunc) (err error)

func (*SalesOrderStatusState) MapColumns

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

MapColumns implements interface ColumnMapper only partially. Auto generated.

func (SalesOrderStatusState) MarshalEasyJSON

func (v SalesOrderStatusState) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SalesOrderStatusState) MarshalJSON

func (v SalesOrderStatusState) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SalesOrderStatusState) UnmarshalEasyJSON

func (v *SalesOrderStatusState) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SalesOrderStatusState) UnmarshalJSON

func (v *SalesOrderStatusState) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (*SalesOrderStatusState) Update

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

func (*SalesOrderStatusState) Upsert

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

func (*SalesOrderStatusState) Validate

func (e *SalesOrderStatusState) Validate() error

Validate runs internal consistency tests.

func (*SalesOrderStatusState) WriteTo

func (e *SalesOrderStatusState) 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 SalesOrderStatusStateLoadArgs

type SalesOrderStatusStateLoadArgs struct {
	Status string
	State  string
	// contains filtered or unexported fields
}

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

Append will add a new item at the end of * SalesOrderStatusStates . Auto generated via dmlgen.

func (*SalesOrderStatusStates) 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 (*SalesOrderStatusStates) Cut

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

func (*SalesOrderStatusStates) DBDelete

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

func (*SalesOrderStatusStates) DBInsert

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

func (*SalesOrderStatusStates) DBLoad

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

func (*SalesOrderStatusStates) DBUpdate

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

func (*SalesOrderStatusStates) DBUpsert

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

func (*SalesOrderStatusStates) Delete

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

func (*SalesOrderStatusStates) Each

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

func (*SalesOrderStatusStates) Filter

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

func (*SalesOrderStatusStates) Insert

Insert will place a new item at position i. Auto generated via dmlgen.

func (*SalesOrderStatusStates) Len

func (cc *SalesOrderStatusStates) Len() int

Len will satisfy the sort.Interface. Auto generated via dmlgen.

func (*SalesOrderStatusStates) MapColumns

func (cc *SalesOrderStatusStates) MapColumns(cm *dml.ColumnMap) error

MapColumns implements dml.ColumnMapper interface. Auto generated.

func (SalesOrderStatusStates) MarshalEasyJSON

func (v SalesOrderStatusStates) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SalesOrderStatusStates) MarshalJSON

func (v SalesOrderStatusStates) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

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.

func (*SalesOrderStatusStates) Swap

func (cc *SalesOrderStatusStates) Swap(i, j int)

Swap will satisfy the sort.Interface. Auto generated via dmlgen.

func (*SalesOrderStatusStates) UnmarshalEasyJSON

func (v *SalesOrderStatusStates) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SalesOrderStatusStates) UnmarshalJSON

func (v *SalesOrderStatusStates) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (*SalesOrderStatusStates) Validate

func (cc *SalesOrderStatusStates) Validate() (err error)

Validate runs internal consistency tests on all items.

func (*SalesOrderStatusStates) WriteTo

func (cc *SalesOrderStatusStates) 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 SalesOrderStatusStatesDBLoadArgs

type SalesOrderStatusStatesDBLoadArgs struct {
	Status string
	State  string
	// contains filtered or unexported fields
}

type ViewCustomerAutoIncrement

type ViewCustomerAutoIncrement struct {
	CeEntityID uint32      `max_len:"10"`  // ce_entity_id int(10) unsigned NOT NULL  DEFAULT '0'  "Entity ID"
	Email      null.String `max_len:"255"` // email varchar(255) NULL  DEFAULT 'NULL'  "Email"
	Firstname  string      `max_len:"255"` // firstname varchar(255) NOT NULL    "First Name"
	Lastname   string      `max_len:"255"` // lastname varchar(255) NOT NULL    "Last Name"
	City       string      `max_len:"255"` // 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) Copy

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

func (*ViewCustomerAutoIncrement) Empty

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

func (*ViewCustomerAutoIncrement) IsSet

func (e *ViewCustomerAutoIncrement) IsSet() bool

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

func (*ViewCustomerAutoIncrement) Load

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

func (*ViewCustomerAutoIncrement) MapColumns

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

MapColumns implements interface ColumnMapper only partially. Auto generated.

func (ViewCustomerAutoIncrement) MarshalEasyJSON

func (v ViewCustomerAutoIncrement) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ViewCustomerAutoIncrement) MarshalJSON

func (v ViewCustomerAutoIncrement) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ViewCustomerAutoIncrement) UnmarshalEasyJSON

func (v *ViewCustomerAutoIncrement) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ViewCustomerAutoIncrement) UnmarshalJSON

func (v *ViewCustomerAutoIncrement) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (*ViewCustomerAutoIncrement) Validate

func (e *ViewCustomerAutoIncrement) Validate() error

Validate runs internal consistency tests.

func (*ViewCustomerAutoIncrement) WriteTo

func (e *ViewCustomerAutoIncrement) 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 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) Append

Append will add a new item at the end of * ViewCustomerAutoIncrements . Auto generated via dmlgen.

func (*ViewCustomerAutoIncrements) 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 (*ViewCustomerAutoIncrements) Cut

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

func (*ViewCustomerAutoIncrements) DBLoad

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

func (*ViewCustomerAutoIncrements) Delete

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

func (*ViewCustomerAutoIncrements) Each

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

func (*ViewCustomerAutoIncrements) Filter

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

func (*ViewCustomerAutoIncrements) Insert

Insert will place a new item at position i. Auto generated via dmlgen.

func (*ViewCustomerAutoIncrements) Len

func (cc *ViewCustomerAutoIncrements) Len() int

Len will satisfy the sort.Interface. Auto generated via dmlgen.

func (*ViewCustomerAutoIncrements) MapColumns

func (cc *ViewCustomerAutoIncrements) MapColumns(cm *dml.ColumnMap) error

MapColumns implements dml.ColumnMapper interface. Auto generated.

func (ViewCustomerAutoIncrements) MarshalEasyJSON

func (v ViewCustomerAutoIncrements) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ViewCustomerAutoIncrements) MarshalJSON

func (v ViewCustomerAutoIncrements) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ViewCustomerAutoIncrements) Swap

func (cc *ViewCustomerAutoIncrements) Swap(i, j int)

Swap will satisfy the sort.Interface. Auto generated via dmlgen.

func (*ViewCustomerAutoIncrements) UnmarshalEasyJSON

func (v *ViewCustomerAutoIncrements) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ViewCustomerAutoIncrements) UnmarshalJSON

func (v *ViewCustomerAutoIncrements) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (*ViewCustomerAutoIncrements) Validate

func (cc *ViewCustomerAutoIncrements) Validate() (err error)

Validate runs internal consistency tests on all items.

func (*ViewCustomerAutoIncrements) WriteTo

func (cc *ViewCustomerAutoIncrements) 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 ViewCustomerNoAutoIncrement

type ViewCustomerNoAutoIncrement struct {
	Email     null.String `max_len:"255"` // email varchar(255) NULL  DEFAULT 'NULL'  "Email"
	Firstname string      `max_len:"255"` // firstname varchar(255) NOT NULL    "First Name"
	Lastname  string      `max_len:"255"` // lastname varchar(255) NOT NULL    "Last Name"
	City      string      `max_len:"255"` // city varchar(255) NOT NULL    "City"
}

ViewCustomerNoAutoIncrement represents a single row for DB table view_customer_no_auto_increment. Auto generated. Table comment: VIEW

func (*ViewCustomerNoAutoIncrement) Copy

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

func (*ViewCustomerNoAutoIncrement) Empty

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

func (*ViewCustomerNoAutoIncrement) MapColumns

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

MapColumns implements interface ColumnMapper only partially. Auto generated.

func (ViewCustomerNoAutoIncrement) MarshalEasyJSON

func (v ViewCustomerNoAutoIncrement) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ViewCustomerNoAutoIncrement) MarshalJSON

func (v ViewCustomerNoAutoIncrement) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ViewCustomerNoAutoIncrement) UnmarshalEasyJSON

func (v *ViewCustomerNoAutoIncrement) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ViewCustomerNoAutoIncrement) UnmarshalJSON

func (v *ViewCustomerNoAutoIncrement) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (*ViewCustomerNoAutoIncrement) Validate

func (e *ViewCustomerNoAutoIncrement) Validate() error

Validate runs internal consistency tests.

func (*ViewCustomerNoAutoIncrement) WriteTo

func (e *ViewCustomerNoAutoIncrement) 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 ViewCustomerNoAutoIncrements

type ViewCustomerNoAutoIncrements struct {
	Data []*ViewCustomerNoAutoIncrement `json:"data,omitempty"`
}

ViewCustomerNoAutoIncrements represents a collection type for DB table view_customer_no_auto_increment Not thread safe. Auto generated.

func NewViewCustomerNoAutoIncrements

func NewViewCustomerNoAutoIncrements() *ViewCustomerNoAutoIncrements

NewViewCustomerNoAutoIncrements creates a new initialized collection. Auto generated.

func (*ViewCustomerNoAutoIncrements) Append

Append will add a new item at the end of * ViewCustomerNoAutoIncrements . Auto generated via dmlgen.

func (*ViewCustomerNoAutoIncrements) 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 (*ViewCustomerNoAutoIncrements) Cut

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

func (*ViewCustomerNoAutoIncrements) Delete

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

func (*ViewCustomerNoAutoIncrements) Each

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

func (*ViewCustomerNoAutoIncrements) Filter

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

func (*ViewCustomerNoAutoIncrements) Insert

Insert will place a new item at position i. Auto generated via dmlgen.

func (*ViewCustomerNoAutoIncrements) Len

Len will satisfy the sort.Interface. Auto generated via dmlgen.

func (*ViewCustomerNoAutoIncrements) MapColumns

func (cc *ViewCustomerNoAutoIncrements) MapColumns(cm *dml.ColumnMap) error

MapColumns implements dml.ColumnMapper interface. Auto generated.

func (ViewCustomerNoAutoIncrements) MarshalEasyJSON

func (v ViewCustomerNoAutoIncrements) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ViewCustomerNoAutoIncrements) MarshalJSON

func (v ViewCustomerNoAutoIncrements) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ViewCustomerNoAutoIncrements) Swap

func (cc *ViewCustomerNoAutoIncrements) Swap(i, j int)

Swap will satisfy the sort.Interface. Auto generated via dmlgen.

func (*ViewCustomerNoAutoIncrements) UnmarshalEasyJSON

func (v *ViewCustomerNoAutoIncrements) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ViewCustomerNoAutoIncrements) UnmarshalJSON

func (v *ViewCustomerNoAutoIncrements) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (*ViewCustomerNoAutoIncrements) Validate

func (cc *ViewCustomerNoAutoIncrements) Validate() (err error)

Validate runs internal consistency tests on all items.

func (*ViewCustomerNoAutoIncrements) WriteTo

func (cc *ViewCustomerNoAutoIncrements) 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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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