models

package
v0.0.0-...-e06ea66 Latest Latest
Warning

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

Go to latest
Published: May 30, 2017 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package models contains the types for schema ”.

Package models contains the types for schema ”.

Package models contains the types for schema ”.

Package models contains the types for schema ”.

Index

Constants

This section is empty.

Variables

View Source
var XOLog = func(s string, i ...interface{}) {

}

XOLog provides the log func used by generated queries.

Functions

This section is empty.

Types

type GccTuParserNamedlist

type GccTuParserNamedlist struct {
	ID           int           `json:"id"`             // id
	StartingNode int           `json:"starting_node"`  // starting_node
	ItemPos      int           `json:"item_pos"`       // item_pos
	Value        int           `json:"value"`          // value
	NodeType     string        `json:"node_type"`      // node_type
	SourceFileID sql.NullInt64 `json:"source_file_id"` // source_file_id
	// contains filtered or unexported fields
}

GccTuParserNamedlist represents a row from 'gcc_tu_parser_namedlist'.

func GccTuParserNamedlistByID

func GccTuParserNamedlistByID(db XODB, id int) (*GccTuParserNamedlist, error)

GccTuParserNamedlistByID retrieves a row from 'gcc_tu_parser_namedlist' as a GccTuParserNamedlist.

Generated from index 'gcc_tu_parser_namedlist_id_pkey'.

func GccTuParserNamedlistBySourceFileIDNodeTypeStartingNodeItemPosValue

func GccTuParserNamedlistBySourceFileIDNodeTypeStartingNodeItemPosValue(db XODB, sourceFileID sql.NullInt64, nodeType string, startingNode int, itemPos int, value int) (*GccTuParserNamedlist, error)

GccTuParserNamedlistBySourceFileIDNodeTypeStartingNodeItemPosValue retrieves a row from 'gcc_tu_parser_namedlist' as a GccTuParserNamedlist.

Generated from index 'gcc_tu_parser_namedlist_source_file_id_node_type_starting_node_item_pos_value_cb7cedc5_uniq'.

func GccTuParserNamedlistsBySourceFileID

func GccTuParserNamedlistsBySourceFileID(db XODB, sourceFileID sql.NullInt64) ([]*GccTuParserNamedlist, error)

GccTuParserNamedlistsBySourceFileID retrieves a row from 'gcc_tu_parser_namedlist' as a GccTuParserNamedlist.

Generated from index 'gcc_tu_parser_namedlist_source_file_id_e28c17e7'.

func (*GccTuParserNamedlist) Delete

func (gtpn *GccTuParserNamedlist) Delete(db XODB) error

Delete deletes the GccTuParserNamedlist from the database.

func (*GccTuParserNamedlist) Deleted

func (gtpn *GccTuParserNamedlist) Deleted() bool

Deleted provides information if the GccTuParserNamedlist has been deleted from the database.

func (*GccTuParserNamedlist) Exists

func (gtpn *GccTuParserNamedlist) Exists() bool

Exists determines if the GccTuParserNamedlist exists in the database.

func (*GccTuParserNamedlist) GccTuParserSourcefile

func (gtpn *GccTuParserNamedlist) GccTuParserSourcefile(db XODB) (*GccTuParserSourcefile, error)

GccTuParserSourcefile returns the GccTuParserSourcefile associated with the GccTuParserNamedlist's SourceFileID (source_file_id).

Generated from foreign key 'gcc_tu_parser_namedlist_source_file_id_fkey'.

func (*GccTuParserNamedlist) Insert

func (gtpn *GccTuParserNamedlist) Insert(db XODB) error

Insert inserts the GccTuParserNamedlist to the database.

func (*GccTuParserNamedlist) Save

func (gtpn *GccTuParserNamedlist) Save(db XODB) error

Save saves the GccTuParserNamedlist to the database.

func (*GccTuParserNamedlist) Update

func (gtpn *GccTuParserNamedlist) Update(db XODB) error

Update updates the GccTuParserNamedlist in the database.

type GccTuParserNode

type GccTuParserNode struct {
	ID            int           `json:"id"`              // id
	RefsArgt      sql.NullInt64 `json:"refs_argt"`       // refs_argt
	RefsPrms      sql.NullInt64 `json:"refs_prms"`       // refs_prms
	AttrsString   string        `json:"attrs_string"`    // attrs_string
	RefsDomn      sql.NullInt64 `json:"refs_domn"`       // refs_domn
	RefsRetn      sql.NullInt64 `json:"refs_retn"`       // refs_retn
	RefsBpos      sql.NullInt64 `json:"refs_bpos"`       // refs_bpos
	RefsMax       sql.NullInt64 `json:"refs_max"`        // refs_max
	RefsCsts      sql.NullInt64 `json:"refs_csts"`       // refs_csts
	RefsValu      sql.NullInt64 `json:"refs_valu"`       // refs_valu
	RefsMin       sql.NullInt64 `json:"refs_min"`        // refs_min
	RefsName      sql.NullInt64 `json:"refs_name"`       // refs_name
	RefsSize      sql.NullInt64 `json:"refs_size"`       // refs_size
	RefsType      sql.NullInt64 `json:"refs_type"`       // refs_type
	RefsUnql      sql.NullInt64 `json:"refs_unql"`       // refs_unql
	RefsVal       sql.NullInt64 `json:"refs_val"`        // refs_val
	RefsArgs      sql.NullInt64 `json:"refs_args"`       // refs_args
	RefsElts      sql.NullInt64 `json:"refs_elts"`       // refs_elts
	RefsRefd      sql.NullInt64 `json:"refs_refd"`       // refs_refd
	RefsLow       sql.NullInt64 `json:"refs_low"`        // refs_low
	RefsBody      sql.NullInt64 `json:"refs_body"`       // refs_body
	RefsPurp      sql.NullInt64 `json:"refs_purp"`       // refs_purp
	RefsChan      sql.NullInt64 `json:"refs_chan"`       // refs_chan
	RefsCnst      sql.NullInt64 `json:"refs_cnst"`       // refs_cnst
	AttrsTypeName string        `json:"attrs_type_name"` // attrs_type_name
	RefsFn        sql.NullInt64 `json:"refs_fn"`         // refs_fn
	RefsChain     sql.NullInt64 `json:"refs_chain"`      // refs_chain
	RefsPtd       sql.NullInt64 `json:"refs_ptd"`        // refs_ptd
	RefsMngl      sql.NullInt64 `json:"refs_mngl"`       // refs_mngl
	RefsCond      sql.NullInt64 `json:"refs_cond"`       // refs_cond
	RefsVars      sql.NullInt64 `json:"refs_vars"`       // refs_vars
	RefsOp0       sql.NullInt64 `json:"refs_OP0"`        // refs_OP0
	RefsOp1       sql.NullInt64 `json:"refs_OP1"`        // refs_OP1
	RefsOp2       sql.NullInt64 `json:"refs_OP2"`        // refs_OP2
	RefsE         sql.NullInt64 `json:"refs_E"`          // refs_E
	AttrsNote     string        `json:"attrs_note"`      // attrs_note
	RefsIdx       sql.NullInt64 `json:"refs_idx"`        // refs_idx
	RefsScpe      sql.NullInt64 `json:"refs_scpe"`       // refs_scpe
	RefsFlds      sql.NullInt64 `json:"refs_flds"`       // refs_flds
	AttrsTypeSize string        `json:"attrs_type_size"` // attrs_type_size
	RefsInit      sql.NullInt64 `json:"refs_init"`       // refs_init
	RefsExpr      sql.NullInt64 `json:"refs_expr"`       // refs_expr
	AttrsAddr     string        `json:"attrs_addr"`      // attrs_addr
	RefsDecl      sql.NullInt64 `json:"refs_decl"`       // refs_decl
	RefsLabl      sql.NullInt64 `json:"refs_labl"`       // refs_labl
	AttrsType     string        `json:"attrs_type"`      // attrs_type
	SourceFileID  int           `json:"source_file_id"`  // source_file_id
	NodeType      string        `json:"node_type"`       // node_type
	NodeID        int           `json:"node_id"`         // node_id
	// contains filtered or unexported fields
}

GccTuParserNode represents a row from 'gcc_tu_parser_node'.

func GccTuParserNodeByID

func GccTuParserNodeByID(db XODB, id int) (*GccTuParserNode, error)

GccTuParserNodeByID retrieves a row from 'gcc_tu_parser_node' as a GccTuParserNode.

Generated from index 'gcc_tu_parser_node_id_pkey'.

func GccTuParserNodeBySourceFileIDNodeID

func GccTuParserNodeBySourceFileIDNodeID(db XODB, sourceFileID int, nodeID int) (*GccTuParserNode, error)

GccTuParserNodeBySourceFileIDNodeID retrieves a row from 'gcc_tu_parser_node' as a GccTuParserNode.

Generated from index 'gcc_tu_parser_node_source_file_id_node_id_bc8c0130_uniq'.

func GccTuParserNodesBySourceFileID

func GccTuParserNodesBySourceFileID(db XODB, sourceFileID int) ([]*GccTuParserNode, error)

GccTuParserNodesBySourceFileID retrieves a row from 'gcc_tu_parser_node' as a GccTuParserNode.

Generated from index 'gcc_tu_parser_node_source_file_id_78e6a0aa'.

func (*GccTuParserNode) Delete

func (gtpn *GccTuParserNode) Delete(db XODB) error

Delete deletes the GccTuParserNode from the database.

func (*GccTuParserNode) Deleted

func (gtpn *GccTuParserNode) Deleted() bool

Deleted provides information if the GccTuParserNode has been deleted from the database.

func (*GccTuParserNode) Exists

func (gtpn *GccTuParserNode) Exists() bool

Exists determines if the GccTuParserNode exists in the database.

func (*GccTuParserNode) GccTuParserSourcefile

func (gtpn *GccTuParserNode) GccTuParserSourcefile(db XODB) (*GccTuParserSourcefile, error)

GccTuParserSourcefile returns the GccTuParserSourcefile associated with the GccTuParserNode's SourceFileID (source_file_id).

Generated from foreign key 'gcc_tu_parser_node_source_file_id_fkey'.

func (*GccTuParserNode) Insert

func (gtpn *GccTuParserNode) Insert(db XODB) error

Insert inserts the GccTuParserNode to the database.

func (*GccTuParserNode) Save

func (gtpn *GccTuParserNode) Save(db XODB) error

Save saves the GccTuParserNode to the database.

func (*GccTuParserNode) Update

func (gtpn *GccTuParserNode) Update(db XODB) error

Update updates the GccTuParserNode in the database.

type GccTuParserSourcefile

type GccTuParserSourcefile struct {
	ID       int    `json:"id"`       // id
	Filename string `json:"filename"` // filename
	// contains filtered or unexported fields
}

GccTuParserSourcefile represents a row from 'gcc_tu_parser_sourcefile'.

func GccTuParserSourcefileByID

func GccTuParserSourcefileByID(db XODB, id int) (*GccTuParserSourcefile, error)

GccTuParserSourcefileByID retrieves a row from 'gcc_tu_parser_sourcefile' as a GccTuParserSourcefile.

Generated from index 'gcc_tu_parser_sourcefile_id_pkey'.

func (*GccTuParserSourcefile) Delete

func (gtps *GccTuParserSourcefile) Delete(db XODB) error

Delete deletes the GccTuParserSourcefile from the database.

func (*GccTuParserSourcefile) Deleted

func (gtps *GccTuParserSourcefile) Deleted() bool

Deleted provides information if the GccTuParserSourcefile has been deleted from the database.

func (*GccTuParserSourcefile) Exists

func (gtps *GccTuParserSourcefile) Exists() bool

Exists determines if the GccTuParserSourcefile exists in the database.

func (*GccTuParserSourcefile) Insert

func (gtps *GccTuParserSourcefile) Insert(db XODB) error

Insert inserts the GccTuParserSourcefile to the database.

func (*GccTuParserSourcefile) Save

func (gtps *GccTuParserSourcefile) Save(db XODB) error

Save saves the GccTuParserSourcefile to the database.

func (*GccTuParserSourcefile) Update

func (gtps *GccTuParserSourcefile) Update(db XODB) error

Update updates the GccTuParserSourcefile 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 ”.

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