Documentation ¶
Overview ¶
The job of this package is to parse the queries and replace placeholder values with the real values
Index ¶
- func Compile(sql string, arg interface{}) (string, error)
- func Finalize(parts *[]Part, args ...interface{}) (string, error)
- func FinalizeNamed(parts *[]PartNamed, arg interface{}) (string, error)
- func Format(q string) string
- func Prepare(sql string) *[]Part
- func PrepareNamed(sql string) (*[]PartNamed, error)
- type Part
- type PartNamed
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Finalize ¶
Finalize is a function that finalizes the traditional sql queries before they are executed
func FinalizeNamed ¶
FinalizeNamed is a function that finalizes the named sql queries before they are executed
func Format ¶ added in v0.3.0
Format is just an internal algo to format sql queries It basically removes unneccessary whitespace from queries Automatically used by prepare CURRENTLY DOES NOT REMOVE COMMENTS
func PrepareNamed ¶
PrepareNamed is used for parsing and preparing sql queries
Types ¶
Click to show internal directories.
Click to hide internal directories.