Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.RefSchema) predicate.RefSchema
- func ID(id int) predicate.RefSchema
- func IDEQ(id int) predicate.RefSchema
- func IDGT(id int) predicate.RefSchema
- func IDGTE(id int) predicate.RefSchema
- func IDIn(ids ...int) predicate.RefSchema
- func IDLT(id int) predicate.RefSchema
- func IDLTE(id int) predicate.RefSchema
- func IDNEQ(id int) predicate.RefSchema
- func IDNotIn(ids ...int) predicate.RefSchema
- func Name(v string) predicate.RefSchema
- func NameContains(v string) predicate.RefSchema
- func NameContainsFold(v string) predicate.RefSchema
- func NameEQ(v string) predicate.RefSchema
- func NameEqualFold(v string) predicate.RefSchema
- func NameGT(v string) predicate.RefSchema
- func NameGTE(v string) predicate.RefSchema
- func NameHasPrefix(v string) predicate.RefSchema
- func NameHasSuffix(v string) predicate.RefSchema
- func NameIn(vs ...string) predicate.RefSchema
- func NameLT(v string) predicate.RefSchema
- func NameLTE(v string) predicate.RefSchema
- func NameNEQ(v string) predicate.RefSchema
- func NameNotIn(vs ...string) predicate.RefSchema
- func Not(p predicate.RefSchema) predicate.RefSchema
- func Or(predicates ...predicate.RefSchema) predicate.RefSchema
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
View Source
const ( // Label holds the string label denoting the refschema type in the database. Label = "ref_schema" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // Table holds the table name of the refschema in the database. Table = "ref_table" )
Variables ¶
View Source
var Columns = []string{ FieldID, FieldName, }
Columns holds all SQL columns for refschema fields.
Functions ¶
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
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 RefSchema queries.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
Click to show internal directories.
Click to hide internal directories.