Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.File) predicate.File
- func Ext(v string) predicate.File
- func ExtContains(v string) predicate.File
- func ExtContainsFold(v string) predicate.File
- func ExtEQ(v string) predicate.File
- func ExtEqualFold(v string) predicate.File
- func ExtGT(v string) predicate.File
- func ExtGTE(v string) predicate.File
- func ExtHasPrefix(v string) predicate.File
- func ExtHasSuffix(v string) predicate.File
- func ExtIn(vs ...string) predicate.File
- func ExtLT(v string) predicate.File
- func ExtLTE(v string) predicate.File
- func ExtNEQ(v string) predicate.File
- func ExtNotIn(vs ...string) predicate.File
- func ID(id int) predicate.File
- func IDEQ(id int) predicate.File
- func IDGT(id int) predicate.File
- func IDGTE(id int) predicate.File
- func IDIn(ids ...int) predicate.File
- func IDLT(id int) predicate.File
- func IDLTE(id int) predicate.File
- func IDNEQ(id int) predicate.File
- func IDNotIn(ids ...int) 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 Payload(v []byte) predicate.File
- func PayloadEQ(v []byte) predicate.File
- func PayloadGT(v []byte) predicate.File
- func PayloadGTE(v []byte) predicate.File
- func PayloadIn(vs ...[]byte) predicate.File
- func PayloadLT(v []byte) predicate.File
- func PayloadLTE(v []byte) predicate.File
- func PayloadNEQ(v []byte) predicate.File
- func PayloadNotIn(vs ...[]byte) predicate.File
- func Size(v int) predicate.File
- func SizeEQ(v int) predicate.File
- func SizeGT(v int) predicate.File
- func SizeGTE(v int) predicate.File
- func SizeIn(vs ...int) predicate.File
- func SizeLT(v int) predicate.File
- func SizeLTE(v int) predicate.File
- func SizeNEQ(v int) predicate.File
- func SizeNotIn(vs ...int) 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 UUID(v uuid.UUID) predicate.File
- func UUIDEQ(v uuid.UUID) predicate.File
- func UUIDGT(v uuid.UUID) predicate.File
- func UUIDGTE(v uuid.UUID) predicate.File
- func UUIDIn(vs ...uuid.UUID) predicate.File
- func UUIDLT(v uuid.UUID) predicate.File
- func UUIDLTE(v uuid.UUID) predicate.File
- func UUIDNEQ(v uuid.UUID) predicate.File
- func UUIDNotIn(vs ...uuid.UUID) 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" // FieldUUID holds the string denoting the uuid field in the database. FieldUUID = "uuid" // 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" // FieldExt holds the string denoting the ext field in the database. FieldExt = "ext" // FieldSize holds the string denoting the size field in the database. FieldSize = "size" // FieldPayload holds the string denoting the payload field in the database. FieldPayload = "payload" // Table holds the table name of the file in the database. Table = "files" )
Variables ¶
var Columns = []string{ FieldID, FieldUUID, FieldName, FieldType, FieldExt, FieldSize, FieldPayload, }
Columns holds all SQL columns for file fields.
var ForeignKeys = []string{
"alert_files",
"incident_files",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "files" table and are not defined as standalone fields in the schema.
Functions ¶
func ExtContains ¶
ExtContains applies the Contains predicate on the "Ext" field.
func ExtContainsFold ¶
ExtContainsFold applies the ContainsFold predicate on the "Ext" field.
func ExtEqualFold ¶
ExtEqualFold applies the EqualFold predicate on the "Ext" field.
func ExtHasPrefix ¶
ExtHasPrefix applies the HasPrefix predicate on the "Ext" field.
func ExtHasSuffix ¶
ExtHasSuffix applies the HasSuffix predicate on the "Ext" 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 Payload ¶
Payload applies equality check predicate on the "payload" field. It's identical to PayloadEQ.
func PayloadGTE ¶
PayloadGTE applies the GTE predicate on the "payload" field.
func PayloadLTE ¶
PayloadLTE applies the LTE predicate on the "payload" field.
func PayloadNEQ ¶
PayloadNEQ applies the NEQ predicate on the "payload" field.
func PayloadNotIn ¶
PayloadNotIn applies the NotIn predicate on the "payload" 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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.