Documentation ¶
Overview ¶
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 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 Unit ¶
type Unit struct { ID uuid.UUID `json:"id"` // id ClassID uuid.UUID `json:"class_id"` // class_id Title string `json:"title"` // title CreatedAt time.Time `json:"created_at"` // created_at // contains filtered or unexported fields }
Unit represents a row from 'public.units'.
func UnitByID ¶
UnitByID retrieves a row from 'public.units' as a Unit.
Generated from index 'units_pkey'.
func UnitsByClassID ¶
UnitsByClassID retrieves a row from 'public.units' as a Unit.
Generated from index 'units_class_id_idx'.
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.