Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.View) predicate.View
- func ID(id int) predicate.View
- func IDEQ(id int) predicate.View
- func IDGT(id int) predicate.View
- func IDGTE(id int) predicate.View
- func IDIn(ids ...int) predicate.View
- func IDLT(id int) predicate.View
- func IDLTE(id int) predicate.View
- func IDNEQ(id int) predicate.View
- func IDNotIn(ids ...int) predicate.View
- func Not(p predicate.View) predicate.View
- func Or(predicates ...predicate.View) predicate.View
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
View Source
const ( // Label holds the string label denoting the view type in the database. Label = "view" // FieldID holds the string denoting the id field in the database. FieldID = "id" // Table holds the table name of the view in the database. Table = "views" )
Variables ¶
View Source
var Columns = []string{ FieldID, }
Columns holds all SQL columns for view 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 View 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.