Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.File) predicate.File
- func CreateTime(v time.Time) predicate.File
- func CreateTimeEQ(v time.Time) predicate.File
- func CreateTimeGT(v time.Time) predicate.File
- func CreateTimeGTE(v time.Time) predicate.File
- func CreateTimeIn(vs ...time.Time) predicate.File
- func CreateTimeLT(v time.Time) predicate.File
- func CreateTimeLTE(v time.Time) predicate.File
- func CreateTimeNEQ(v time.Time) predicate.File
- func CreateTimeNotIn(vs ...time.Time) predicate.File
- func ID(id int64) predicate.File
- func IDEQ(id int64) predicate.File
- func IDGT(id int64) predicate.File
- func IDGTE(id int64) predicate.File
- func IDIn(ids ...int64) predicate.File
- func IDLT(id int64) predicate.File
- func IDLTE(id int64) predicate.File
- func IDNEQ(id int64) predicate.File
- func IDNotIn(ids ...int64) predicate.File
- func Md5(v string) predicate.File
- func Md5Contains(v string) predicate.File
- func Md5ContainsFold(v string) predicate.File
- func Md5EQ(v string) predicate.File
- func Md5EqualFold(v string) predicate.File
- func Md5GT(v string) predicate.File
- func Md5GTE(v string) predicate.File
- func Md5HasPrefix(v string) predicate.File
- func Md5HasSuffix(v string) predicate.File
- func Md5In(vs ...string) predicate.File
- func Md5LT(v string) predicate.File
- func Md5LTE(v string) predicate.File
- func Md5NEQ(v string) predicate.File
- func Md5NotIn(vs ...string) predicate.File
- func Name(v string) predicate.File
- func NameContains(v string) predicate.File
- func NameContainsFold(v string) predicate.File
- func NameEQ(v string) predicate.File
- func NameEqualFold(v string) predicate.File
- func NameGT(v string) predicate.File
- func NameGTE(v string) predicate.File
- func NameHasPrefix(v string) predicate.File
- func NameHasSuffix(v string) predicate.File
- func NameIn(vs ...string) predicate.File
- func NameLT(v string) predicate.File
- func NameLTE(v string) predicate.File
- func NameNEQ(v string) predicate.File
- func NameNotIn(vs ...string) predicate.File
- func Not(p predicate.File) predicate.File
- func Or(predicates ...predicate.File) predicate.File
- func Path(v string) predicate.File
- func PathContains(v string) predicate.File
- func PathContainsFold(v string) predicate.File
- func PathEQ(v string) predicate.File
- func PathEqualFold(v string) predicate.File
- func PathGT(v string) predicate.File
- func PathGTE(v string) predicate.File
- func PathHasPrefix(v string) predicate.File
- func PathHasSuffix(v string) predicate.File
- func PathIn(vs ...string) predicate.File
- func PathLT(v string) predicate.File
- func PathLTE(v string) predicate.File
- func PathNEQ(v string) predicate.File
- func PathNotIn(vs ...string) predicate.File
- func Type(v string) predicate.File
- func TypeContains(v string) predicate.File
- func TypeContainsFold(v string) predicate.File
- func TypeEQ(v string) predicate.File
- func TypeEqualFold(v string) predicate.File
- func TypeGT(v string) predicate.File
- func TypeGTE(v string) predicate.File
- func TypeHasPrefix(v string) predicate.File
- func TypeHasSuffix(v string) predicate.File
- func TypeIn(vs ...string) predicate.File
- func TypeLT(v string) predicate.File
- func TypeLTE(v string) predicate.File
- func TypeNEQ(v string) predicate.File
- func TypeNotIn(vs ...string) predicate.File
- func UpdateTime(v time.Time) predicate.File
- func UpdateTimeEQ(v time.Time) predicate.File
- func UpdateTimeGT(v time.Time) predicate.File
- func UpdateTimeGTE(v time.Time) predicate.File
- func UpdateTimeIn(vs ...time.Time) predicate.File
- func UpdateTimeLT(v time.Time) predicate.File
- func UpdateTimeLTE(v time.Time) predicate.File
- func UpdateTimeNEQ(v time.Time) predicate.File
- func UpdateTimeNotIn(vs ...time.Time) predicate.File
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the file type in the database. Label = "file" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreateTime holds the string denoting the create_time field in the database. FieldCreateTime = "create_time" // FieldUpdateTime holds the string denoting the update_time field in the database. FieldUpdateTime = "update_time" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldType holds the string denoting the type field in the database. FieldType = "type" // FieldMd5 holds the string denoting the md5 field in the database. FieldMd5 = "md5" // FieldPath holds the string denoting the path field in the database. FieldPath = "path" // Table holds the table name of the file in the database. Table = "files" )
Variables ¶
var ( // DefaultCreateTime holds the default value on creation for the "create_time" field. DefaultCreateTime func() time.Time // DefaultUpdateTime holds the default value on creation for the "update_time" field. DefaultUpdateTime func() time.Time // UpdateDefaultUpdateTime holds the default value on update for the "update_time" field. UpdateDefaultUpdateTime func() time.Time // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // TypeValidator is a validator for the "type" field. It is called by the builders before save. TypeValidator func(string) error // Md5Validator is a validator for the "md5" field. It is called by the builders before save. Md5Validator func(string) error // PathValidator is a validator for the "path" field. It is called by the builders before save. PathValidator func(string) error // IDValidator is a validator for the "id" field. It is called by the builders before save. IDValidator func(int64) error )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldName, FieldType, FieldMd5, FieldPath, }
Columns holds all SQL columns for file fields.
Functions ¶
func CreateTime ¶
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func Md5Contains ¶
Md5Contains applies the Contains predicate on the "md5" field.
func Md5ContainsFold ¶
Md5ContainsFold applies the ContainsFold predicate on the "md5" field.
func Md5EqualFold ¶
Md5EqualFold applies the EqualFold predicate on the "md5" field.
func Md5HasPrefix ¶
Md5HasPrefix applies the HasPrefix predicate on the "md5" field.
func Md5HasSuffix ¶
Md5HasSuffix applies the HasSuffix predicate on the "md5" 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 PathContains ¶
PathContains applies the Contains predicate on the "path" field.
func PathContainsFold ¶
PathContainsFold applies the ContainsFold predicate on the "path" field.
func PathEqualFold ¶
PathEqualFold applies the EqualFold predicate on the "path" field.
func PathHasPrefix ¶
PathHasPrefix applies the HasPrefix predicate on the "path" field.
func PathHasSuffix ¶
PathHasSuffix applies the HasSuffix predicate on the "path" field.
func TypeContains ¶
TypeContains applies the Contains predicate on the "type" field.
func TypeContainsFold ¶
TypeContainsFold applies the ContainsFold predicate on the "type" field.
func TypeEqualFold ¶
TypeEqualFold applies the EqualFold predicate on the "type" field.
func TypeHasPrefix ¶
TypeHasPrefix applies the HasPrefix predicate on the "type" field.
func TypeHasSuffix ¶
TypeHasSuffix applies the HasSuffix predicate on the "type" field.
func UpdateTime ¶
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.