Documentation ¶
Overview ¶
Package sqlc helps you combine arbitrary bits of SQL
Index ¶
- type Statement
- func (s Statement) Args() []interface{}
- func (s Statement) From(partial string, args ...interface{}) Statement
- func (s Statement) Group(partial string, args ...interface{}) Statement
- func (s Statement) Having(partial string, args ...interface{}) Statement
- func (s Statement) Join(partial string, args ...interface{}) Statement
- func (s Statement) Limit(partial string, args ...interface{}) Statement
- func (s Statement) Order(partial string, args ...interface{}) Statement
- func (s Statement) SQL() string
- func (s Statement) Select(partial string, args ...interface{}) Statement
- func (s Statement) Where(partial string, args ...interface{}) Statement
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Statement ¶
type Statement struct { // PostgreSQL replaces "?, ?" with "$1, $2" if true PostgreSQL bool // contains filtered or unexported fields }
Statement is a SQL string being built
func (Statement) Args ¶
func (s Statement) Args() []interface{}
Args returns positional arguments in the order they will appear in the SQL.
func (Statement) Join ¶
Join adds a JOIN stanza, joined by spaces Unlike other stanzas, you need to specify the JOIN/INNER JOIN/LEFT JOIN bit yourself.
Click to show internal directories.
Click to hide internal directories.