Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Storage) predicate.Storage
- func Cid(v string) predicate.Storage
- func CidContains(v string) predicate.Storage
- func CidContainsFold(v string) predicate.Storage
- func CidEQ(v string) predicate.Storage
- func CidEqualFold(v string) predicate.Storage
- func CidGT(v string) predicate.Storage
- func CidGTE(v string) predicate.Storage
- func CidHasPrefix(v string) predicate.Storage
- func CidHasSuffix(v string) predicate.Storage
- func CidIn(vs ...string) predicate.Storage
- func CidLT(v string) predicate.Storage
- func CidLTE(v string) predicate.Storage
- func CidNEQ(v string) predicate.Storage
- func CidNotIn(vs ...string) predicate.Storage
- func ID(id uuid.UUID) predicate.Storage
- func IDEQ(id uuid.UUID) predicate.Storage
- func IDGT(id uuid.UUID) predicate.Storage
- func IDGTE(id uuid.UUID) predicate.Storage
- func IDIn(ids ...uuid.UUID) predicate.Storage
- func IDLT(id uuid.UUID) predicate.Storage
- func IDLTE(id uuid.UUID) predicate.Storage
- func IDNEQ(id uuid.UUID) predicate.Storage
- func IDNotIn(ids ...uuid.UUID) predicate.Storage
- func LastModify(v time.Time) predicate.Storage
- func LastModifyEQ(v time.Time) predicate.Storage
- func LastModifyGT(v time.Time) predicate.Storage
- func LastModifyGTE(v time.Time) predicate.Storage
- func LastModifyIn(vs ...time.Time) predicate.Storage
- func LastModifyLT(v time.Time) predicate.Storage
- func LastModifyLTE(v time.Time) predicate.Storage
- func LastModifyNEQ(v time.Time) predicate.Storage
- func LastModifyNotIn(vs ...time.Time) predicate.Storage
- func Name(v string) predicate.Storage
- func NameContains(v string) predicate.Storage
- func NameContainsFold(v string) predicate.Storage
- func NameEQ(v string) predicate.Storage
- func NameEqualFold(v string) predicate.Storage
- func NameGT(v string) predicate.Storage
- func NameGTE(v string) predicate.Storage
- func NameHasPrefix(v string) predicate.Storage
- func NameHasSuffix(v string) predicate.Storage
- func NameIn(vs ...string) predicate.Storage
- func NameLT(v string) predicate.Storage
- func NameLTE(v string) predicate.Storage
- func NameNEQ(v string) predicate.Storage
- func NameNotIn(vs ...string) predicate.Storage
- func Not(p predicate.Storage) predicate.Storage
- func Or(predicates ...predicate.Storage) predicate.Storage
- func Owner(v string) predicate.Storage
- func OwnerContains(v string) predicate.Storage
- func OwnerContainsFold(v string) predicate.Storage
- func OwnerEQ(v string) predicate.Storage
- func OwnerEqualFold(v string) predicate.Storage
- func OwnerGT(v string) predicate.Storage
- func OwnerGTE(v string) predicate.Storage
- func OwnerHasPrefix(v string) predicate.Storage
- func OwnerHasSuffix(v string) predicate.Storage
- func OwnerIn(vs ...string) predicate.Storage
- func OwnerLT(v string) predicate.Storage
- func OwnerLTE(v string) predicate.Storage
- func OwnerNEQ(v string) predicate.Storage
- func OwnerNotIn(vs ...string) predicate.Storage
- func ParentID(v string) predicate.Storage
- func ParentIDContains(v string) predicate.Storage
- func ParentIDContainsFold(v string) predicate.Storage
- func ParentIDEQ(v string) predicate.Storage
- func ParentIDEqualFold(v string) predicate.Storage
- func ParentIDGT(v string) predicate.Storage
- func ParentIDGTE(v string) predicate.Storage
- func ParentIDHasPrefix(v string) predicate.Storage
- func ParentIDHasSuffix(v string) predicate.Storage
- func ParentIDIn(vs ...string) predicate.Storage
- func ParentIDLT(v string) predicate.Storage
- func ParentIDLTE(v string) predicate.Storage
- func ParentIDNEQ(v string) predicate.Storage
- func ParentIDNotIn(vs ...string) predicate.Storage
- func Size(v int32) predicate.Storage
- func SizeEQ(v int32) predicate.Storage
- func SizeGT(v int32) predicate.Storage
- func SizeGTE(v int32) predicate.Storage
- func SizeIn(vs ...int32) predicate.Storage
- func SizeLT(v int32) predicate.Storage
- func SizeLTE(v int32) predicate.Storage
- func SizeNEQ(v int32) predicate.Storage
- func SizeNotIn(vs ...int32) predicate.Storage
- func Type(v int32) predicate.Storage
- func TypeEQ(v int32) predicate.Storage
- func TypeGT(v int32) predicate.Storage
- func TypeGTE(v int32) predicate.Storage
- func TypeIn(vs ...int32) predicate.Storage
- func TypeLT(v int32) predicate.Storage
- func TypeLTE(v int32) predicate.Storage
- func TypeNEQ(v int32) predicate.Storage
- func TypeNotIn(vs ...int32) predicate.Storage
- func ValidColumn(column string) bool
- type OrderOption
- func ByCid(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLastModify(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByOwner(opts ...sql.OrderTermOption) OrderOption
- func ByParentID(opts ...sql.OrderTermOption) OrderOption
- func BySize(opts ...sql.OrderTermOption) OrderOption
- func ByType(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the storage type in the database. Label = "storage" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldOwner holds the string denoting the owner field in the database. FieldOwner = "owner" // FieldType holds the string denoting the type field in the database. FieldType = "type" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldCid holds the string denoting the cid field in the database. FieldCid = "cid" // FieldSize holds the string denoting the size field in the database. FieldSize = "size" // FieldLastModify holds the string denoting the last_modify field in the database. FieldLastModify = "last_modify" // FieldParentID holds the string denoting the parent_id field in the database. FieldParentID = "parent_id" // Table holds the table name of the storage in the database. Table = "storages" )
Variables ¶
var ( // OwnerValidator is a validator for the "owner" field. It is called by the builders before save. OwnerValidator func(string) error // DefaultType holds the default value on creation for the "type" field. DefaultType int32 // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // CidValidator is a validator for the "cid" field. It is called by the builders before save. CidValidator func(string) error // DefaultLastModify holds the default value on creation for the "last_modify" field. DefaultLastModify func() time.Time // ParentIDValidator is a validator for the "parent_id" field. It is called by the builders before save. ParentIDValidator func(string) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldOwner, FieldType, FieldName, FieldCid, FieldSize, FieldLastModify, FieldParentID, }
Columns holds all SQL columns for storage fields.
Functions ¶
func CidContains ¶
CidContains applies the Contains predicate on the "cid" field.
func CidContainsFold ¶
CidContainsFold applies the ContainsFold predicate on the "cid" field.
func CidEqualFold ¶
CidEqualFold applies the EqualFold predicate on the "cid" field.
func CidHasPrefix ¶
CidHasPrefix applies the HasPrefix predicate on the "cid" field.
func CidHasSuffix ¶
CidHasSuffix applies the HasSuffix predicate on the "cid" field.
func LastModify ¶
LastModify applies equality check predicate on the "last_modify" field. It's identical to LastModifyEQ.
func LastModifyEQ ¶
LastModifyEQ applies the EQ predicate on the "last_modify" field.
func LastModifyGT ¶
LastModifyGT applies the GT predicate on the "last_modify" field.
func LastModifyGTE ¶
LastModifyGTE applies the GTE predicate on the "last_modify" field.
func LastModifyIn ¶
LastModifyIn applies the In predicate on the "last_modify" field.
func LastModifyLT ¶
LastModifyLT applies the LT predicate on the "last_modify" field.
func LastModifyLTE ¶
LastModifyLTE applies the LTE predicate on the "last_modify" field.
func LastModifyNEQ ¶
LastModifyNEQ applies the NEQ predicate on the "last_modify" field.
func LastModifyNotIn ¶
LastModifyNotIn applies the NotIn predicate on the "last_modify" 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 Owner ¶
Owner applies equality check predicate on the "owner" field. It's identical to OwnerEQ.
func OwnerContains ¶
OwnerContains applies the Contains predicate on the "owner" field.
func OwnerContainsFold ¶
OwnerContainsFold applies the ContainsFold predicate on the "owner" field.
func OwnerEqualFold ¶
OwnerEqualFold applies the EqualFold predicate on the "owner" field.
func OwnerHasPrefix ¶
OwnerHasPrefix applies the HasPrefix predicate on the "owner" field.
func OwnerHasSuffix ¶
OwnerHasSuffix applies the HasSuffix predicate on the "owner" field.
func OwnerNotIn ¶
OwnerNotIn applies the NotIn predicate on the "owner" field.
func ParentID ¶
ParentID applies equality check predicate on the "parent_id" field. It's identical to ParentIDEQ.
func ParentIDContains ¶
ParentIDContains applies the Contains predicate on the "parent_id" field.
func ParentIDContainsFold ¶
ParentIDContainsFold applies the ContainsFold predicate on the "parent_id" field.
func ParentIDEQ ¶
ParentIDEQ applies the EQ predicate on the "parent_id" field.
func ParentIDEqualFold ¶
ParentIDEqualFold applies the EqualFold predicate on the "parent_id" field.
func ParentIDGT ¶
ParentIDGT applies the GT predicate on the "parent_id" field.
func ParentIDGTE ¶
ParentIDGTE applies the GTE predicate on the "parent_id" field.
func ParentIDHasPrefix ¶
ParentIDHasPrefix applies the HasPrefix predicate on the "parent_id" field.
func ParentIDHasSuffix ¶
ParentIDHasSuffix applies the HasSuffix predicate on the "parent_id" field.
func ParentIDIn ¶
ParentIDIn applies the In predicate on the "parent_id" field.
func ParentIDLT ¶
ParentIDLT applies the LT predicate on the "parent_id" field.
func ParentIDLTE ¶
ParentIDLTE applies the LTE predicate on the "parent_id" field.
func ParentIDNEQ ¶
ParentIDNEQ applies the NEQ predicate on the "parent_id" field.
func ParentIDNotIn ¶
ParentIDNotIn applies the NotIn predicate on the "parent_id" 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 Storage queries.
func ByCid ¶
func ByCid(opts ...sql.OrderTermOption) OrderOption
ByCid orders the results by the cid field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLastModify ¶
func ByLastModify(opts ...sql.OrderTermOption) OrderOption
ByLastModify orders the results by the last_modify field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByOwner ¶
func ByOwner(opts ...sql.OrderTermOption) OrderOption
ByOwner orders the results by the owner field.
func ByParentID ¶
func ByParentID(opts ...sql.OrderTermOption) OrderOption
ByParentID orders the results by the parent_id field.
func BySize ¶
func BySize(opts ...sql.OrderTermOption) OrderOption
BySize orders the results by the size field.
func ByType ¶
func ByType(opts ...sql.OrderTermOption) OrderOption
ByType orders the results by the type field.