Documentation
¶
Index ¶
- type Column
- type InsertQuery
- type Query
- func (query Query) Execute(db *sql.DB) []Row
- func (query Query) ExecuteOne(db *sql.DB) (Row, error)
- func (query Query) From(table Table) Query
- func (query Query) Join(table Table, leftColumn, rightColumn Column) Query
- func (query Query) Limit(limit int) Query
- func (query Query) Where(condition WhereCondition) Query
- type Row
- type Table
- type UpdateQuery
- type WhereCondition
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Column ¶
func (Column) Eq ¶
func (column Column) Eq(value interface{}) WhereCondition
func (Column) PrimaryKey ¶
type InsertQuery ¶
type InsertQuery struct {
// contains filtered or unexported fields
}
func Insert ¶
func Insert() InsertQuery
func (InsertQuery) Into ¶
func (insert InsertQuery) Into(table Table, columns ...Column) InsertQuery
func (InsertQuery) Values ¶
func (insert InsertQuery) Values(values ...interface{}) InsertQuery
type Query ¶
type Query struct {
// contains filtered or unexported fields
}
func (Query) Where ¶
func (query Query) Where(condition WhereCondition) Query
type Row ¶
type Row struct {
// contains filtered or unexported fields
}
type UpdateQuery ¶
type UpdateQuery struct {
// contains filtered or unexported fields
}
func Update ¶
func Update(table Table) UpdateQuery
func (UpdateQuery) Set ¶
func (query UpdateQuery) Set(column Column, value interface{}) UpdateQuery
func (UpdateQuery) Where ¶
func (query UpdateQuery) Where(condition WhereCondition) UpdateQuery
type WhereCondition ¶
type WhereCondition struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.