Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Test) predicate.Test
- func ID(id int) predicate.Test
- func IDEQ(id int) predicate.Test
- func IDGT(id int) predicate.Test
- func IDGTE(id int) predicate.Test
- func IDIn(ids ...int) predicate.Test
- func IDLT(id int) predicate.Test
- func IDLTE(id int) predicate.Test
- func IDNEQ(id int) predicate.Test
- func IDNotIn(ids ...int) predicate.Test
- func Not(p predicate.Test) predicate.Test
- func Or(predicates ...predicate.Test) predicate.Test
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
View Source
const ( // Label holds the string label denoting the test type in the database. Label = "test" // FieldID holds the string denoting the id field in the database. FieldID = "id" // Table holds the table name of the test in the database. Table = "tests" )
Variables ¶
View Source
var Columns = []string{ FieldID, }
Columns holds all SQL columns for test fields.
Functions ¶
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Test queries.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
Click to show internal directories.
Click to hide internal directories.