Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Short) predicate.Short
- func ID(id int) predicate.Short
- func IDEQ(id int) predicate.Short
- func IDGT(id int) predicate.Short
- func IDGTE(id int) predicate.Short
- func IDIn(ids ...int) predicate.Short
- func IDLT(id int) predicate.Short
- func IDLTE(id int) predicate.Short
- func IDNEQ(id int) predicate.Short
- func IDNotIn(ids ...int) predicate.Short
- func Key(v string) predicate.Short
- func KeyContains(v string) predicate.Short
- func KeyContainsFold(v string) predicate.Short
- func KeyEQ(v string) predicate.Short
- func KeyEqualFold(v string) predicate.Short
- func KeyGT(v string) predicate.Short
- func KeyGTE(v string) predicate.Short
- func KeyHasPrefix(v string) predicate.Short
- func KeyHasSuffix(v string) predicate.Short
- func KeyIn(vs ...string) predicate.Short
- func KeyLT(v string) predicate.Short
- func KeyLTE(v string) predicate.Short
- func KeyNEQ(v string) predicate.Short
- func KeyNotIn(vs ...string) predicate.Short
- func Not(p predicate.Short) predicate.Short
- func Or(predicates ...predicate.Short) predicate.Short
- func Value(v uuid.UUID) predicate.Short
- func ValueEQ(v uuid.UUID) predicate.Short
- func ValueGT(v uuid.UUID) predicate.Short
- func ValueGTE(v uuid.UUID) predicate.Short
- func ValueIn(vs ...uuid.UUID) predicate.Short
- func ValueLT(v uuid.UUID) predicate.Short
- func ValueLTE(v uuid.UUID) predicate.Short
- func ValueNEQ(v uuid.UUID) predicate.Short
- func ValueNotIn(vs ...uuid.UUID) predicate.Short
Constants ¶
View Source
const ( // Label holds the string label denoting the short type in the database. Label = "short" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldKey holds the string denoting the key vertex property in the database. FieldKey = "key" // FieldValue holds the string denoting the value vertex property in the database. FieldValue = "value" // Table holds the table name of the short in the database. Table = "shorts" )
Variables ¶
View Source
var Columns = []string{ FieldID, FieldKey, FieldValue, }
Columns holds all SQL columns for short fields.
View Source
var ( // KeyValidator is a validator for the "key" field. It is called by the builders before save. KeyValidator func(string) error )
Functions ¶
func KeyContains ¶
KeyContains applies the Contains predicate on the "key" field.
func KeyContainsFold ¶
KeyContainsFold applies the ContainsFold predicate on the "key" field.
func KeyEqualFold ¶
KeyEqualFold applies the EqualFold predicate on the "key" field.
func KeyHasPrefix ¶
KeyHasPrefix applies the HasPrefix predicate on the "key" field.
func KeyHasSuffix ¶
KeyHasSuffix applies the HasSuffix predicate on the "key" field.
func Value ¶
Value applies equality check predicate on the "value" field. It's identical to ValueEQ.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.