Documentation ¶
Index ¶
- func GetCreateColumns(sqlCommand string) ([]string, error)
- func GetInsertColumns(sqlCommand string) ([]string, error)
- func GetSelectColumns(sqlCommand string) ([]string, error)
- func GetUpdateColumns(sqlCommand string) ([]string, error)
- type CreateCols
- type CreateStatement
- type Fields
- type InsertCols
- type InsertStatement
- type ResTarget
- type SelectStatement
- type UpdateCols
- type UpdateColsStatement
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCreateColumns ¶
func GetInsertColumns ¶
func GetSelectColumns ¶
func GetUpdateColumns ¶
Types ¶
type CreateCols ¶
type CreateCols struct { Col struct { Name string `json:"colname"` } `json:"ColumnDef"` }
type CreateStatement ¶
type CreateStatement struct { RawStmt struct { Stmt struct { CreateStmt struct { TableElts []CreateCols `json:"tableElts"` } `json:"CreateStmt"` } `json:"stmt"` } `json:"RawStmt"` }
type InsertCols ¶
type InsertStatement ¶
type InsertStatement struct { RawStmt struct { Stmt struct { InsertStmt struct { Cols []InsertCols `json:"cols"` } `json:"InsertStmt"` } `json:"stmt"` } `json:"RawStmt"` }
type ResTarget ¶
type ResTarget struct { ResTarget struct { Val struct { ColumnRef struct { Fields []Fields `fields` } `json:"ColumnRef"` } `json:"val"` } `json:"ResTarget"` }
type SelectStatement ¶
type SelectStatement struct { RawStmt struct { Stmt struct { SelectStmt struct { TargetList []ResTarget `json:"targetList"` } `json:"SelectStmt"` } `json:"stmt"` } `json:"RawStmt"` }
type UpdateCols ¶
type UpdateCols struct { Col struct { Name string `json:"name"` } `json:"ResTarget"` }
type UpdateColsStatement ¶
type UpdateColsStatement struct { RawStmt struct { Stmt struct { UpdateStmt struct { Cols []UpdateCols `json:"targetList"` } `json:"UpdateStmt"` } `json:"stmt"` } `json:"RawStmt"` }
Click to show internal directories.
Click to hide internal directories.