Documentation ¶
Overview ¶
Package models contains the types for schema 'public'.
Package models contains the types for schema 'public'.
Package models contains the types for schema 'public'.
Package models contains the types for schema 'public'.
Package models contains the types for schema 'public'.
Package models contains the types for schema 'public'.
Package models contains the types for schema 'public'.
Index ¶
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 ProductByCompanyCd ¶
type ProductByCompanyCd struct { ProductID int // product_id CompanyCd int // company_cd InventoryCd int // inventory_cd PriceJpy int // price_jpy ProductName string // product_name Description string // description }
ProductByCompanyCd represents a row from '[custom product_by_company_cd]'.
func ProductByCompanyCdsByCompanyCd ¶
func ProductByCompanyCdsByCompanyCd(db XODB, companyCd int) ([]*ProductByCompanyCd, error)
ProductByCompanyCdsByCompanyCd runs a custom query, returning results as ProductByCompanyCd.
type ProductById ¶
type ProductById struct { ProductID int // product_id CompanyCd int // company_cd InventoryCd int // inventory_cd PriceJpy int // price_jpy ProductName string // product_name Description string // description }
ProductById represents a row from '[custom product_by_id]'.
func ProductByIdsByProductId ¶
func ProductByIdsByProductId(db XODB, productId int) ([]*ProductById, error)
ProductByIdsByProductId runs a custom query, returning results as ProductById.
type ScannerValuer ¶
ScannerValuer is the common interface for types that implement both the database/sql.Scanner and sql/driver.Valuer interfaces.
type StationByCD ¶
type StationByCD struct { LineCd int // line_cd LineName string // line_name StationCd int // station_cd StationGCd int // station_g_cd StationName string // station_name Address string // address }
StationByCD represents a row from '[custom station_by_c_d]'.
func StationByCDsByStationCD ¶
func StationByCDsByStationCD(db XODB, stationCD int) ([]*StationByCD, error)
StationByCDsByStationCD runs a custom query, returning results as StationByCD.
type StationByName ¶
type StationByName struct { LineCd int // line_cd LineName string // line_name StationCd int // station_cd StationGCd int // station_g_cd StationName string // station_name Address string // address }
StationByName represents a row from '[custom station_by_name]'.
func StationByNamesByStationName ¶
func StationByNamesByStationName(db XODB, stationName string) ([]*StationByName, error)
StationByNamesByStationName runs a custom query, returning results as StationByName.
type StationConn ¶
type StationConn struct { LineName string // line_name LineNameH string // line_name_h LineCd int // line_cd StationCd int // station_cd StationGCd int // station_g_cd Address string // address StationName string // station_name BeforeLineName string // before_line_name BeforeStationCd int // before_station_cd BeforeStationName string // before_station_name BeforeAddress string // before_address AfterLineName string // after_line_name AfterStationCd int // after_station_cd AfterStationName string // after_station_name AfterAddress string // after_address TransferLineName string // transfer_line_name TransferStationCd int // transfer_station_cd TransferStationName string // transfer_station_name TransferAddress string // transfer_address }
StationConn represents a row from '[custom station_conn]'.
func StationConnsByStationCD ¶
func StationConnsByStationCD(db XODB, stationCD int) ([]*StationConn, error)
StationConnsByStationCD runs a custom query, returning results as StationConn.
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 Transfer ¶
type Transfer struct { StationCd int // station_cd LineCd int // line_cd LineName string // line_name StationName string // station_name StationGCd int // station_g_cd Address string // address TransferLineCd int // transfer_line_cd TransferLineName string // transfer_line_name TransferStationCd int // transfer_station_cd TransferStationName string // transfer_station_name TransferAddress string // transfer_address }
Transfer represents a row from '[custom transfer]'.
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 'public'.
This should work with database/sql.DB and database/sql.Tx.