quest

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for quest fields.

View Source
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 And

func And(predicates ...predicate.Quest) predicate.Quest

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Quest

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Quest

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Quest

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Quest

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Quest

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Quest

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Quest

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Quest

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Quest

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func HasBundle

func HasBundle() predicate.Quest

HasBundle applies the HasEdge predicate on the "bundle" edge.

func HasBundleWith

func HasBundleWith(preds ...predicate.File) predicate.Quest

HasBundleWith applies the HasEdge predicate on the "bundle" edge with a given conditions (other predicates).

func HasCreator

func HasCreator() predicate.Quest

HasCreator applies the HasEdge predicate on the "creator" edge.

func HasCreatorWith

func HasCreatorWith(preds ...predicate.User) predicate.Quest

HasCreatorWith applies the HasEdge predicate on the "creator" edge with a given conditions (other predicates).

func HasTasks

func HasTasks() predicate.Quest

HasTasks applies the HasEdge predicate on the "tasks" edge.

func HasTasksWith

func HasTasksWith(preds ...predicate.Task) predicate.Quest

HasTasksWith applies the HasEdge predicate on the "tasks" edge with a given conditions (other predicates).

func HasTome

func HasTome() predicate.Quest

HasTome applies the HasEdge predicate on the "tome" edge.

func HasTomeWith

func HasTomeWith(preds ...predicate.Tome) predicate.Quest

HasTomeWith applies the HasEdge predicate on the "tome" edge with a given conditions (other predicates).

func ID

func ID(id int) predicate.Quest

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Quest

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Quest

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Quest

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Quest

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Quest

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Quest

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Quest

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Quest

IDNotIn applies the NotIn predicate on the ID field.

func LastModifiedAt

func LastModifiedAt(v time.Time) predicate.Quest

LastModifiedAt applies equality check predicate on the "last_modified_at" field. It's identical to LastModifiedAtEQ.

func LastModifiedAtEQ

func LastModifiedAtEQ(v time.Time) predicate.Quest

LastModifiedAtEQ applies the EQ predicate on the "last_modified_at" field.

func LastModifiedAtGT

func LastModifiedAtGT(v time.Time) predicate.Quest

LastModifiedAtGT applies the GT predicate on the "last_modified_at" field.

func LastModifiedAtGTE

func LastModifiedAtGTE(v time.Time) predicate.Quest

LastModifiedAtGTE applies the GTE predicate on the "last_modified_at" field.

func LastModifiedAtIn

func LastModifiedAtIn(vs ...time.Time) predicate.Quest

LastModifiedAtIn applies the In predicate on the "last_modified_at" field.

func LastModifiedAtLT

func LastModifiedAtLT(v time.Time) predicate.Quest

LastModifiedAtLT applies the LT predicate on the "last_modified_at" field.

func LastModifiedAtLTE

func LastModifiedAtLTE(v time.Time) predicate.Quest

LastModifiedAtLTE applies the LTE predicate on the "last_modified_at" field.

func LastModifiedAtNEQ

func LastModifiedAtNEQ(v time.Time) predicate.Quest

LastModifiedAtNEQ applies the NEQ predicate on the "last_modified_at" field.

func LastModifiedAtNotIn

func LastModifiedAtNotIn(vs ...time.Time) predicate.Quest

LastModifiedAtNotIn applies the NotIn predicate on the "last_modified_at" field.

func Name

func Name(v string) predicate.Quest

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Quest

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Quest

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Quest

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Quest

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Quest

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Quest

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Quest

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Quest

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Quest

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Quest

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Quest

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Quest

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Quest

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Quest) predicate.Quest

Or groups predicates with the OR operator between them.

func Parameters

func Parameters(v string) predicate.Quest

Parameters applies equality check predicate on the "parameters" field. It's identical to ParametersEQ.

func ParametersContains

func ParametersContains(v string) predicate.Quest

ParametersContains applies the Contains predicate on the "parameters" field.

func ParametersContainsFold

func ParametersContainsFold(v string) predicate.Quest

ParametersContainsFold applies the ContainsFold predicate on the "parameters" field.

func ParametersEQ

func ParametersEQ(v string) predicate.Quest

ParametersEQ applies the EQ predicate on the "parameters" field.

func ParametersEqualFold

func ParametersEqualFold(v string) predicate.Quest

ParametersEqualFold applies the EqualFold predicate on the "parameters" field.

func ParametersGT

func ParametersGT(v string) predicate.Quest

ParametersGT applies the GT predicate on the "parameters" field.

func ParametersGTE

func ParametersGTE(v string) predicate.Quest

ParametersGTE applies the GTE predicate on the "parameters" field.

func ParametersHasPrefix

func ParametersHasPrefix(v string) predicate.Quest

ParametersHasPrefix applies the HasPrefix predicate on the "parameters" field.

func ParametersHasSuffix

func ParametersHasSuffix(v string) predicate.Quest

ParametersHasSuffix applies the HasSuffix predicate on the "parameters" field.

func ParametersIn

func ParametersIn(vs ...string) predicate.Quest

ParametersIn applies the In predicate on the "parameters" field.

func ParametersIsNil

func ParametersIsNil() predicate.Quest

ParametersIsNil applies the IsNil predicate on the "parameters" field.

func ParametersLT

func ParametersLT(v string) predicate.Quest

ParametersLT applies the LT predicate on the "parameters" field.

func ParametersLTE

func ParametersLTE(v string) predicate.Quest

ParametersLTE applies the LTE predicate on the "parameters" field.

func ParametersNEQ

func ParametersNEQ(v string) predicate.Quest

ParametersNEQ applies the NEQ predicate on the "parameters" field.

func ParametersNotIn

func ParametersNotIn(vs ...string) predicate.Quest

ParametersNotIn applies the NotIn predicate on the "parameters" field.

func ParametersNotNil

func ParametersNotNil() predicate.Quest

ParametersNotNil applies the NotNil predicate on the "parameters" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL