Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Document) predicate.Document
- func Content(v string) predicate.Document
- func ContentContains(v string) predicate.Document
- func ContentContainsFold(v string) predicate.Document
- func ContentEQ(v string) predicate.Document
- func ContentEqualFold(v string) predicate.Document
- func ContentGT(v string) predicate.Document
- func ContentGTE(v string) predicate.Document
- func ContentHasPrefix(v string) predicate.Document
- func ContentHasSuffix(v string) predicate.Document
- func ContentHash(v string) predicate.Document
- func ContentHashContains(v string) predicate.Document
- func ContentHashContainsFold(v string) predicate.Document
- func ContentHashEQ(v string) predicate.Document
- func ContentHashEqualFold(v string) predicate.Document
- func ContentHashGT(v string) predicate.Document
- func ContentHashGTE(v string) predicate.Document
- func ContentHashHasPrefix(v string) predicate.Document
- func ContentHashHasSuffix(v string) predicate.Document
- func ContentHashIn(vs ...string) predicate.Document
- func ContentHashIsNil() predicate.Document
- func ContentHashLT(v string) predicate.Document
- func ContentHashLTE(v string) predicate.Document
- func ContentHashNEQ(v string) predicate.Document
- func ContentHashNotIn(vs ...string) predicate.Document
- func ContentHashNotNil() predicate.Document
- func ContentIn(vs ...string) predicate.Document
- func ContentIsNil() predicate.Document
- func ContentLT(v string) predicate.Document
- func ContentLTE(v string) predicate.Document
- func ContentNEQ(v string) predicate.Document
- func ContentNotIn(vs ...string) predicate.Document
- func ContentNotNil() predicate.Document
- func CreatedAt(v time.Time) predicate.Document
- func CreatedAtEQ(v time.Time) predicate.Document
- func CreatedAtGT(v time.Time) predicate.Document
- func CreatedAtGTE(v time.Time) predicate.Document
- func CreatedAtIn(vs ...time.Time) predicate.Document
- func CreatedAtLT(v time.Time) predicate.Document
- func CreatedAtLTE(v time.Time) predicate.Document
- func CreatedAtNEQ(v time.Time) predicate.Document
- func CreatedAtNotIn(vs ...time.Time) predicate.Document
- func Description(v string) predicate.Document
- func DescriptionContains(v string) predicate.Document
- func DescriptionContainsFold(v string) predicate.Document
- func DescriptionEQ(v string) predicate.Document
- func DescriptionEqualFold(v string) predicate.Document
- func DescriptionGT(v string) predicate.Document
- func DescriptionGTE(v string) predicate.Document
- func DescriptionHasPrefix(v string) predicate.Document
- func DescriptionHasSuffix(v string) predicate.Document
- func DescriptionIn(vs ...string) predicate.Document
- func DescriptionLT(v string) predicate.Document
- func DescriptionLTE(v string) predicate.Document
- func DescriptionNEQ(v string) predicate.Document
- func DescriptionNotIn(vs ...string) predicate.Document
- func Filename(v string) predicate.Document
- func FilenameContains(v string) predicate.Document
- func FilenameContainsFold(v string) predicate.Document
- func FilenameEQ(v string) predicate.Document
- func FilenameEqualFold(v string) predicate.Document
- func FilenameGT(v string) predicate.Document
- func FilenameGTE(v string) predicate.Document
- func FilenameHasPrefix(v string) predicate.Document
- func FilenameHasSuffix(v string) predicate.Document
- func FilenameIn(vs ...string) predicate.Document
- func FilenameLT(v string) predicate.Document
- func FilenameLTE(v string) predicate.Document
- func FilenameNEQ(v string) predicate.Document
- func FilenameNotIn(vs ...string) predicate.Document
- func FiletypeEQ(v types.Filetype) predicate.Document
- func FiletypeIn(vs ...types.Filetype) predicate.Document
- func FiletypeNEQ(v types.Filetype) predicate.Document
- func FiletypeNotIn(vs ...types.Filetype) predicate.Document
- func FiletypeValidator(f types.Filetype) error
- func HasSearch() predicate.Document
- func HasSearchWith(preds ...predicate.DocumentSearch) predicate.Document
- func HasUser() predicate.Document
- func HasUserWith(preds ...predicate.User) predicate.Document
- func ID(id int) predicate.Document
- func IDEQ(id int) predicate.Document
- func IDGT(id int) predicate.Document
- func IDGTE(id int) predicate.Document
- func IDIn(ids ...int) predicate.Document
- func IDLT(id int) predicate.Document
- func IDLTE(id int) predicate.Document
- func IDNEQ(id int) predicate.Document
- func IDNotIn(ids ...int) predicate.Document
- func Not(p predicate.Document) predicate.Document
- func Or(predicates ...predicate.Document) predicate.Document
- func Title(v string) predicate.Document
- func TitleContains(v string) predicate.Document
- func TitleContainsFold(v string) predicate.Document
- func TitleEQ(v string) predicate.Document
- func TitleEqualFold(v string) predicate.Document
- func TitleGT(v string) predicate.Document
- func TitleGTE(v string) predicate.Document
- func TitleHasPrefix(v string) predicate.Document
- func TitleHasSuffix(v string) predicate.Document
- func TitleIn(vs ...string) predicate.Document
- func TitleLT(v string) predicate.Document
- func TitleLTE(v string) predicate.Document
- func TitleNEQ(v string) predicate.Document
- func TitleNotIn(vs ...string) predicate.Document
- func UUID(v uuid.UUID) predicate.Document
- func UUIDEQ(v uuid.UUID) predicate.Document
- func UUIDGT(v uuid.UUID) predicate.Document
- func UUIDGTE(v uuid.UUID) predicate.Document
- func UUIDIn(vs ...uuid.UUID) predicate.Document
- func UUIDLT(v uuid.UUID) predicate.Document
- func UUIDLTE(v uuid.UUID) predicate.Document
- func UUIDNEQ(v uuid.UUID) predicate.Document
- func UUIDNotIn(vs ...uuid.UUID) predicate.Document
- func UpdatedAt(v time.Time) predicate.Document
- func UpdatedAtEQ(v time.Time) predicate.Document
- func UpdatedAtGT(v time.Time) predicate.Document
- func UpdatedAtGTE(v time.Time) predicate.Document
- func UpdatedAtIn(vs ...time.Time) predicate.Document
- func UpdatedAtLT(v time.Time) predicate.Document
- func UpdatedAtLTE(v time.Time) predicate.Document
- func UpdatedAtNEQ(v time.Time) predicate.Document
- func UpdatedAtNotIn(vs ...time.Time) predicate.Document
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the document type in the database. Label = "document" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldUUID holds the string denoting the uuid field in the database. FieldUUID = "uuid" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldTitle holds the string denoting the title field in the database. FieldTitle = "title" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldFilename holds the string denoting the filename field in the database. FieldFilename = "filename" // FieldFiletype holds the string denoting the filetype field in the database. FieldFiletype = "filetype" // FieldContent holds the string denoting the content field in the database. FieldContent = "content" // FieldContentHash holds the string denoting the content_hash field in the database. FieldContentHash = "content_hash" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // EdgeSearch holds the string denoting the search edge name in mutations. EdgeSearch = "search" // Table holds the table name of the document in the database. Table = "documents" // UserTable is the table that holds the user relation/edge. UserTable = "documents" // UserInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UserInverseTable = "users" // UserColumn is the table column denoting the user relation/edge. UserColumn = "user_documents" // SearchTable is the table that holds the search relation/edge. SearchTable = "document_searches" // SearchInverseTable is the table name for the DocumentSearch entity. // It exists in this package in order to avoid circular dependency with the "documentsearch" package. SearchInverseTable = "document_searches" // SearchColumn is the table column denoting the search relation/edge. SearchColumn = "document_id" )
Variables ¶
var ( Hooks [1]ent.Hook // DefaultUUID holds the default value on creation for the "uuid" field. DefaultUUID func() uuid.UUID // 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 )
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 _ "github.com/frisbm/graduateplace/pkg/store/ent/runtime"
var Columns = []string{ FieldID, FieldUUID, FieldCreatedAt, FieldUpdatedAt, FieldTitle, FieldDescription, FieldFilename, FieldFiletype, FieldContent, FieldContentHash, }
Columns holds all SQL columns for document fields.
var ForeignKeys = []string{
"user_documents",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "documents" table and are not defined as standalone fields in the schema.
Functions ¶
func Content ¶
Content applies equality check predicate on the "content" field. It's identical to ContentEQ.
func ContentContains ¶
ContentContains applies the Contains predicate on the "content" field.
func ContentContainsFold ¶
ContentContainsFold applies the ContainsFold predicate on the "content" field.
func ContentEqualFold ¶
ContentEqualFold applies the EqualFold predicate on the "content" field.
func ContentGTE ¶
ContentGTE applies the GTE predicate on the "content" field.
func ContentHasPrefix ¶
ContentHasPrefix applies the HasPrefix predicate on the "content" field.
func ContentHasSuffix ¶
ContentHasSuffix applies the HasSuffix predicate on the "content" field.
func ContentHash ¶
ContentHash applies equality check predicate on the "content_hash" field. It's identical to ContentHashEQ.
func ContentHashContains ¶
ContentHashContains applies the Contains predicate on the "content_hash" field.
func ContentHashContainsFold ¶
ContentHashContainsFold applies the ContainsFold predicate on the "content_hash" field.
func ContentHashEQ ¶
ContentHashEQ applies the EQ predicate on the "content_hash" field.
func ContentHashEqualFold ¶
ContentHashEqualFold applies the EqualFold predicate on the "content_hash" field.
func ContentHashGT ¶
ContentHashGT applies the GT predicate on the "content_hash" field.
func ContentHashGTE ¶
ContentHashGTE applies the GTE predicate on the "content_hash" field.
func ContentHashHasPrefix ¶
ContentHashHasPrefix applies the HasPrefix predicate on the "content_hash" field.
func ContentHashHasSuffix ¶
ContentHashHasSuffix applies the HasSuffix predicate on the "content_hash" field.
func ContentHashIn ¶
ContentHashIn applies the In predicate on the "content_hash" field.
func ContentHashIsNil ¶
ContentHashIsNil applies the IsNil predicate on the "content_hash" field.
func ContentHashLT ¶
ContentHashLT applies the LT predicate on the "content_hash" field.
func ContentHashLTE ¶
ContentHashLTE applies the LTE predicate on the "content_hash" field.
func ContentHashNEQ ¶
ContentHashNEQ applies the NEQ predicate on the "content_hash" field.
func ContentHashNotIn ¶
ContentHashNotIn applies the NotIn predicate on the "content_hash" field.
func ContentHashNotNil ¶
ContentHashNotNil applies the NotNil predicate on the "content_hash" field.
func ContentIsNil ¶
ContentIsNil applies the IsNil predicate on the "content" field.
func ContentLTE ¶
ContentLTE applies the LTE predicate on the "content" field.
func ContentNEQ ¶
ContentNEQ applies the NEQ predicate on the "content" field.
func ContentNotIn ¶
ContentNotIn applies the NotIn predicate on the "content" field.
func ContentNotNil ¶
ContentNotNil applies the NotNil predicate on the "content" field.
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 Filename ¶
Filename applies equality check predicate on the "filename" field. It's identical to FilenameEQ.
func FilenameContains ¶
FilenameContains applies the Contains predicate on the "filename" field.
func FilenameContainsFold ¶
FilenameContainsFold applies the ContainsFold predicate on the "filename" field.
func FilenameEQ ¶
FilenameEQ applies the EQ predicate on the "filename" field.
func FilenameEqualFold ¶
FilenameEqualFold applies the EqualFold predicate on the "filename" field.
func FilenameGT ¶
FilenameGT applies the GT predicate on the "filename" field.
func FilenameGTE ¶
FilenameGTE applies the GTE predicate on the "filename" field.
func FilenameHasPrefix ¶
FilenameHasPrefix applies the HasPrefix predicate on the "filename" field.
func FilenameHasSuffix ¶
FilenameHasSuffix applies the HasSuffix predicate on the "filename" field.
func FilenameIn ¶
FilenameIn applies the In predicate on the "filename" field.
func FilenameLT ¶
FilenameLT applies the LT predicate on the "filename" field.
func FilenameLTE ¶
FilenameLTE applies the LTE predicate on the "filename" field.
func FilenameNEQ ¶
FilenameNEQ applies the NEQ predicate on the "filename" field.
func FilenameNotIn ¶
FilenameNotIn applies the NotIn predicate on the "filename" field.
func FiletypeEQ ¶
FiletypeEQ applies the EQ predicate on the "filetype" field.
func FiletypeIn ¶
FiletypeIn applies the In predicate on the "filetype" field.
func FiletypeNEQ ¶
FiletypeNEQ applies the NEQ predicate on the "filetype" field.
func FiletypeNotIn ¶
FiletypeNotIn applies the NotIn predicate on the "filetype" field.
func FiletypeValidator ¶
FiletypeValidator is a validator for the "filetype" field enum values. It is called by the builders before save.
func HasSearchWith ¶
func HasSearchWith(preds ...predicate.DocumentSearch) predicate.Document
HasSearchWith applies the HasEdge predicate on the "search" edge with a given conditions (other predicates).
func HasUserWith ¶
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func Title ¶
Title applies equality check predicate on the "title" field. It's identical to TitleEQ.
func TitleContains ¶
TitleContains applies the Contains predicate on the "title" field.
func TitleContainsFold ¶
TitleContainsFold applies the ContainsFold predicate on the "title" field.
func TitleEqualFold ¶
TitleEqualFold applies the EqualFold predicate on the "title" field.
func TitleHasPrefix ¶
TitleHasPrefix applies the HasPrefix predicate on the "title" field.
func TitleHasSuffix ¶
TitleHasSuffix applies the HasSuffix predicate on the "title" field.
func TitleNotIn ¶
TitleNotIn applies the NotIn predicate on the "title" 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.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.