Documentation
¶
Overview ¶
Package sqgenlite is a really dumb sqlite query generator
Index ¶
- type Query
- func (q *Query) Append(s string, args ...interface{}) *Query
- func (q *Query) Delete(table string) *Query
- func (q *Query) Group(fields ...string) *Query
- func (q *Query) Insert(table string, fields []string, args ...interface{}) *Query
- func (q *Query) Join(table string, fields ...[]string) *Query
- func (q *Query) Order(fields ...string) *Query
- func (q *Query) Select(table string, fields ...string) *Query
- func (q *Query) String() string
- func (q *Query) Update(table string, fields []string, args ...interface{}) *Query
- func (q *Query) Where(s string, args ...interface{}) *Query
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Query ¶
Query struct that we attach our generate methods to
func (*Query) Join ¶
Join adds a basic JOIN clause using fields to define pairs of matching join fields, this is fine in sqlite as it only recognises inner joins
func (*Query) String ¶ added in v0.1.0
String implements the Stringer interface for the constructed Query string
Click to show internal directories.
Click to hide internal directories.