Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Tome) predicate.Tome
- func CreatedAt(v time.Time) predicate.Tome
- func CreatedAtEQ(v time.Time) predicate.Tome
- func CreatedAtGT(v time.Time) predicate.Tome
- func CreatedAtGTE(v time.Time) predicate.Tome
- func CreatedAtIn(vs ...time.Time) predicate.Tome
- func CreatedAtLT(v time.Time) predicate.Tome
- func CreatedAtLTE(v time.Time) predicate.Tome
- func CreatedAtNEQ(v time.Time) predicate.Tome
- func CreatedAtNotIn(vs ...time.Time) predicate.Tome
- func Description(v string) predicate.Tome
- func DescriptionContains(v string) predicate.Tome
- func DescriptionContainsFold(v string) predicate.Tome
- func DescriptionEQ(v string) predicate.Tome
- func DescriptionEqualFold(v string) predicate.Tome
- func DescriptionGT(v string) predicate.Tome
- func DescriptionGTE(v string) predicate.Tome
- func DescriptionHasPrefix(v string) predicate.Tome
- func DescriptionHasSuffix(v string) predicate.Tome
- func DescriptionIn(vs ...string) predicate.Tome
- func DescriptionLT(v string) predicate.Tome
- func DescriptionLTE(v string) predicate.Tome
- func DescriptionNEQ(v string) predicate.Tome
- func DescriptionNotIn(vs ...string) predicate.Tome
- func Eldritch(v string) predicate.Tome
- func EldritchContains(v string) predicate.Tome
- func EldritchContainsFold(v string) predicate.Tome
- func EldritchEQ(v string) predicate.Tome
- func EldritchEqualFold(v string) predicate.Tome
- func EldritchGT(v string) predicate.Tome
- func EldritchGTE(v string) predicate.Tome
- func EldritchHasPrefix(v string) predicate.Tome
- func EldritchHasSuffix(v string) predicate.Tome
- func EldritchIn(vs ...string) predicate.Tome
- func EldritchLT(v string) predicate.Tome
- func EldritchLTE(v string) predicate.Tome
- func EldritchNEQ(v string) predicate.Tome
- func EldritchNotIn(vs ...string) predicate.Tome
- func HasFiles() predicate.Tome
- func HasFilesWith(preds ...predicate.File) predicate.Tome
- func Hash(v string) predicate.Tome
- func HashContains(v string) predicate.Tome
- func HashContainsFold(v string) predicate.Tome
- func HashEQ(v string) predicate.Tome
- func HashEqualFold(v string) predicate.Tome
- func HashGT(v string) predicate.Tome
- func HashGTE(v string) predicate.Tome
- func HashHasPrefix(v string) predicate.Tome
- func HashHasSuffix(v string) predicate.Tome
- func HashIn(vs ...string) predicate.Tome
- func HashLT(v string) predicate.Tome
- func HashLTE(v string) predicate.Tome
- func HashNEQ(v string) predicate.Tome
- func HashNotIn(vs ...string) predicate.Tome
- func ID(id int) predicate.Tome
- func IDEQ(id int) predicate.Tome
- func IDGT(id int) predicate.Tome
- func IDGTE(id int) predicate.Tome
- func IDIn(ids ...int) predicate.Tome
- func IDLT(id int) predicate.Tome
- func IDLTE(id int) predicate.Tome
- func IDNEQ(id int) predicate.Tome
- func IDNotIn(ids ...int) predicate.Tome
- func LastModifiedAt(v time.Time) predicate.Tome
- func LastModifiedAtEQ(v time.Time) predicate.Tome
- func LastModifiedAtGT(v time.Time) predicate.Tome
- func LastModifiedAtGTE(v time.Time) predicate.Tome
- func LastModifiedAtIn(vs ...time.Time) predicate.Tome
- func LastModifiedAtLT(v time.Time) predicate.Tome
- func LastModifiedAtLTE(v time.Time) predicate.Tome
- func LastModifiedAtNEQ(v time.Time) predicate.Tome
- func LastModifiedAtNotIn(vs ...time.Time) predicate.Tome
- func Name(v string) predicate.Tome
- func NameContains(v string) predicate.Tome
- func NameContainsFold(v string) predicate.Tome
- func NameEQ(v string) predicate.Tome
- func NameEqualFold(v string) predicate.Tome
- func NameGT(v string) predicate.Tome
- func NameGTE(v string) predicate.Tome
- func NameHasPrefix(v string) predicate.Tome
- func NameHasSuffix(v string) predicate.Tome
- func NameIn(vs ...string) predicate.Tome
- func NameLT(v string) predicate.Tome
- func NameLTE(v string) predicate.Tome
- func NameNEQ(v string) predicate.Tome
- func NameNotIn(vs ...string) predicate.Tome
- func Not(p predicate.Tome) predicate.Tome
- func Or(predicates ...predicate.Tome) predicate.Tome
- func ParamDefs(v string) predicate.Tome
- func ParamDefsContains(v string) predicate.Tome
- func ParamDefsContainsFold(v string) predicate.Tome
- func ParamDefsEQ(v string) predicate.Tome
- func ParamDefsEqualFold(v string) predicate.Tome
- func ParamDefsGT(v string) predicate.Tome
- func ParamDefsGTE(v string) predicate.Tome
- func ParamDefsHasPrefix(v string) predicate.Tome
- func ParamDefsHasSuffix(v string) predicate.Tome
- func ParamDefsIn(vs ...string) predicate.Tome
- func ParamDefsIsNil() predicate.Tome
- func ParamDefsLT(v string) predicate.Tome
- func ParamDefsLTE(v string) predicate.Tome
- func ParamDefsNEQ(v string) predicate.Tome
- func ParamDefsNotIn(vs ...string) predicate.Tome
- func ParamDefsNotNil() predicate.Tome
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByEldritch(opts ...sql.OrderTermOption) OrderOption
- func ByFiles(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByFilesCount(opts ...sql.OrderTermOption) OrderOption
- func ByHash(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLastModifiedAt(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByParamDefs(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the tome type in the database. Label = "tome" // 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" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldParamDefs holds the string denoting the param_defs field in the database. FieldParamDefs = "param_defs" // FieldHash holds the string denoting the hash field in the database. FieldHash = "hash" // FieldEldritch holds the string denoting the eldritch field in the database. FieldEldritch = "eldritch" // EdgeFiles holds the string denoting the files edge name in mutations. EdgeFiles = "files" // Table holds the table name of the tome in the database. Table = "tomes" // FilesTable is the table that holds the files relation/edge. FilesTable = "files" // FilesInverseTable is the table name for the File entity. // It exists in this package in order to avoid circular dependency with the "file" package. FilesInverseTable = "files" // FilesColumn is the table column denoting the files relation/edge. FilesColumn = "tome_files" )
Variables ¶
var ( Hooks [1]ent.Hook // 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 // HashValidator is a validator for the "hash" field. It is called by the builders before save. HashValidator func(string) error )
Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:
import _ "realm.pub/tavern/internal/ent/runtime"
var Columns = []string{ FieldID, FieldCreatedAt, FieldLastModifiedAt, FieldName, FieldDescription, FieldParamDefs, FieldHash, FieldEldritch, }
Columns holds all SQL columns for tome 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 Eldritch ¶
Eldritch applies equality check predicate on the "eldritch" field. It's identical to EldritchEQ.
func EldritchContains ¶
EldritchContains applies the Contains predicate on the "eldritch" field.
func EldritchContainsFold ¶
EldritchContainsFold applies the ContainsFold predicate on the "eldritch" field.
func EldritchEQ ¶
EldritchEQ applies the EQ predicate on the "eldritch" field.
func EldritchEqualFold ¶
EldritchEqualFold applies the EqualFold predicate on the "eldritch" field.
func EldritchGT ¶
EldritchGT applies the GT predicate on the "eldritch" field.
func EldritchGTE ¶
EldritchGTE applies the GTE predicate on the "eldritch" field.
func EldritchHasPrefix ¶
EldritchHasPrefix applies the HasPrefix predicate on the "eldritch" field.
func EldritchHasSuffix ¶
EldritchHasSuffix applies the HasSuffix predicate on the "eldritch" field.
func EldritchIn ¶
EldritchIn applies the In predicate on the "eldritch" field.
func EldritchLT ¶
EldritchLT applies the LT predicate on the "eldritch" field.
func EldritchLTE ¶
EldritchLTE applies the LTE predicate on the "eldritch" field.
func EldritchNEQ ¶
EldritchNEQ applies the NEQ predicate on the "eldritch" field.
func EldritchNotIn ¶
EldritchNotIn applies the NotIn predicate on the "eldritch" field.
func HasFilesWith ¶
HasFilesWith applies the HasEdge predicate on the "files" edge with a given conditions (other predicates).
func HashContains ¶
HashContains applies the Contains predicate on the "hash" field.
func HashContainsFold ¶
HashContainsFold applies the ContainsFold predicate on the "hash" field.
func HashEqualFold ¶
HashEqualFold applies the EqualFold predicate on the "hash" field.
func HashHasPrefix ¶
HashHasPrefix applies the HasPrefix predicate on the "hash" field.
func HashHasSuffix ¶
HashHasSuffix applies the HasSuffix predicate on the "hash" field.
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 ParamDefs ¶
ParamDefs applies equality check predicate on the "param_defs" field. It's identical to ParamDefsEQ.
func ParamDefsContains ¶
ParamDefsContains applies the Contains predicate on the "param_defs" field.
func ParamDefsContainsFold ¶
ParamDefsContainsFold applies the ContainsFold predicate on the "param_defs" field.
func ParamDefsEQ ¶
ParamDefsEQ applies the EQ predicate on the "param_defs" field.
func ParamDefsEqualFold ¶
ParamDefsEqualFold applies the EqualFold predicate on the "param_defs" field.
func ParamDefsGT ¶
ParamDefsGT applies the GT predicate on the "param_defs" field.
func ParamDefsGTE ¶
ParamDefsGTE applies the GTE predicate on the "param_defs" field.
func ParamDefsHasPrefix ¶
ParamDefsHasPrefix applies the HasPrefix predicate on the "param_defs" field.
func ParamDefsHasSuffix ¶
ParamDefsHasSuffix applies the HasSuffix predicate on the "param_defs" field.
func ParamDefsIn ¶
ParamDefsIn applies the In predicate on the "param_defs" field.
func ParamDefsIsNil ¶
ParamDefsIsNil applies the IsNil predicate on the "param_defs" field.
func ParamDefsLT ¶
ParamDefsLT applies the LT predicate on the "param_defs" field.
func ParamDefsLTE ¶
ParamDefsLTE applies the LTE predicate on the "param_defs" field.
func ParamDefsNEQ ¶
ParamDefsNEQ applies the NEQ predicate on the "param_defs" field.
func ParamDefsNotIn ¶
ParamDefsNotIn applies the NotIn predicate on the "param_defs" field.
func ParamDefsNotNil ¶
ParamDefsNotNil applies the NotNil predicate on the "param_defs" 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 Tome queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDescription ¶
func ByDescription(opts ...sql.OrderTermOption) OrderOption
ByDescription orders the results by the description field.
func ByEldritch ¶
func ByEldritch(opts ...sql.OrderTermOption) OrderOption
ByEldritch orders the results by the eldritch field.
func ByFiles ¶
func ByFiles(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByFiles orders the results by files terms.
func ByFilesCount ¶
func ByFilesCount(opts ...sql.OrderTermOption) OrderOption
ByFilesCount orders the results by files count.
func ByHash ¶
func ByHash(opts ...sql.OrderTermOption) OrderOption
ByHash orders the results by the hash 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 ByParamDefs ¶
func ByParamDefs(opts ...sql.OrderTermOption) OrderOption
ByParamDefs orders the results by the param_defs field.