Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Code) predicate.Code
- func Contents(v string) predicate.Code
- func ContentsContains(v string) predicate.Code
- func ContentsContainsFold(v string) predicate.Code
- func ContentsEQ(v string) predicate.Code
- func ContentsEqualFold(v string) predicate.Code
- func ContentsGT(v string) predicate.Code
- func ContentsGTE(v string) predicate.Code
- func ContentsHasPrefix(v string) predicate.Code
- func ContentsHasSuffix(v string) predicate.Code
- func ContentsIn(vs ...string) predicate.Code
- func ContentsLT(v string) predicate.Code
- func ContentsLTE(v string) predicate.Code
- func ContentsNEQ(v string) predicate.Code
- func ContentsNotIn(vs ...string) predicate.Code
- func ID(id uuid.UUID) predicate.Code
- func IDEQ(id uuid.UUID) predicate.Code
- func IDGT(id uuid.UUID) predicate.Code
- func IDGTE(id uuid.UUID) predicate.Code
- func IDIn(ids ...uuid.UUID) predicate.Code
- func IDLT(id uuid.UUID) predicate.Code
- func IDLTE(id uuid.UUID) predicate.Code
- func IDNEQ(id uuid.UUID) predicate.Code
- func IDNotIn(ids ...uuid.UUID) predicate.Code
- func Not(p predicate.Code) predicate.Code
- func Or(predicates ...predicate.Code) predicate.Code
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the code type in the database. Label = "code" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldContents holds the string denoting the contents field in the database. FieldContents = "contents" // Table holds the table name of the code in the database. Table = "codes" )
Variables ¶
var ( // ContentsValidator is a validator for the "contents" field. It is called by the builders before save. ContentsValidator func(string) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldContents, }
Columns holds all SQL columns for code fields.
Functions ¶
func Contents ¶
Contents applies equality check predicate on the "contents" field. It's identical to ContentsEQ.
func ContentsContains ¶
ContentsContains applies the Contains predicate on the "contents" field.
func ContentsContainsFold ¶
ContentsContainsFold applies the ContainsFold predicate on the "contents" field.
func ContentsEQ ¶
ContentsEQ applies the EQ predicate on the "contents" field.
func ContentsEqualFold ¶
ContentsEqualFold applies the EqualFold predicate on the "contents" field.
func ContentsGT ¶
ContentsGT applies the GT predicate on the "contents" field.
func ContentsGTE ¶
ContentsGTE applies the GTE predicate on the "contents" field.
func ContentsHasPrefix ¶
ContentsHasPrefix applies the HasPrefix predicate on the "contents" field.
func ContentsHasSuffix ¶
ContentsHasSuffix applies the HasSuffix predicate on the "contents" field.
func ContentsIn ¶
ContentsIn applies the In predicate on the "contents" field.
func ContentsLT ¶
ContentsLT applies the LT predicate on the "contents" field.
func ContentsLTE ¶
ContentsLTE applies the LTE predicate on the "contents" field.
func ContentsNEQ ¶
ContentsNEQ applies the NEQ predicate on the "contents" field.
func ContentsNotIn ¶
ContentsNotIn applies the NotIn predicate on the "contents" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.