Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Sample) predicate.Sample
- func Code(v string) predicate.Sample
- func CodeContains(v string) predicate.Sample
- func CodeContainsFold(v string) predicate.Sample
- func CodeEQ(v string) predicate.Sample
- func CodeEqualFold(v string) predicate.Sample
- func CodeGT(v string) predicate.Sample
- func CodeGTE(v string) predicate.Sample
- func CodeHasPrefix(v string) predicate.Sample
- func CodeHasSuffix(v string) predicate.Sample
- func CodeIn(vs ...string) predicate.Sample
- func CodeLT(v string) predicate.Sample
- func CodeLTE(v string) predicate.Sample
- func CodeNEQ(v string) predicate.Sample
- func CodeNotIn(vs ...string) predicate.Sample
- func CreateTime(v time.Time) predicate.Sample
- func CreateTimeEQ(v time.Time) predicate.Sample
- func CreateTimeGT(v time.Time) predicate.Sample
- func CreateTimeGTE(v time.Time) predicate.Sample
- func CreateTimeIn(vs ...time.Time) predicate.Sample
- func CreateTimeLT(v time.Time) predicate.Sample
- func CreateTimeLTE(v time.Time) predicate.Sample
- func CreateTimeNEQ(v time.Time) predicate.Sample
- func CreateTimeNotIn(vs ...time.Time) predicate.Sample
- func HasNorms() predicate.Sample
- func HasNormsWith(preds ...predicate.Norm) predicate.Sample
- func ID(id uuid.UUID) predicate.Sample
- func IDEQ(id uuid.UUID) predicate.Sample
- func IDGT(id uuid.UUID) predicate.Sample
- func IDGTE(id uuid.UUID) predicate.Sample
- func IDIn(ids ...uuid.UUID) predicate.Sample
- func IDLT(id uuid.UUID) predicate.Sample
- func IDLTE(id uuid.UUID) predicate.Sample
- func IDNEQ(id uuid.UUID) predicate.Sample
- func IDNotIn(ids ...uuid.UUID) predicate.Sample
- func Not(p predicate.Sample) predicate.Sample
- func Or(predicates ...predicate.Sample) predicate.Sample
- func UpdateTime(v time.Time) predicate.Sample
- func UpdateTimeEQ(v time.Time) predicate.Sample
- func UpdateTimeGT(v time.Time) predicate.Sample
- func UpdateTimeGTE(v time.Time) predicate.Sample
- func UpdateTimeIn(vs ...time.Time) predicate.Sample
- func UpdateTimeLT(v time.Time) predicate.Sample
- func UpdateTimeLTE(v time.Time) predicate.Sample
- func UpdateTimeNEQ(v time.Time) predicate.Sample
- func UpdateTimeNotIn(vs ...time.Time) predicate.Sample
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the sample type in the database. Label = "sample" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreateTime holds the string denoting the create_time field in the database. FieldCreateTime = "create_time" // FieldUpdateTime holds the string denoting the update_time field in the database. FieldUpdateTime = "update_time" // FieldCode holds the string denoting the code field in the database. FieldCode = "code" // FieldCriteria holds the string denoting the criteria field in the database. FieldCriteria = "criteria" // EdgeNorms holds the string denoting the norms edge name in mutations. EdgeNorms = "norms" // Table holds the table name of the sample in the database. Table = "samples" // NormsTable is the table that holds the norms relation/edge. NormsTable = "norms" // NormsInverseTable is the table name for the Norm entity. // It exists in this package in order to avoid circular dependency with the "norm" package. NormsInverseTable = "norms" // NormsColumn is the table column denoting the norms relation/edge. NormsColumn = "sample_norms" )
Variables ¶
var ( // DefaultCreateTime holds the default value on creation for the "create_time" field. DefaultCreateTime func() time.Time // DefaultUpdateTime holds the default value on creation for the "update_time" field. DefaultUpdateTime func() time.Time // UpdateDefaultUpdateTime holds the default value on update for the "update_time" field. UpdateDefaultUpdateTime func() time.Time // CodeValidator is a validator for the "code" field. It is called by the builders before save. CodeValidator func(string) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldCode, FieldCriteria, }
Columns holds all SQL columns for sample fields.
Functions ¶
func CodeContains ¶
CodeContains applies the Contains predicate on the "code" field.
func CodeContainsFold ¶
CodeContainsFold applies the ContainsFold predicate on the "code" field.
func CodeEqualFold ¶
CodeEqualFold applies the EqualFold predicate on the "code" field.
func CodeHasPrefix ¶
CodeHasPrefix applies the HasPrefix predicate on the "code" field.
func CodeHasSuffix ¶
CodeHasSuffix applies the HasSuffix predicate on the "code" field.
func CreateTime ¶
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func HasNormsWith ¶
HasNormsWith applies the HasEdge predicate on the "norms" edge with a given conditions (other predicates).
func UpdateTime ¶
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.