Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Quest) predicate.Quest
- func CreatedAt(v time.Time) predicate.Quest
- func CreatedAtEQ(v time.Time) predicate.Quest
- func CreatedAtGT(v time.Time) predicate.Quest
- func CreatedAtGTE(v time.Time) predicate.Quest
- func CreatedAtIn(vs ...time.Time) predicate.Quest
- func CreatedAtLT(v time.Time) predicate.Quest
- func CreatedAtLTE(v time.Time) predicate.Quest
- func CreatedAtNEQ(v time.Time) predicate.Quest
- func CreatedAtNotIn(vs ...time.Time) predicate.Quest
- func HasBundle() predicate.Quest
- func HasBundleWith(preds ...predicate.File) predicate.Quest
- func HasCreator() predicate.Quest
- func HasCreatorWith(preds ...predicate.User) predicate.Quest
- func HasTasks() predicate.Quest
- func HasTasksWith(preds ...predicate.Task) predicate.Quest
- func HasTome() predicate.Quest
- func HasTomeWith(preds ...predicate.Tome) predicate.Quest
- func ID(id int) predicate.Quest
- func IDEQ(id int) predicate.Quest
- func IDGT(id int) predicate.Quest
- func IDGTE(id int) predicate.Quest
- func IDIn(ids ...int) predicate.Quest
- func IDLT(id int) predicate.Quest
- func IDLTE(id int) predicate.Quest
- func IDNEQ(id int) predicate.Quest
- func IDNotIn(ids ...int) predicate.Quest
- func LastModifiedAt(v time.Time) predicate.Quest
- func LastModifiedAtEQ(v time.Time) predicate.Quest
- func LastModifiedAtGT(v time.Time) predicate.Quest
- func LastModifiedAtGTE(v time.Time) predicate.Quest
- func LastModifiedAtIn(vs ...time.Time) predicate.Quest
- func LastModifiedAtLT(v time.Time) predicate.Quest
- func LastModifiedAtLTE(v time.Time) predicate.Quest
- func LastModifiedAtNEQ(v time.Time) predicate.Quest
- func LastModifiedAtNotIn(vs ...time.Time) predicate.Quest
- func Name(v string) predicate.Quest
- func NameContains(v string) predicate.Quest
- func NameContainsFold(v string) predicate.Quest
- func NameEQ(v string) predicate.Quest
- func NameEqualFold(v string) predicate.Quest
- func NameGT(v string) predicate.Quest
- func NameGTE(v string) predicate.Quest
- func NameHasPrefix(v string) predicate.Quest
- func NameHasSuffix(v string) predicate.Quest
- func NameIn(vs ...string) predicate.Quest
- func NameLT(v string) predicate.Quest
- func NameLTE(v string) predicate.Quest
- func NameNEQ(v string) predicate.Quest
- func NameNotIn(vs ...string) predicate.Quest
- func Not(p predicate.Quest) predicate.Quest
- func Or(predicates ...predicate.Quest) predicate.Quest
- func Parameters(v string) predicate.Quest
- func ParametersContains(v string) predicate.Quest
- func ParametersContainsFold(v string) predicate.Quest
- func ParametersEQ(v string) predicate.Quest
- func ParametersEqualFold(v string) predicate.Quest
- func ParametersGT(v string) predicate.Quest
- func ParametersGTE(v string) predicate.Quest
- func ParametersHasPrefix(v string) predicate.Quest
- func ParametersHasSuffix(v string) predicate.Quest
- func ParametersIn(vs ...string) predicate.Quest
- func ParametersIsNil() predicate.Quest
- func ParametersLT(v string) predicate.Quest
- func ParametersLTE(v string) predicate.Quest
- func ParametersNEQ(v string) predicate.Quest
- func ParametersNotIn(vs ...string) predicate.Quest
- func ParametersNotNil() predicate.Quest
- func ValidColumn(column string) bool
- type OrderOption
- func ByBundleField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatorField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLastModifiedAt(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByParameters(opts ...sql.OrderTermOption) OrderOption
- func ByTasks(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByTasksCount(opts ...sql.OrderTermOption) OrderOption
- func ByTomeField(field string, opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the quest type in the database. Label = "quest" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldLastModifiedAt holds the string denoting the last_modified_at field in the database. FieldLastModifiedAt = "last_modified_at" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldParameters holds the string denoting the parameters field in the database. FieldParameters = "parameters" // EdgeTome holds the string denoting the tome edge name in mutations. EdgeTome = "tome" // EdgeBundle holds the string denoting the bundle edge name in mutations. EdgeBundle = "bundle" // EdgeTasks holds the string denoting the tasks edge name in mutations. EdgeTasks = "tasks" // EdgeCreator holds the string denoting the creator edge name in mutations. EdgeCreator = "creator" // Table holds the table name of the quest in the database. Table = "quests" // TomeTable is the table that holds the tome relation/edge. TomeTable = "quests" // TomeInverseTable is the table name for the Tome entity. // It exists in this package in order to avoid circular dependency with the "tome" package. TomeInverseTable = "tomes" // TomeColumn is the table column denoting the tome relation/edge. TomeColumn = "quest_tome" // BundleTable is the table that holds the bundle relation/edge. BundleTable = "quests" // BundleInverseTable is the table name for the File entity. // It exists in this package in order to avoid circular dependency with the "file" package. BundleInverseTable = "files" // BundleColumn is the table column denoting the bundle relation/edge. BundleColumn = "quest_bundle" // TasksTable is the table that holds the tasks relation/edge. TasksTable = "tasks" // TasksInverseTable is the table name for the Task entity. // It exists in this package in order to avoid circular dependency with the "task" package. TasksInverseTable = "tasks" // TasksColumn is the table column denoting the tasks relation/edge. TasksColumn = "quest_tasks" // CreatorTable is the table that holds the creator relation/edge. CreatorTable = "quests" // CreatorInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. CreatorInverseTable = "users" // CreatorColumn is the table column denoting the creator relation/edge. CreatorColumn = "quest_creator" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultLastModifiedAt holds the default value on creation for the "last_modified_at" field. DefaultLastModifiedAt func() time.Time // UpdateDefaultLastModifiedAt holds the default value on update for the "last_modified_at" field. UpdateDefaultLastModifiedAt func() time.Time // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // ParametersValidator is a validator for the "parameters" field. It is called by the builders before save. ParametersValidator func(string) error )
var Columns = []string{ FieldID, FieldCreatedAt, FieldLastModifiedAt, FieldName, FieldParameters, }
Columns holds all SQL columns for quest fields.
var ForeignKeys = []string{
"quest_tome",
"quest_bundle",
"quest_creator",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "quests" table and are not defined as standalone fields in the schema.
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 HasBundleWith ¶
HasBundleWith applies the HasEdge predicate on the "bundle" edge with a given conditions (other predicates).
func HasCreator ¶
HasCreator applies the HasEdge predicate on the "creator" edge.
func HasCreatorWith ¶
HasCreatorWith applies the HasEdge predicate on the "creator" edge with a given conditions (other predicates).
func HasTasksWith ¶
HasTasksWith applies the HasEdge predicate on the "tasks" edge with a given conditions (other predicates).
func HasTomeWith ¶
HasTomeWith applies the HasEdge predicate on the "tome" edge with a given conditions (other predicates).
func LastModifiedAt ¶
LastModifiedAt applies equality check predicate on the "last_modified_at" field. It's identical to LastModifiedAtEQ.
func LastModifiedAtEQ ¶
LastModifiedAtEQ applies the EQ predicate on the "last_modified_at" field.
func LastModifiedAtGT ¶
LastModifiedAtGT applies the GT predicate on the "last_modified_at" field.
func LastModifiedAtGTE ¶
LastModifiedAtGTE applies the GTE predicate on the "last_modified_at" field.
func LastModifiedAtIn ¶
LastModifiedAtIn applies the In predicate on the "last_modified_at" field.
func LastModifiedAtLT ¶
LastModifiedAtLT applies the LT predicate on the "last_modified_at" field.
func LastModifiedAtLTE ¶
LastModifiedAtLTE applies the LTE predicate on the "last_modified_at" field.
func LastModifiedAtNEQ ¶
LastModifiedAtNEQ applies the NEQ predicate on the "last_modified_at" field.
func LastModifiedAtNotIn ¶
LastModifiedAtNotIn applies the NotIn predicate on the "last_modified_at" 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 Parameters ¶
Parameters applies equality check predicate on the "parameters" field. It's identical to ParametersEQ.
func ParametersContains ¶
ParametersContains applies the Contains predicate on the "parameters" field.
func ParametersContainsFold ¶
ParametersContainsFold applies the ContainsFold predicate on the "parameters" field.
func ParametersEQ ¶
ParametersEQ applies the EQ predicate on the "parameters" field.
func ParametersEqualFold ¶
ParametersEqualFold applies the EqualFold predicate on the "parameters" field.
func ParametersGT ¶
ParametersGT applies the GT predicate on the "parameters" field.
func ParametersGTE ¶
ParametersGTE applies the GTE predicate on the "parameters" field.
func ParametersHasPrefix ¶
ParametersHasPrefix applies the HasPrefix predicate on the "parameters" field.
func ParametersHasSuffix ¶
ParametersHasSuffix applies the HasSuffix predicate on the "parameters" field.
func ParametersIn ¶
ParametersIn applies the In predicate on the "parameters" field.
func ParametersIsNil ¶
ParametersIsNil applies the IsNil predicate on the "parameters" field.
func ParametersLT ¶
ParametersLT applies the LT predicate on the "parameters" field.
func ParametersLTE ¶
ParametersLTE applies the LTE predicate on the "parameters" field.
func ParametersNEQ ¶
ParametersNEQ applies the NEQ predicate on the "parameters" field.
func ParametersNotIn ¶
ParametersNotIn applies the NotIn predicate on the "parameters" field.
func ParametersNotNil ¶
ParametersNotNil applies the NotNil predicate on the "parameters" 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 Quest queries.
func ByBundleField ¶
func ByBundleField(field string, opts ...sql.OrderTermOption) OrderOption
ByBundleField orders the results by bundle field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByCreatorField ¶
func ByCreatorField(field string, opts ...sql.OrderTermOption) OrderOption
ByCreatorField orders the results by creator field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLastModifiedAt ¶
func ByLastModifiedAt(opts ...sql.OrderTermOption) OrderOption
ByLastModifiedAt orders the results by the last_modified_at field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByParameters ¶
func ByParameters(opts ...sql.OrderTermOption) OrderOption
ByParameters orders the results by the parameters field.
func ByTasks ¶
func ByTasks(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByTasks orders the results by tasks terms.
func ByTasksCount ¶
func ByTasksCount(opts ...sql.OrderTermOption) OrderOption
ByTasksCount orders the results by tasks count.
func ByTomeField ¶
func ByTomeField(field string, opts ...sql.OrderTermOption) OrderOption
ByTomeField orders the results by tome field.