Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Level) predicate.Level
- func CreatedAt(v time.Time) predicate.Level
- func CreatedAtEQ(v time.Time) predicate.Level
- func CreatedAtGT(v time.Time) predicate.Level
- func CreatedAtGTE(v time.Time) predicate.Level
- func CreatedAtIn(vs ...time.Time) predicate.Level
- func CreatedAtLT(v time.Time) predicate.Level
- func CreatedAtLTE(v time.Time) predicate.Level
- func CreatedAtNEQ(v time.Time) predicate.Level
- func CreatedAtNotIn(vs ...time.Time) predicate.Level
- func Description(v string) predicate.Level
- func DescriptionContains(v string) predicate.Level
- func DescriptionContainsFold(v string) predicate.Level
- func DescriptionEQ(v string) predicate.Level
- func DescriptionEqualFold(v string) predicate.Level
- func DescriptionGT(v string) predicate.Level
- func DescriptionGTE(v string) predicate.Level
- func DescriptionHasPrefix(v string) predicate.Level
- func DescriptionHasSuffix(v string) predicate.Level
- func DescriptionIn(vs ...string) predicate.Level
- func DescriptionLT(v string) predicate.Level
- func DescriptionLTE(v string) predicate.Level
- func DescriptionNEQ(v string) predicate.Level
- func DescriptionNotIn(vs ...string) predicate.Level
- func ID(id uint) predicate.Level
- func IDEQ(id uint) predicate.Level
- func IDGT(id uint) predicate.Level
- func IDGTE(id uint) predicate.Level
- func IDIn(ids ...uint) predicate.Level
- func IDLT(id uint) predicate.Level
- func IDLTE(id uint) predicate.Level
- func IDNEQ(id uint) predicate.Level
- func IDNotIn(ids ...uint) predicate.Level
- func Name(v string) predicate.Level
- func NameContains(v string) predicate.Level
- func NameContainsFold(v string) predicate.Level
- func NameEQ(v string) predicate.Level
- func NameEqualFold(v string) predicate.Level
- func NameGT(v string) predicate.Level
- func NameGTE(v string) predicate.Level
- func NameHasPrefix(v string) predicate.Level
- func NameHasSuffix(v string) predicate.Level
- func NameIn(vs ...string) predicate.Level
- func NameLT(v string) predicate.Level
- func NameLTE(v string) predicate.Level
- func NameNEQ(v string) predicate.Level
- func NameNotIn(vs ...string) predicate.Level
- func Not(p predicate.Level) predicate.Level
- func Or(predicates ...predicate.Level) predicate.Level
- func UpdatedAt(v time.Time) predicate.Level
- func UpdatedAtEQ(v time.Time) predicate.Level
- func UpdatedAtGT(v time.Time) predicate.Level
- func UpdatedAtGTE(v time.Time) predicate.Level
- func UpdatedAtIn(vs ...time.Time) predicate.Level
- func UpdatedAtLT(v time.Time) predicate.Level
- func UpdatedAtLTE(v time.Time) predicate.Level
- func UpdatedAtNEQ(v time.Time) predicate.Level
- func UpdatedAtNotIn(vs ...time.Time) predicate.Level
Constants ¶
const ( // Label holds the string label denoting the level type in the database. Label = "level" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreatedAt holds the string denoting the created_at vertex property in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at vertex property in the database. FieldUpdatedAt = "updated_at" // FieldName holds the string denoting the name vertex property in the database. FieldName = "name" // FieldDescription holds the string denoting the description vertex property in the database. FieldDescription = "description" // FieldDefinition holds the string denoting the definition vertex property in the database. FieldDefinition = "definition" // Table holds the table name of the level in the database. Table = "levels" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the created_at field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the updated_at field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. UpdateDefaultUpdatedAt func() time.Time // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // DescriptionValidator is a validator for the "description" field. It is called by the builders before save. DescriptionValidator func(string) error )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldName, FieldDescription, FieldDefinition, }
Columns holds all SQL columns for level fields.
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
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 UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
Types ¶
This section is empty.