models

package
v0.0.0-...-7a666ee Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2016 License: AGPL-3.0 Imports: 7 Imported by: 0

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

Constants

This section is empty.

Variables

View Source
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 {
	ID               int    `json:"id"`                // id
	OwnerLogin       string `json:"owner_login"`       // owner_login
	OwnerUID         int    `json:"owner_uid"`         // owner_uid
	OwnerDepartment  string `json:"owner_department"`  // owner_department
	OwnerGroup       string `json:"owner_group"`       // owner_group
	OwnerCompany     string `json:"owner_company"`     // owner_company
	ShareeLogin      string `json:"sharee_login"`      // sharee_login
	ShareeUID        int    `json:"sharee_uid"`        // sharee_uid
	ShareeDepartment string `json:"sharee_department"` // sharee_department
	ShareeGroup      string `json:"sharee_group"`      // sharee_group
	ShareeCompany    string `json:"sharee_company"`    // sharee_company
	Stime            int    `json:"stime"`             // stime
	// contains filtered or unexported fields
}

FactShare represents a row from 'mydb.fact_shares'.

func FactShareByID

func FactShareByID(db XODB, id int) (*FactShare, error)

FactShareByID retrieves a row from 'mydb.fact_shares' as a FactShare.

Generated from index 'fact_shares_id_pkey'.

func FactSharesByOwnerCompany

func FactSharesByOwnerCompany(db XODB, ownerCompany string) ([]*FactShare, error)

FactSharesByOwnerCompany retrieves a row from 'mydb.fact_shares' as a FactShare.

Generated from index 'fact_shares_owner_company_company_company_idx'.

func FactSharesByOwnerDepartment

func FactSharesByOwnerDepartment(db XODB, ownerDepartment string) ([]*FactShare, error)

FactSharesByOwnerDepartment retrieves a row from 'mydb.fact_shares' as a FactShare.

Generated from index 'fact_shares_owner_department_dimension_department_departmen_idx'.

func FactSharesByOwnerGroup

func FactSharesByOwnerGroup(db XODB, ownerGroup string) ([]*FactShare, error)

FactSharesByOwnerGroup retrieves a row from 'mydb.fact_shares' as a FactShare.

Generated from index 'fact_shares_owner_group_group_group_idx'.

func FactSharesByShareeCompany

func FactSharesByShareeCompany(db XODB, shareeCompany string) ([]*FactShare, error)

FactSharesByShareeCompany retrieves a row from 'mydb.fact_shares' as a FactShare.

Generated from index 'fact_shares_sharee_company_company_company_idx'.

func FactSharesByShareeDepartment

func FactSharesByShareeDepartment(db XODB, shareeDepartment string) ([]*FactShare, error)

FactSharesByShareeDepartment retrieves a row from 'mydb.fact_shares' as a FactShare.

Generated from index 'fact_shares_sahree_department_department_department_idx'.

func FactSharesByShareeGroup

func FactSharesByShareeGroup(db XODB, shareeGroup string) ([]*FactShare, error)

FactSharesByShareeGroup retrieves a row from 'mydb.fact_shares' as a FactShare.

Generated from index 'fact_shares_sharee_group_group_group_idx'.

func FactSharesByStime

func FactSharesByStime(db XODB, stime int) ([]*FactShare, error)

FactSharesByStime retrieves a row from 'mydb.fact_shares' as a FactShare.

Generated from index 'fact_shares_stime_ts_idx'.

func (*FactShare) Delete

func (fs *FactShare) Delete(db XODB) error

Delete deletes the FactShare from the database.

func (*FactShare) Deleted

func (fs *FactShare) Deleted() bool

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'.

func (*FactShare) Exists

func (fs *FactShare) Exists() bool

Exists determines if the FactShare exists in the database.

func (*FactShare) Insert

func (fs *FactShare) Insert(db XODB) error

Insert inserts the FactShare to the database.

func (*FactShare) Save

func (fs *FactShare) Save(db XODB) error

Save saves the FactShare to the database.

func (*FactShare) Update

func (fs *FactShare) Update(db XODB) error

Update updates the FactShare in the database.

type ScannerValuer

type ScannerValuer interface {
	sql.Scanner
	driver.Valuer
}

ScannerValuer is the common interface for types that implement both the database/sql.Scanner and sql/driver.Valuer interfaces.

type Slice

type Slice []ScannerValuer

Slice is a slice of ScannerValuers.

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.

func (StringSlice) Value

func (ss StringSlice) Value() (driver.Value, error)

Value satisfies the driver.Valuer 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.

Jump to

Keyboard shortcuts

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