Documentation ¶
Index ¶
- Constants
- type ExtractGroup
- type ExtractStore
- type ExtractWebsite
- type TableGroup
- type TableGroupSlice
- func (s *TableGroupSlice) Append(n ...*TableGroup)
- func (s *TableGroupSlice) Cut(i, j int)
- func (s *TableGroupSlice) Delete(i int)
- func (s TableGroupSlice) Each(f func(int, *TableGroup)) TableGroupSlice
- func (s TableGroupSlice) Extract() ExtractGroup
- func (s TableGroupSlice) Filter(f func(*TableGroup) bool) TableGroupSlice
- func (s TableGroupSlice) FilterNot(f func(*TableGroup) bool) TableGroupSlice
- func (s TableGroupSlice) FilterThis(f func(*TableGroup) bool) TableGroupSlice
- func (s TableGroupSlice) Find(f func(*TableGroup) bool) (match *TableGroup, found bool)
- func (s *TableGroupSlice) Insert(n *TableGroup, i int)
- func (s TableGroupSlice) Len() int
- func (s *TableGroupSlice) Prepend(n *TableGroup)
- func (s *TableGroupSlice) SQLDelete(dbrSess dbr.SessionRunner, cbs ...dbr.DeleteCb) (int, error)
- func (s *TableGroupSlice) SQLInsert(dbrSess dbr.SessionRunner, cbs ...dbr.InsertCb) (int, error)
- func (s *TableGroupSlice) SQLUpdate(dbrSess dbr.SessionRunner, cbs ...dbr.UpdateCb) (int, error)
- func (s TableGroupSlice) Sort(less func(*TableGroup, *TableGroup) bool)
- func (s TableGroupSlice) Swap(i, j int)
- type TableStore
- type TableStoreSlice
- func (s *TableStoreSlice) Append(n ...*TableStore)
- func (s *TableStoreSlice) Cut(i, j int)
- func (s *TableStoreSlice) Delete(i int)
- func (s TableStoreSlice) Each(f func(int, *TableStore)) TableStoreSlice
- func (s TableStoreSlice) Extract() ExtractStore
- func (s TableStoreSlice) Filter(f func(*TableStore) bool) TableStoreSlice
- func (s TableStoreSlice) FilterNot(f func(*TableStore) bool) TableStoreSlice
- func (s TableStoreSlice) FilterThis(f func(*TableStore) bool) TableStoreSlice
- func (s TableStoreSlice) Find(f func(*TableStore) bool) (match *TableStore, found bool)
- func (s *TableStoreSlice) Insert(n *TableStore, i int)
- func (s TableStoreSlice) Len() int
- func (s *TableStoreSlice) Prepend(n *TableStore)
- func (s *TableStoreSlice) SQLDelete(dbrSess dbr.SessionRunner, cbs ...dbr.DeleteCb) (int, error)
- func (s *TableStoreSlice) SQLInsert(dbrSess dbr.SessionRunner, cbs ...dbr.InsertCb) (int, error)
- func (s *TableStoreSlice) SQLUpdate(dbrSess dbr.SessionRunner, cbs ...dbr.UpdateCb) (int, error)
- func (s TableStoreSlice) Sort(less func(*TableStore, *TableStore) bool)
- func (s TableStoreSlice) Swap(i, j int)
- type TableWebsite
- type TableWebsiteSlice
- func (s *TableWebsiteSlice) Append(n ...*TableWebsite)
- func (s *TableWebsiteSlice) Cut(i, j int)
- func (s *TableWebsiteSlice) Delete(i int)
- func (s TableWebsiteSlice) Each(f func(int, *TableWebsite)) TableWebsiteSlice
- func (s TableWebsiteSlice) Extract() ExtractWebsite
- func (s TableWebsiteSlice) Filter(f func(*TableWebsite) bool) TableWebsiteSlice
- func (s TableWebsiteSlice) FilterNot(f func(*TableWebsite) bool) TableWebsiteSlice
- func (s TableWebsiteSlice) FilterThis(f func(*TableWebsite) bool) TableWebsiteSlice
- func (s TableWebsiteSlice) Find(f func(*TableWebsite) bool) (match *TableWebsite, found bool)
- func (s *TableWebsiteSlice) Insert(n *TableWebsite, i int)
- func (s TableWebsiteSlice) Len() int
- func (s *TableWebsiteSlice) Prepend(n *TableWebsite)
- func (s *TableWebsiteSlice) SQLDelete(dbrSess dbr.SessionRunner, cbs ...dbr.DeleteCb) (int, error)
- func (s *TableWebsiteSlice) SQLInsert(dbrSess dbr.SessionRunner, cbs ...dbr.InsertCb) (int, error)
- func (s *TableWebsiteSlice) SQLUpdate(dbrSess dbr.SessionRunner, cbs ...dbr.UpdateCb) (int, error)
- func (s TableWebsiteSlice) Sort(less func(*TableWebsite, *TableWebsite) bool)
- func (s TableWebsiteSlice) Swap(i, j int)
Constants ¶
const ( TableIndexStore csdb.Index = iota // Table: store TableIndexGroup // Table: store_group TableIndexWebsite // Table: store_website TableIndexZZZ // the maximum index, which is not available. )
TableIndex... is the index to a table. These constants are guaranteed to stay the same for all Magento versions. Please access a table via this constant instead of the raw table name. TableIndex iotas must start with 0.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExtractGroup ¶
type ExtractGroup struct { GroupID func() []int64 WebsiteID func() []int64 Name func() []string RootCategoryID func() []int64 DefaultStoreID func() []int64 }
ExtractGroup functions for extracting fields from Group slice. Generated via tableToStruct.
type ExtractStore ¶
type ExtractStore struct { StoreID func() []int64 Code func() []string WebsiteID func() []int64 GroupID func() []int64 Name func() []string SortOrder func() []int64 IsActive func() []bool }
ExtractStore functions for extracting fields from Store slice. Generated via tableToStruct.
type ExtractWebsite ¶
type ExtractWebsite struct { WebsiteID func() []int64 Code func() []string Name func() []string SortOrder func() []int64 DefaultGroupID func() []int64 IsDefault func() []bool }
ExtractWebsite functions for extracting fields from Website slice. Generated via tableToStruct.
type TableGroup ¶
type TableGroup struct { GroupID int64 `db:"group_id" json:",omitempty"` // group_id smallint(5) unsigned NOT NULL PRI auto_increment WebsiteID int64 `db:"website_id" json:",omitempty"` // website_id smallint(5) unsigned NOT NULL MUL DEFAULT '0' Name string `db:"name" json:",omitempty"` // name varchar(255) NOT NULL RootCategoryID int64 `db:"root_category_id" json:",omitempty"` // root_category_id int(10) unsigned NOT NULL DEFAULT '0' DefaultStoreID int64 `db:"default_store_id" json:",omitempty"` // default_store_id smallint(5) unsigned NOT NULL MUL DEFAULT '0' }
TableGroup represents a type for DB table store_group Generated via tableToStruct.
type TableGroupSlice ¶
type TableGroupSlice []*TableGroup
TableGroupSlice represents a collection type for DB table store_group Generated via tableToStruct.
func (*TableGroupSlice) Append ¶
func (s *TableGroupSlice) Append(n ...*TableGroup)
func (*TableGroupSlice) Cut ¶
func (s *TableGroupSlice) Cut(i, j int)
func (*TableGroupSlice) Delete ¶
func (s *TableGroupSlice) Delete(i int)
func (TableGroupSlice) Each ¶
func (s TableGroupSlice) Each(f func(int, *TableGroup)) TableGroupSlice
func (TableGroupSlice) Extract ¶
func (s TableGroupSlice) Extract() ExtractGroup
Extract extracts from a specified field all values into a slice. Generated via tableToStruct.
func (TableGroupSlice) Filter ¶
func (s TableGroupSlice) Filter(f func(*TableGroup) bool) TableGroupSlice
func (TableGroupSlice) FilterNot ¶
func (s TableGroupSlice) FilterNot(f func(*TableGroup) bool) TableGroupSlice
func (TableGroupSlice) FilterThis ¶
func (s TableGroupSlice) FilterThis(f func(*TableGroup) bool) TableGroupSlice
func (TableGroupSlice) Find ¶
func (s TableGroupSlice) Find(f func(*TableGroup) bool) (match *TableGroup, found bool)
func (*TableGroupSlice) Insert ¶
func (s *TableGroupSlice) Insert(n *TableGroup, i int)
func (TableGroupSlice) Len ¶
func (s TableGroupSlice) Len() int
func (*TableGroupSlice) Prepend ¶
func (s *TableGroupSlice) Prepend(n *TableGroup)
func (*TableGroupSlice) SQLDelete ¶
func (s *TableGroupSlice) SQLDelete(dbrSess dbr.SessionRunner, cbs ...dbr.DeleteCb) (int, error)
SQLDelete deletes all record from the database @todo. Generated via tableToStruct.
func (*TableGroupSlice) SQLInsert ¶
func (s *TableGroupSlice) SQLInsert(dbrSess dbr.SessionRunner, cbs ...dbr.InsertCb) (int, error)
SQLInsert inserts all records into the database @todo. Generated via tableToStruct.
func (*TableGroupSlice) SQLUpdate ¶
func (s *TableGroupSlice) SQLUpdate(dbrSess dbr.SessionRunner, cbs ...dbr.UpdateCb) (int, error)
SQLUpdate updates all record in the database @todo. Generated via tableToStruct.
func (TableGroupSlice) Sort ¶
func (s TableGroupSlice) Sort(less func(*TableGroup, *TableGroup) bool)
func (TableGroupSlice) Swap ¶
func (s TableGroupSlice) Swap(i, j int)
type TableStore ¶
type TableStore struct { StoreID int64 `db:"store_id" json:",omitempty"` // store_id smallint(5) unsigned NOT NULL PRI auto_increment Code dbr.NullString `db:"code" json:",omitempty"` // code varchar(32) NULL UNI WebsiteID int64 `db:"website_id" json:",omitempty"` // website_id smallint(5) unsigned NOT NULL MUL DEFAULT '0' GroupID int64 `db:"group_id" json:",omitempty"` // group_id smallint(5) unsigned NOT NULL MUL DEFAULT '0' Name string `db:"name" json:",omitempty"` // name varchar(255) NOT NULL SortOrder int64 `db:"sort_order" json:",omitempty"` // sort_order smallint(5) unsigned NOT NULL DEFAULT '0' IsActive bool `db:"is_active" json:",omitempty"` // is_active smallint(5) unsigned NOT NULL MUL DEFAULT '0' }
TableStore represents a type for DB table store Generated via tableToStruct.
type TableStoreSlice ¶
type TableStoreSlice []*TableStore
TableStoreSlice represents a collection type for DB table store Generated via tableToStruct.
func (*TableStoreSlice) Append ¶
func (s *TableStoreSlice) Append(n ...*TableStore)
func (*TableStoreSlice) Cut ¶
func (s *TableStoreSlice) Cut(i, j int)
func (*TableStoreSlice) Delete ¶
func (s *TableStoreSlice) Delete(i int)
func (TableStoreSlice) Each ¶
func (s TableStoreSlice) Each(f func(int, *TableStore)) TableStoreSlice
func (TableStoreSlice) Extract ¶
func (s TableStoreSlice) Extract() ExtractStore
Extract extracts from a specified field all values into a slice. Generated via tableToStruct.
func (TableStoreSlice) Filter ¶
func (s TableStoreSlice) Filter(f func(*TableStore) bool) TableStoreSlice
func (TableStoreSlice) FilterNot ¶
func (s TableStoreSlice) FilterNot(f func(*TableStore) bool) TableStoreSlice
func (TableStoreSlice) FilterThis ¶
func (s TableStoreSlice) FilterThis(f func(*TableStore) bool) TableStoreSlice
func (TableStoreSlice) Find ¶
func (s TableStoreSlice) Find(f func(*TableStore) bool) (match *TableStore, found bool)
func (*TableStoreSlice) Insert ¶
func (s *TableStoreSlice) Insert(n *TableStore, i int)
func (TableStoreSlice) Len ¶
func (s TableStoreSlice) Len() int
func (*TableStoreSlice) Prepend ¶
func (s *TableStoreSlice) Prepend(n *TableStore)
func (*TableStoreSlice) SQLDelete ¶
func (s *TableStoreSlice) SQLDelete(dbrSess dbr.SessionRunner, cbs ...dbr.DeleteCb) (int, error)
SQLDelete deletes all record from the database @todo. Generated via tableToStruct.
func (*TableStoreSlice) SQLInsert ¶
func (s *TableStoreSlice) SQLInsert(dbrSess dbr.SessionRunner, cbs ...dbr.InsertCb) (int, error)
SQLInsert inserts all records into the database @todo. Generated via tableToStruct.
func (*TableStoreSlice) SQLUpdate ¶
func (s *TableStoreSlice) SQLUpdate(dbrSess dbr.SessionRunner, cbs ...dbr.UpdateCb) (int, error)
SQLUpdate updates all record in the database @todo. Generated via tableToStruct.
func (TableStoreSlice) Sort ¶
func (s TableStoreSlice) Sort(less func(*TableStore, *TableStore) bool)
func (TableStoreSlice) Swap ¶
func (s TableStoreSlice) Swap(i, j int)
type TableWebsite ¶
type TableWebsite struct { WebsiteID int64 `db:"website_id" json:",omitempty"` // website_id smallint(5) unsigned NOT NULL PRI auto_increment Code dbr.NullString `db:"code" json:",omitempty"` // code varchar(32) NULL UNI Name dbr.NullString `db:"name" json:",omitempty"` // name varchar(64) NULL SortOrder int64 `db:"sort_order" json:",omitempty"` // sort_order smallint(5) unsigned NOT NULL MUL DEFAULT '0' DefaultGroupID int64 `db:"default_group_id" json:",omitempty"` // default_group_id smallint(5) unsigned NOT NULL MUL DEFAULT '0' IsDefault dbr.NullBool `db:"is_default" json:",omitempty"` // is_default smallint(5) unsigned NULL DEFAULT '0' }
TableWebsite represents a type for DB table store_website Generated via tableToStruct.
type TableWebsiteSlice ¶
type TableWebsiteSlice []*TableWebsite
TableWebsiteSlice represents a collection type for DB table store_website Generated via tableToStruct.
func (*TableWebsiteSlice) Append ¶
func (s *TableWebsiteSlice) Append(n ...*TableWebsite)
func (*TableWebsiteSlice) Cut ¶
func (s *TableWebsiteSlice) Cut(i, j int)
func (*TableWebsiteSlice) Delete ¶
func (s *TableWebsiteSlice) Delete(i int)
func (TableWebsiteSlice) Each ¶
func (s TableWebsiteSlice) Each(f func(int, *TableWebsite)) TableWebsiteSlice
func (TableWebsiteSlice) Extract ¶
func (s TableWebsiteSlice) Extract() ExtractWebsite
Extract extracts from a specified field all values into a slice. Generated via tableToStruct.
func (TableWebsiteSlice) Filter ¶
func (s TableWebsiteSlice) Filter(f func(*TableWebsite) bool) TableWebsiteSlice
func (TableWebsiteSlice) FilterNot ¶
func (s TableWebsiteSlice) FilterNot(f func(*TableWebsite) bool) TableWebsiteSlice
func (TableWebsiteSlice) FilterThis ¶
func (s TableWebsiteSlice) FilterThis(f func(*TableWebsite) bool) TableWebsiteSlice
func (TableWebsiteSlice) Find ¶
func (s TableWebsiteSlice) Find(f func(*TableWebsite) bool) (match *TableWebsite, found bool)
func (*TableWebsiteSlice) Insert ¶
func (s *TableWebsiteSlice) Insert(n *TableWebsite, i int)
func (TableWebsiteSlice) Len ¶
func (s TableWebsiteSlice) Len() int
func (*TableWebsiteSlice) Prepend ¶
func (s *TableWebsiteSlice) Prepend(n *TableWebsite)
func (*TableWebsiteSlice) SQLDelete ¶
func (s *TableWebsiteSlice) SQLDelete(dbrSess dbr.SessionRunner, cbs ...dbr.DeleteCb) (int, error)
SQLDelete deletes all record from the database @todo. Generated via tableToStruct.
func (*TableWebsiteSlice) SQLInsert ¶
func (s *TableWebsiteSlice) SQLInsert(dbrSess dbr.SessionRunner, cbs ...dbr.InsertCb) (int, error)
SQLInsert inserts all records into the database @todo. Generated via tableToStruct.
func (*TableWebsiteSlice) SQLUpdate ¶
func (s *TableWebsiteSlice) SQLUpdate(dbrSess dbr.SessionRunner, cbs ...dbr.UpdateCb) (int, error)
SQLUpdate updates all record in the database @todo. Generated via tableToStruct.
func (TableWebsiteSlice) Sort ¶
func (s TableWebsiteSlice) Sort(less func(*TableWebsite, *TableWebsite) bool)
func (TableWebsiteSlice) Swap ¶
func (s TableWebsiteSlice) Swap(i, j int)