Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ParsedQuery ¶
type ParsedQuery struct { QueryType QueryType Query string Tpl []*ParsedQueryField // TODO Arg []*ParsedQueryField Ret []*ParsedQueryField // options SelectSingle bool InsertMulti bool }
func (*ParsedQuery) Init ¶
func (t *ParsedQuery) Init(query string)
type ParsedQueryField ¶
func NewField ¶
func NewField(name, goType string) *ParsedQueryField
type Parser ¶
type Parser interface {
Parse(sql string) (*ParsedQuery, error)
}
type Type ¶
type Type struct { Type string `json:"type,omitempty"` Prec int `json:"prec,omitempty"` Scale int `json:"scale,omitempty"` Nullable bool `json:"nullable,omitempty"` IsArray bool `json:"array,omitempty"` Unsigned bool `json:"unsigned,omitempty"` }
Type holds information for a database type.
Click to show internal directories.
Click to hide internal directories.