Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetWhereClause ¶
GetWhereClause builds the WHERE clause from any of Where-types
Types ¶
type InsertVals ¶
type InsertVals struct {
// contains filtered or unexported fields
}
InsertVals represents an easy to use store for setting up multiple insert-rows for SQL
func NewInsert ¶
func NewInsert() *InsertVals
NewInsert creates a store for rows that will be inserted with an SQL-statement
func (*InsertVals) Add ¶
func (v *InsertVals) Add(values ...interface{}) error
Add appends one or more rows to the insert store
func (*InsertVals) String ¶
func (v *InsertVals) String(base *int) string
String returns the VALUES-Clause with the size of given value-rows
func (*InsertVals) Values ¶
func (v *InsertVals) Values() []interface{}
Values returns all stored rows in a single-dimension array to use with the sql package
type UpdateConfig ¶
type UpdateConfig func(c *UpdateSQL)
func Fields ¶
func Fields(v map[string]interface{}) UpdateConfig
func Returns ¶
func Returns(v map[string]interface{}) UpdateConfig
type Where ¶
Where is a function type that is used to create a WHERE clause and the values to use in an SQL-Query.
func INCallabel ¶
INCallabel same as IN but calles function for the values
Click to show internal directories.
Click to hide internal directories.