package
0.0.1
Repository: https://github.com/kebin6/simple-file-api.git
Documentation: pkg.go.dev

# Functions

And groups predicates with the AND operator between them.
ByCreatedAt orders the results by the created_at field.
ByFileType orders the results by the file_type field.
ByID orders the results by the id field.
ByMd5 orders the results by the md5 field.
ByName orders the results by the name field.
ByPath orders the results by the path field.
BySize orders the results by the size field.
ByStatus orders the results by the status field.
ByTags orders the results by tags terms.
ByTagsCount orders the results by tags count.
ByUpdatedAt orders the results by the updated_at field.
ByUserID orders the results by the user_id field.
CreatedAt applies equality check predicate on the "created_at" field.
CreatedAtEQ applies the EQ predicate on the "created_at" field.
CreatedAtGT applies the GT predicate on the "created_at" field.
CreatedAtGTE applies the GTE predicate on the "created_at" field.
CreatedAtIn applies the In predicate on the "created_at" field.
CreatedAtLT applies the LT predicate on the "created_at" field.
CreatedAtLTE applies the LTE predicate on the "created_at" field.
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
FileType applies equality check predicate on the "file_type" field.
FileTypeEQ applies the EQ predicate on the "file_type" field.
FileTypeGT applies the GT predicate on the "file_type" field.
FileTypeGTE applies the GTE predicate on the "file_type" field.
FileTypeIn applies the In predicate on the "file_type" field.
FileTypeLT applies the LT predicate on the "file_type" field.
FileTypeLTE applies the LTE predicate on the "file_type" field.
FileTypeNEQ applies the NEQ predicate on the "file_type" field.
FileTypeNotIn applies the NotIn predicate on the "file_type" field.
HasTags applies the HasEdge predicate on the "tags" edge.
HasTagsWith applies the HasEdge predicate on the "tags" edge with a given conditions (other predicates).
ID filters vertices based on their ID field.
IDEQ applies the EQ predicate on the ID field.
IDGT applies the GT predicate on the ID field.
IDGTE applies the GTE predicate on the ID field.
IDIn applies the In predicate on the ID field.
IDLT applies the LT predicate on the ID field.
IDLTE applies the LTE predicate on the ID field.
IDNEQ applies the NEQ predicate on the ID field.
IDNotIn applies the NotIn predicate on the ID field.
Md5 applies equality check predicate on the "md5" field.
Md5Contains applies the Contains predicate on the "md5" field.
Md5ContainsFold applies the ContainsFold predicate on the "md5" field.
Md5EQ applies the EQ predicate on the "md5" field.
Md5EqualFold applies the EqualFold predicate on the "md5" field.
Md5GT applies the GT predicate on the "md5" field.
Md5GTE applies the GTE predicate on the "md5" field.
Md5HasPrefix applies the HasPrefix predicate on the "md5" field.
Md5HasSuffix applies the HasSuffix predicate on the "md5" field.
Md5In applies the In predicate on the "md5" field.
Md5LT applies the LT predicate on the "md5" field.
Md5LTE applies the LTE predicate on the "md5" field.
Md5NEQ applies the NEQ predicate on the "md5" field.
Md5NotIn applies the NotIn predicate on the "md5" field.
Name applies equality check predicate on the "name" field.
NameContains applies the Contains predicate on the "name" field.
NameContainsFold applies the ContainsFold predicate on the "name" field.
NameEQ applies the EQ predicate on the "name" field.
NameEqualFold applies the EqualFold predicate on the "name" field.
NameGT applies the GT predicate on the "name" field.
NameGTE applies the GTE predicate on the "name" field.
NameHasPrefix applies the HasPrefix predicate on the "name" field.
NameHasSuffix applies the HasSuffix predicate on the "name" field.
NameIn applies the In predicate on the "name" field.
NameLT applies the LT predicate on the "name" field.
NameLTE applies the LTE predicate on the "name" field.
NameNEQ applies the NEQ predicate on the "name" field.
NameNotIn applies the NotIn predicate on the "name" field.
Not applies the not operator on the given predicate.
Or groups predicates with the OR operator between them.
Path applies equality check predicate on the "path" field.
PathContains applies the Contains predicate on the "path" field.
PathContainsFold applies the ContainsFold predicate on the "path" field.
PathEQ applies the EQ predicate on the "path" field.
PathEqualFold applies the EqualFold predicate on the "path" field.
PathGT applies the GT predicate on the "path" field.
PathGTE applies the GTE predicate on the "path" field.
PathHasPrefix applies the HasPrefix predicate on the "path" field.
PathHasSuffix applies the HasSuffix predicate on the "path" field.
PathIn applies the In predicate on the "path" field.
PathLT applies the LT predicate on the "path" field.
PathLTE applies the LTE predicate on the "path" field.
PathNEQ applies the NEQ predicate on the "path" field.
PathNotIn applies the NotIn predicate on the "path" field.
Size applies equality check predicate on the "size" field.
SizeEQ applies the EQ predicate on the "size" field.
SizeGT applies the GT predicate on the "size" field.
SizeGTE applies the GTE predicate on the "size" field.
SizeIn applies the In predicate on the "size" field.
SizeLT applies the LT predicate on the "size" field.
SizeLTE applies the LTE predicate on the "size" field.
SizeNEQ applies the NEQ predicate on the "size" field.
SizeNotIn applies the NotIn predicate on the "size" field.
Status applies equality check predicate on the "status" field.
StatusEQ applies the EQ predicate on the "status" field.
StatusGT applies the GT predicate on the "status" field.
StatusGTE applies the GTE predicate on the "status" field.
StatusIn applies the In predicate on the "status" field.
StatusIsNil applies the IsNil predicate on the "status" field.
StatusLT applies the LT predicate on the "status" field.
StatusLTE applies the LTE predicate on the "status" field.
StatusNEQ applies the NEQ predicate on the "status" field.
StatusNotIn applies the NotIn predicate on the "status" field.
StatusNotNil applies the NotNil predicate on the "status" field.
UpdatedAt applies equality check predicate on the "updated_at" field.
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
UpdatedAtGT applies the GT predicate on the "updated_at" field.
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
UpdatedAtIn applies the In predicate on the "updated_at" field.
UpdatedAtLT applies the LT predicate on the "updated_at" field.
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
UserID applies equality check predicate on the "user_id" field.
UserIDContains applies the Contains predicate on the "user_id" field.
UserIDContainsFold applies the ContainsFold predicate on the "user_id" field.
UserIDEQ applies the EQ predicate on the "user_id" field.
UserIDEqualFold applies the EqualFold predicate on the "user_id" field.
UserIDGT applies the GT predicate on the "user_id" field.
UserIDGTE applies the GTE predicate on the "user_id" field.
UserIDHasPrefix applies the HasPrefix predicate on the "user_id" field.
UserIDHasSuffix applies the HasSuffix predicate on the "user_id" field.
UserIDIn applies the In predicate on the "user_id" field.
UserIDLT applies the LT predicate on the "user_id" field.
UserIDLTE applies the LTE predicate on the "user_id" field.
UserIDNEQ applies the NEQ predicate on the "user_id" field.
UserIDNotIn applies the NotIn predicate on the "user_id" field.
ValidColumn reports if the column name is valid (part of the table columns).

# Constants

EdgeTags holds the string denoting the tags edge name in mutations.
FieldCreatedAt holds the string denoting the created_at field in the database.
FieldFileType holds the string denoting the file_type field in the database.
FieldID holds the string denoting the id field in the database.
FieldMd5 holds the string denoting the md5 field in the database.
FieldName holds the string denoting the name field in the database.
FieldPath holds the string denoting the path field in the database.
FieldSize holds the string denoting the size field in the database.
FieldStatus holds the string denoting the status field in the database.
FieldUpdatedAt holds the string denoting the updated_at field in the database.
FieldUserID holds the string denoting the user_id field in the database.
Label holds the string label denoting the file type in the database.
Table holds the table name of the file in the database.
TagsInverseTable is the table name for the FileTag entity.
TagsTable is the table that holds the tags relation/edge.

# Variables

Columns holds all SQL columns for file fields.
DefaultCreatedAt holds the default value on creation for the "created_at" field.
DefaultID holds the default value on creation for the "id" field.
DefaultStatus holds the default value on creation for the "status" field.
DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
TagsPrimaryKey and TagsColumn2 are the table columns denoting the primary key for the tags relation (M2M).
UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.

# Type aliases

OrderOption defines the ordering options for the File queries.