Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Item) predicate.Item
- func ID(id string) predicate.Item
- func IDEQ(id string) predicate.Item
- func IDGT(id string) predicate.Item
- func IDGTE(id string) predicate.Item
- func IDIn(ids ...string) predicate.Item
- func IDLT(id string) predicate.Item
- func IDLTE(id string) predicate.Item
- func IDNEQ(id string) predicate.Item
- func IDNotIn(ids ...string) predicate.Item
- func Not(p predicate.Item) predicate.Item
- func Or(predicates ...predicate.Item) predicate.Item
- func ValidColumn(column string) bool
Constants ¶
View Source
const ( // Label holds the string label denoting the item type in the database. Label = "item" // FieldID holds the string denoting the id field in the database. FieldID = "id" // Table holds the table name of the item in the database. Table = "items" )
Variables ¶
View Source
var Columns = []string{ FieldID, }
Columns holds all SQL columns for item fields.
View Source
var ( // IDValidator is a validator for the "id" field. It is called by the builders before save. IDValidator func(string) error )
Functions ¶
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.