Documentation ¶
Overview ¶
Package models contains the types for schema 'mydb'.
Package models contains the types for schema 'mydb'.
Package models contains the types for schema 'mydb'.
Package models contains the types for schema 'mydb'.
Package models contains the types for schema 'mydb'.
Package models contains the types for schema 'mydb'.
Index ¶
- Variables
- type DimensionCompany
- type DimensionDate
- type DimensionDepartment
- func (dd *DimensionDepartment) Delete(db XODB) error
- func (dd *DimensionDepartment) Deleted() bool
- func (dd *DimensionDepartment) Exists() bool
- func (dd *DimensionDepartment) Insert(db XODB) error
- func (dd *DimensionDepartment) Save(db XODB) error
- func (dd *DimensionDepartment) Update(db XODB) error
- type DimensionGroup
- type FactShare
- func FactShareByID(db XODB, id int) (*FactShare, error)
- func FactSharesByOwnerCompany(db XODB, ownerCompany string) ([]*FactShare, error)
- func FactSharesByOwnerDepartment(db XODB, ownerDepartment string) ([]*FactShare, error)
- func FactSharesByOwnerGroup(db XODB, ownerGroup string) ([]*FactShare, error)
- func FactSharesByShareeCompany(db XODB, shareeCompany string) ([]*FactShare, error)
- func FactSharesByShareeDepartment(db XODB, shareeDepartment string) ([]*FactShare, error)
- func FactSharesByShareeGroup(db XODB, shareeGroup string) ([]*FactShare, error)
- func FactSharesByStime(db XODB, stime int) ([]*FactShare, error)
- func (fs *FactShare) Delete(db XODB) error
- func (fs *FactShare) Deleted() bool
- func (fs *FactShare) DimensionCompanyByOwnerCompany(db XODB) (*DimensionCompany, error)
- func (fs *FactShare) DimensionCompanyByShareeCompany(db XODB) (*DimensionCompany, error)
- func (fs *FactShare) DimensionDate(db XODB) (*DimensionDate, error)
- func (fs *FactShare) DimensionDepartmentByOwnerDepartment(db XODB) (*DimensionDepartment, error)
- func (fs *FactShare) DimensionDepartmentByShareeDepartment(db XODB) (*DimensionDepartment, error)
- func (fs *FactShare) DimensionGroupByOwnerGroup(db XODB) (*DimensionGroup, error)
- func (fs *FactShare) DimensionGroupByShareeGroup(db XODB) (*DimensionGroup, error)
- func (fs *FactShare) Exists() bool
- func (fs *FactShare) Insert(db XODB) error
- func (fs *FactShare) Save(db XODB) error
- func (fs *FactShare) Update(db XODB) error
- type ScannerValuer
- type Slice
- type StringSlice
- type XODB
Constants ¶
This section is empty.
Variables ¶
var XOLog = func(string, ...interface{}) {}
XOLog provides the log func used by generated queries.
Functions ¶
This section is empty.
Types ¶
type DimensionCompany ¶
type DimensionCompany struct { Company string `json:"company"` // company Opaque sql.NullString `json:"opaque"` // opaque // contains filtered or unexported fields }
DimensionCompany represents a row from 'mydb.dimension_company'.
func DimensionCompanyByCompany ¶
func DimensionCompanyByCompany(db XODB, company string) (*DimensionCompany, error)
DimensionCompanyByCompany retrieves a row from 'mydb.dimension_company' as a DimensionCompany.
Generated from index 'dimension_company_company_pkey'.
func (*DimensionCompany) Delete ¶
func (dc *DimensionCompany) Delete(db XODB) error
Delete deletes the DimensionCompany from the database.
func (*DimensionCompany) Deleted ¶
func (dc *DimensionCompany) Deleted() bool
Deleted provides information if the DimensionCompany has been deleted from the database.
func (*DimensionCompany) Exists ¶
func (dc *DimensionCompany) Exists() bool
Exists determines if the DimensionCompany exists in the database.
func (*DimensionCompany) Insert ¶
func (dc *DimensionCompany) Insert(db XODB) error
Insert inserts the DimensionCompany to the database.
func (*DimensionCompany) Save ¶
func (dc *DimensionCompany) Save(db XODB) error
Save saves the DimensionCompany to the database.
func (*DimensionCompany) Update ¶
func (dc *DimensionCompany) Update(db XODB) error
Update updates the DimensionCompany in the database.
type DimensionDate ¶
type DimensionDate struct { Ts int `json:"ts"` // ts Day int `json:"day"` // day Month int `json:"month"` // month Year int `json:"year"` // year // contains filtered or unexported fields }
DimensionDate represents a row from 'mydb.dimension_date'.
func DimensionDateByTs ¶
func DimensionDateByTs(db XODB, ts int) (*DimensionDate, error)
DimensionDateByTs retrieves a row from 'mydb.dimension_date' as a DimensionDate.
Generated from index 'dimension_date_ts_pkey'.
func (*DimensionDate) Delete ¶
func (dd *DimensionDate) Delete(db XODB) error
Delete deletes the DimensionDate from the database.
func (*DimensionDate) Deleted ¶
func (dd *DimensionDate) Deleted() bool
Deleted provides information if the DimensionDate has been deleted from the database.
func (*DimensionDate) Exists ¶
func (dd *DimensionDate) Exists() bool
Exists determines if the DimensionDate exists in the database.
func (*DimensionDate) Insert ¶
func (dd *DimensionDate) Insert(db XODB) error
Insert inserts the DimensionDate to the database.
func (*DimensionDate) Save ¶
func (dd *DimensionDate) Save(db XODB) error
Save saves the DimensionDate to the database.
func (*DimensionDate) Update ¶
func (dd *DimensionDate) Update(db XODB) error
Update updates the DimensionDate in the database.
type DimensionDepartment ¶
type DimensionDepartment struct { Department string `json:"department"` // department Opaque sql.NullString `json:"opaque"` // opaque // contains filtered or unexported fields }
DimensionDepartment represents a row from 'mydb.dimension_department'.
func DimensionDepartmentByDepartment ¶
func DimensionDepartmentByDepartment(db XODB, department string) (*DimensionDepartment, error)
DimensionDepartmentByDepartment retrieves a row from 'mydb.dimension_department' as a DimensionDepartment.
Generated from index 'dimension_department_department_pkey'.
func (*DimensionDepartment) Delete ¶
func (dd *DimensionDepartment) Delete(db XODB) error
Delete deletes the DimensionDepartment from the database.
func (*DimensionDepartment) Deleted ¶
func (dd *DimensionDepartment) Deleted() bool
Deleted provides information if the DimensionDepartment has been deleted from the database.
func (*DimensionDepartment) Exists ¶
func (dd *DimensionDepartment) Exists() bool
Exists determines if the DimensionDepartment exists in the database.
func (*DimensionDepartment) Insert ¶
func (dd *DimensionDepartment) Insert(db XODB) error
Insert inserts the DimensionDepartment to the database.
func (*DimensionDepartment) Save ¶
func (dd *DimensionDepartment) Save(db XODB) error
Save saves the DimensionDepartment to the database.
func (*DimensionDepartment) Update ¶
func (dd *DimensionDepartment) Update(db XODB) error
Update updates the DimensionDepartment in the database.
type DimensionGroup ¶
type DimensionGroup struct { Egroup string `json:"egroup"` // egroup Opaque sql.NullString `json:"opaque"` // opaque // contains filtered or unexported fields }
DimensionGroup represents a row from 'mydb.dimension_group'.
func DimensionGroupByEgroup ¶
func DimensionGroupByEgroup(db XODB, egroup string) (*DimensionGroup, error)
DimensionGroupByEgroup retrieves a row from 'mydb.dimension_group' as a DimensionGroup.
Generated from index 'dimension_group_egroup_pkey'.
func (*DimensionGroup) Delete ¶
func (dg *DimensionGroup) Delete(db XODB) error
Delete deletes the DimensionGroup from the database.
func (*DimensionGroup) Deleted ¶
func (dg *DimensionGroup) Deleted() bool
Deleted provides information if the DimensionGroup has been deleted from the database.
func (*DimensionGroup) Exists ¶
func (dg *DimensionGroup) Exists() bool
Exists determines if the DimensionGroup exists in the database.
func (*DimensionGroup) Insert ¶
func (dg *DimensionGroup) Insert(db XODB) error
Insert inserts the DimensionGroup to the database.
func (*DimensionGroup) Save ¶
func (dg *DimensionGroup) Save(db XODB) error
Save saves the DimensionGroup to the database.
func (*DimensionGroup) Update ¶
func (dg *DimensionGroup) Update(db XODB) error
Update updates the DimensionGroup in the database.
type FactShare ¶
type FactShare struct { // contains filtered or unexported fields }
FactShare represents a row from 'mydb.fact_shares'.
func FactShareByID ¶
FactShareByID retrieves a row from 'mydb.fact_shares' as a FactShare.
Generated from index 'fact_shares_id_pkey'.
func FactSharesByOwnerCompany ¶
FactSharesByOwnerCompany retrieves a row from 'mydb.fact_shares' as a FactShare.
Generated from index 'fact_shares_owner_company_company_company_idx'.
func FactSharesByOwnerDepartment ¶
FactSharesByOwnerDepartment retrieves a row from 'mydb.fact_shares' as a FactShare.
Generated from index 'fact_shares_owner_department_dimension_department_departmen_idx'.
func FactSharesByOwnerGroup ¶
FactSharesByOwnerGroup retrieves a row from 'mydb.fact_shares' as a FactShare.
Generated from index 'fact_shares_owner_group_group_group_idx'.
func FactSharesByShareeCompany ¶
FactSharesByShareeCompany retrieves a row from 'mydb.fact_shares' as a FactShare.
Generated from index 'fact_shares_sharee_company_company_company_idx'.
func FactSharesByShareeDepartment ¶
FactSharesByShareeDepartment retrieves a row from 'mydb.fact_shares' as a FactShare.
Generated from index 'fact_shares_sahree_department_department_department_idx'.
func FactSharesByShareeGroup ¶
FactSharesByShareeGroup retrieves a row from 'mydb.fact_shares' as a FactShare.
Generated from index 'fact_shares_sharee_group_group_group_idx'.
func FactSharesByStime ¶
FactSharesByStime retrieves a row from 'mydb.fact_shares' as a FactShare.
Generated from index 'fact_shares_stime_ts_idx'.
func (*FactShare) Deleted ¶
Deleted provides information if the FactShare has been deleted from the database.
func (*FactShare) DimensionCompanyByOwnerCompany ¶
func (fs *FactShare) DimensionCompanyByOwnerCompany(db XODB) (*DimensionCompany, error)
DimensionCompanyByOwnerCompany returns the DimensionCompany associated with the FactShare's OwnerCompany (owner_company).
Generated from foreign key 'fact_shares_owner_company_company_company'.
func (*FactShare) DimensionCompanyByShareeCompany ¶
func (fs *FactShare) DimensionCompanyByShareeCompany(db XODB) (*DimensionCompany, error)
DimensionCompanyByShareeCompany returns the DimensionCompany associated with the FactShare's ShareeCompany (sharee_company).
Generated from foreign key 'fact_shares_sharee_company_company_company'.
func (*FactShare) DimensionDate ¶
func (fs *FactShare) DimensionDate(db XODB) (*DimensionDate, error)
DimensionDate returns the DimensionDate associated with the FactShare's Stime (stime).
Generated from foreign key 'fact_shares_stime_date_ts'.
func (*FactShare) DimensionDepartmentByOwnerDepartment ¶
func (fs *FactShare) DimensionDepartmentByOwnerDepartment(db XODB) (*DimensionDepartment, error)
DimensionDepartmentByOwnerDepartment returns the DimensionDepartment associated with the FactShare's OwnerDepartment (owner_department).
Generated from foreign key 'fact_shares_owner_department_dimension_department_department'.
func (*FactShare) DimensionDepartmentByShareeDepartment ¶
func (fs *FactShare) DimensionDepartmentByShareeDepartment(db XODB) (*DimensionDepartment, error)
DimensionDepartmentByShareeDepartment returns the DimensionDepartment associated with the FactShare's ShareeDepartment (sharee_department).
Generated from foreign key 'fact_shares_sahree_department_department_department'.
func (*FactShare) DimensionGroupByOwnerGroup ¶
func (fs *FactShare) DimensionGroupByOwnerGroup(db XODB) (*DimensionGroup, error)
DimensionGroupByOwnerGroup returns the DimensionGroup associated with the FactShare's OwnerGroup (owner_group).
Generated from foreign key 'fact_shares_owner_group_group_group'.
func (*FactShare) DimensionGroupByShareeGroup ¶
func (fs *FactShare) DimensionGroupByShareeGroup(db XODB) (*DimensionGroup, error)
DimensionGroupByShareeGroup returns the DimensionGroup associated with the FactShare's ShareeGroup (sharee_group).
Generated from foreign key 'fact_shares_sharee_group_group_group'.
type ScannerValuer ¶
ScannerValuer is the common interface for types that implement both the database/sql.Scanner and sql/driver.Valuer interfaces.
type StringSlice ¶
type StringSlice []string
StringSlice is a slice of strings.
func (*StringSlice) Scan ¶
func (ss *StringSlice) Scan(src interface{}) error
Scan satisfies the sql.Scanner interface for StringSlice.
type XODB ¶
type XODB interface { Exec(string, ...interface{}) (sql.Result, error) Query(string, ...interface{}) (*sql.Rows, error) QueryRow(string, ...interface{}) *sql.Row }
XODB is the common interface for database operations that can be used with types from schema 'mydb'.
This should work with database/sql.DB and database/sql.Tx.