 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- type Compiler
- func (co *Compiler) AddRelationship(child, parent string, rel *DBRel) error
- func (co *Compiler) Compile(w io.Writer, qc *qcode.QCode, vars Variables) (Metadata, error)
- func (co *Compiler) CompileEx(qc *qcode.QCode, vars Variables) (Metadata, []byte, error)
- func (co *Compiler) IDColumn(table string) (*DBColumn, error)
 
- type Config
- type DBColumn
- type DBFuncParam
- type DBFunction
- type DBInfo
- type DBRel
- type DBSchema
- type DBTable
- type DBTableInfo
- type IntStack
- type Metadata
- type Param
- type RelType
- type Variables
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Compiler ¶
type Compiler struct {
	// contains filtered or unexported fields
}
    func NewCompiler ¶
func (*Compiler) AddRelationship ¶
type DBColumn ¶
type DBFuncParam ¶ added in v0.13.17
type DBFuncParam struct {
	ID   int
	Name sql.NullString
	Type string
}
    type DBFunction ¶ added in v0.13.17
type DBFunction struct {
	Name   string
	Params []DBFuncParam
}
    func GetFunctions ¶ added in v0.13.17
func GetFunctions(db *sql.DB, schema string) ([]DBFunction, error)
type DBInfo ¶
type DBInfo struct {
	Version   int
	Tables    []DBTable
	Columns   [][]DBColumn
	Functions []DBFunction
	// contains filtered or unexported fields
}
    func GetTestDBInfo ¶ added in v0.13.18
func GetTestDBInfo() *DBInfo
type DBRel ¶
type DBSchema ¶
type DBSchema struct {
	// contains filtered or unexported fields
}
    func GetTestSchema ¶ added in v0.13.18
func (*DBSchema) GetFunctions ¶ added in v0.13.17
func (s *DBSchema) GetFunctions() []*DBFunction
func (*DBSchema) GetTableNames ¶ added in v0.13.15
type DBTableInfo ¶
type IntStack ¶
type IntStack struct {
	// contains filtered or unexported fields
}
    type Variables ¶
type Variables map[string]json.RawMessage
 Click to show internal directories. 
   Click to hide internal directories.