Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.CustomField) predicate.CustomField
- func CreatedAt(v time.Time) predicate.CustomField
- func CreatedAtEQ(v time.Time) predicate.CustomField
- func CreatedAtGT(v time.Time) predicate.CustomField
- func CreatedAtGTE(v time.Time) predicate.CustomField
- func CreatedAtIn(vs ...time.Time) predicate.CustomField
- func CreatedAtLT(v time.Time) predicate.CustomField
- func CreatedAtLTE(v time.Time) predicate.CustomField
- func CreatedAtNEQ(v time.Time) predicate.CustomField
- func CreatedAtNotIn(vs ...time.Time) predicate.CustomField
- func HasWorkspace() predicate.CustomField
- func HasWorkspaceWith(preds ...predicate.Workspace) predicate.CustomField
- func ID(id int64) predicate.CustomField
- func IDEQ(id int64) predicate.CustomField
- func IDGT(id int64) predicate.CustomField
- func IDGTE(id int64) predicate.CustomField
- func IDIn(ids ...int64) predicate.CustomField
- func IDLT(id int64) predicate.CustomField
- func IDLTE(id int64) predicate.CustomField
- func IDNEQ(id int64) predicate.CustomField
- func IDNotIn(ids ...int64) predicate.CustomField
- func Key(v string) predicate.CustomField
- func KeyContains(v string) predicate.CustomField
- func KeyContainsFold(v string) predicate.CustomField
- func KeyEQ(v string) predicate.CustomField
- func KeyEqualFold(v string) predicate.CustomField
- func KeyGT(v string) predicate.CustomField
- func KeyGTE(v string) predicate.CustomField
- func KeyHasPrefix(v string) predicate.CustomField
- func KeyHasSuffix(v string) predicate.CustomField
- func KeyIn(vs ...string) predicate.CustomField
- func KeyLT(v string) predicate.CustomField
- func KeyLTE(v string) predicate.CustomField
- func KeyNEQ(v string) predicate.CustomField
- func KeyNotIn(vs ...string) predicate.CustomField
- func Name(v string) predicate.CustomField
- func NameContains(v string) predicate.CustomField
- func NameContainsFold(v string) predicate.CustomField
- func NameEQ(v string) predicate.CustomField
- func NameEqualFold(v string) predicate.CustomField
- func NameGT(v string) predicate.CustomField
- func NameGTE(v string) predicate.CustomField
- func NameHasPrefix(v string) predicate.CustomField
- func NameHasSuffix(v string) predicate.CustomField
- func NameIn(vs ...string) predicate.CustomField
- func NameLT(v string) predicate.CustomField
- func NameLTE(v string) predicate.CustomField
- func NameNEQ(v string) predicate.CustomField
- func NameNotIn(vs ...string) predicate.CustomField
- func Not(p predicate.CustomField) predicate.CustomField
- func Or(predicates ...predicate.CustomField) predicate.CustomField
- func TypeEQ(v Type) predicate.CustomField
- func TypeIn(vs ...Type) predicate.CustomField
- func TypeNEQ(v Type) predicate.CustomField
- func TypeNotIn(vs ...Type) predicate.CustomField
- func TypeValidator(_type Type) error
- func UpdatedAt(v time.Time) predicate.CustomField
- func UpdatedAtEQ(v time.Time) predicate.CustomField
- func UpdatedAtGT(v time.Time) predicate.CustomField
- func UpdatedAtGTE(v time.Time) predicate.CustomField
- func UpdatedAtIn(vs ...time.Time) predicate.CustomField
- func UpdatedAtLT(v time.Time) predicate.CustomField
- func UpdatedAtLTE(v time.Time) predicate.CustomField
- func UpdatedAtNEQ(v time.Time) predicate.CustomField
- func UpdatedAtNotIn(vs ...time.Time) predicate.CustomField
- func ValidColumn(column string) bool
- func WorkspaceID(v int64) predicate.CustomField
- func WorkspaceIDEQ(v int64) predicate.CustomField
- func WorkspaceIDIn(vs ...int64) predicate.CustomField
- func WorkspaceIDNEQ(v int64) predicate.CustomField
- func WorkspaceIDNotIn(vs ...int64) predicate.CustomField
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByKey(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByType(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByWorkspaceField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByWorkspaceID(opts ...sql.OrderTermOption) OrderOption
- type Type
Constants ¶
const ( // Label holds the string label denoting the customfield type in the database. Label = "custom_field" // FieldID holds the string denoting the id field in the database. FieldID = "id" // 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" // FieldWorkspaceID holds the string denoting the workspace_id field in the database. FieldWorkspaceID = "workspace_id" // FieldKey holds the string denoting the key field in the database. FieldKey = "key" // 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" // EdgeWorkspace holds the string denoting the workspace edge name in mutations. EdgeWorkspace = "workspace" // Table holds the table name of the customfield in the database. Table = "custom_fields" // WorkspaceTable is the table that holds the workspace relation/edge. WorkspaceTable = "custom_fields" // WorkspaceInverseTable is the table name for the Workspace entity. // It exists in this package in order to avoid circular dependency with the "workspace" package. WorkspaceInverseTable = "workspaces" // WorkspaceColumn is the table column denoting the workspace relation/edge. WorkspaceColumn = "workspace_id" )
const DefaultType = TypeString
TypeString is the default value of the Type enum.
Variables ¶
var ( // 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 // KeyValidator is a validator for the "key" field. It is called by the builders before save. KeyValidator func(string) error // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldWorkspaceID, FieldKey, FieldName, FieldType, }
Columns holds all SQL columns for customfield fields.
Functions ¶
func And ¶
func And(predicates ...predicate.CustomField) predicate.CustomField
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.CustomField
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.CustomField
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.CustomField
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.CustomField
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.CustomField
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.CustomField
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.CustomField
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.CustomField
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.CustomField
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func HasWorkspace ¶
func HasWorkspace() predicate.CustomField
HasWorkspace applies the HasEdge predicate on the "workspace" edge.
func HasWorkspaceWith ¶
func HasWorkspaceWith(preds ...predicate.Workspace) predicate.CustomField
HasWorkspaceWith applies the HasEdge predicate on the "workspace" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id int64) predicate.CustomField
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int64) predicate.CustomField
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int64) predicate.CustomField
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int64) predicate.CustomField
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int64) predicate.CustomField
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int64) predicate.CustomField
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int64) predicate.CustomField
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int64) predicate.CustomField
IDNotIn applies the NotIn predicate on the ID field.
func Key ¶
func Key(v string) predicate.CustomField
Key applies equality check predicate on the "key" field. It's identical to KeyEQ.
func KeyContains ¶
func KeyContains(v string) predicate.CustomField
KeyContains applies the Contains predicate on the "key" field.
func KeyContainsFold ¶
func KeyContainsFold(v string) predicate.CustomField
KeyContainsFold applies the ContainsFold predicate on the "key" field.
func KeyEQ ¶
func KeyEQ(v string) predicate.CustomField
KeyEQ applies the EQ predicate on the "key" field.
func KeyEqualFold ¶
func KeyEqualFold(v string) predicate.CustomField
KeyEqualFold applies the EqualFold predicate on the "key" field.
func KeyGT ¶
func KeyGT(v string) predicate.CustomField
KeyGT applies the GT predicate on the "key" field.
func KeyGTE ¶
func KeyGTE(v string) predicate.CustomField
KeyGTE applies the GTE predicate on the "key" field.
func KeyHasPrefix ¶
func KeyHasPrefix(v string) predicate.CustomField
KeyHasPrefix applies the HasPrefix predicate on the "key" field.
func KeyHasSuffix ¶
func KeyHasSuffix(v string) predicate.CustomField
KeyHasSuffix applies the HasSuffix predicate on the "key" field.
func KeyIn ¶
func KeyIn(vs ...string) predicate.CustomField
KeyIn applies the In predicate on the "key" field.
func KeyLT ¶
func KeyLT(v string) predicate.CustomField
KeyLT applies the LT predicate on the "key" field.
func KeyLTE ¶
func KeyLTE(v string) predicate.CustomField
KeyLTE applies the LTE predicate on the "key" field.
func KeyNEQ ¶
func KeyNEQ(v string) predicate.CustomField
KeyNEQ applies the NEQ predicate on the "key" field.
func KeyNotIn ¶
func KeyNotIn(vs ...string) predicate.CustomField
KeyNotIn applies the NotIn predicate on the "key" field.
func Name ¶
func Name(v string) predicate.CustomField
Name applies equality check predicate on the "name" field. It's identical to NameEQ.
func NameContains ¶
func NameContains(v string) predicate.CustomField
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
func NameContainsFold(v string) predicate.CustomField
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEQ ¶
func NameEQ(v string) predicate.CustomField
NameEQ applies the EQ predicate on the "name" field.
func NameEqualFold ¶
func NameEqualFold(v string) predicate.CustomField
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameGT ¶
func NameGT(v string) predicate.CustomField
NameGT applies the GT predicate on the "name" field.
func NameGTE ¶
func NameGTE(v string) predicate.CustomField
NameGTE applies the GTE predicate on the "name" field.
func NameHasPrefix ¶
func NameHasPrefix(v string) predicate.CustomField
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
func NameHasSuffix(v string) predicate.CustomField
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameIn ¶
func NameIn(vs ...string) predicate.CustomField
NameIn applies the In predicate on the "name" field.
func NameLT ¶
func NameLT(v string) predicate.CustomField
NameLT applies the LT predicate on the "name" field.
func NameLTE ¶
func NameLTE(v string) predicate.CustomField
NameLTE applies the LTE predicate on the "name" field.
func NameNEQ ¶
func NameNEQ(v string) predicate.CustomField
NameNEQ applies the NEQ predicate on the "name" field.
func NameNotIn ¶
func NameNotIn(vs ...string) predicate.CustomField
NameNotIn applies the NotIn predicate on the "name" field.
func Not ¶
func Not(p predicate.CustomField) predicate.CustomField
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.CustomField) predicate.CustomField
Or groups predicates with the OR operator between them.
func TypeEQ ¶
func TypeEQ(v Type) predicate.CustomField
TypeEQ applies the EQ predicate on the "type" field.
func TypeIn ¶
func TypeIn(vs ...Type) predicate.CustomField
TypeIn applies the In predicate on the "type" field.
func TypeNEQ ¶
func TypeNEQ(v Type) predicate.CustomField
TypeNEQ applies the NEQ predicate on the "type" field.
func TypeNotIn ¶
func TypeNotIn(vs ...Type) predicate.CustomField
TypeNotIn applies the NotIn predicate on the "type" field.
func TypeValidator ¶
TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.CustomField
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.CustomField
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.CustomField
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.CustomField
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.CustomField
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.CustomField
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.CustomField
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.CustomField
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.CustomField
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).
func WorkspaceID ¶
func WorkspaceID(v int64) predicate.CustomField
WorkspaceID applies equality check predicate on the "workspace_id" field. It's identical to WorkspaceIDEQ.
func WorkspaceIDEQ ¶
func WorkspaceIDEQ(v int64) predicate.CustomField
WorkspaceIDEQ applies the EQ predicate on the "workspace_id" field.
func WorkspaceIDIn ¶
func WorkspaceIDIn(vs ...int64) predicate.CustomField
WorkspaceIDIn applies the In predicate on the "workspace_id" field.
func WorkspaceIDNEQ ¶
func WorkspaceIDNEQ(v int64) predicate.CustomField
WorkspaceIDNEQ applies the NEQ predicate on the "workspace_id" field.
func WorkspaceIDNotIn ¶
func WorkspaceIDNotIn(vs ...int64) predicate.CustomField
WorkspaceIDNotIn applies the NotIn predicate on the "workspace_id" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the CustomField queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByKey ¶
func ByKey(opts ...sql.OrderTermOption) OrderOption
ByKey orders the results by the key field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByType ¶
func ByType(opts ...sql.OrderTermOption) OrderOption
ByType orders the results by the type field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByWorkspaceField ¶
func ByWorkspaceField(field string, opts ...sql.OrderTermOption) OrderOption
ByWorkspaceField orders the results by workspace field.
func ByWorkspaceID ¶
func ByWorkspaceID(opts ...sql.OrderTermOption) OrderOption
ByWorkspaceID orders the results by the workspace_id field.