Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.ConsoleResource) predicate.ConsoleResource
- func CreatedAt(v time.Time) predicate.ConsoleResource
- func CreatedAtEQ(v time.Time) predicate.ConsoleResource
- func CreatedAtGT(v time.Time) predicate.ConsoleResource
- func CreatedAtGTE(v time.Time) predicate.ConsoleResource
- func CreatedAtIn(vs ...time.Time) predicate.ConsoleResource
- func CreatedAtLT(v time.Time) predicate.ConsoleResource
- func CreatedAtLTE(v time.Time) predicate.ConsoleResource
- func CreatedAtNEQ(v time.Time) predicate.ConsoleResource
- func CreatedAtNotIn(vs ...time.Time) predicate.ConsoleResource
- func HasUser() predicate.ConsoleResource
- func HasUserWith(preds ...predicate.User) predicate.ConsoleResource
- func HasWorkspace() predicate.ConsoleResource
- func HasWorkspaceWith(preds ...predicate.RevenueWorkspace) predicate.ConsoleResource
- func ID(id uuid.UUID) predicate.ConsoleResource
- func IDEQ(id uuid.UUID) predicate.ConsoleResource
- func IDGT(id uuid.UUID) predicate.ConsoleResource
- func IDGTE(id uuid.UUID) predicate.ConsoleResource
- func IDIn(ids ...uuid.UUID) predicate.ConsoleResource
- func IDLT(id uuid.UUID) predicate.ConsoleResource
- func IDLTE(id uuid.UUID) predicate.ConsoleResource
- func IDNEQ(id uuid.UUID) predicate.ConsoleResource
- func IDNotIn(ids ...uuid.UUID) predicate.ConsoleResource
- func Kind(v string) predicate.ConsoleResource
- func KindContains(v string) predicate.ConsoleResource
- func KindContainsFold(v string) predicate.ConsoleResource
- func KindEQ(v string) predicate.ConsoleResource
- func KindEqualFold(v string) predicate.ConsoleResource
- func KindGT(v string) predicate.ConsoleResource
- func KindGTE(v string) predicate.ConsoleResource
- func KindHasPrefix(v string) predicate.ConsoleResource
- func KindHasSuffix(v string) predicate.ConsoleResource
- func KindIn(vs ...string) predicate.ConsoleResource
- func KindLT(v string) predicate.ConsoleResource
- func KindLTE(v string) predicate.ConsoleResource
- func KindNEQ(v string) predicate.ConsoleResource
- func KindNotIn(vs ...string) predicate.ConsoleResource
- func Name(v string) predicate.ConsoleResource
- func NameContains(v string) predicate.ConsoleResource
- func NameContainsFold(v string) predicate.ConsoleResource
- func NameEQ(v string) predicate.ConsoleResource
- func NameEqualFold(v string) predicate.ConsoleResource
- func NameGT(v string) predicate.ConsoleResource
- func NameGTE(v string) predicate.ConsoleResource
- func NameHasPrefix(v string) predicate.ConsoleResource
- func NameHasSuffix(v string) predicate.ConsoleResource
- func NameIn(vs ...string) predicate.ConsoleResource
- func NameIsNil() predicate.ConsoleResource
- func NameKey(v string) predicate.ConsoleResource
- func NameKeyContains(v string) predicate.ConsoleResource
- func NameKeyContainsFold(v string) predicate.ConsoleResource
- func NameKeyEQ(v string) predicate.ConsoleResource
- func NameKeyEqualFold(v string) predicate.ConsoleResource
- func NameKeyGT(v string) predicate.ConsoleResource
- func NameKeyGTE(v string) predicate.ConsoleResource
- func NameKeyHasPrefix(v string) predicate.ConsoleResource
- func NameKeyHasSuffix(v string) predicate.ConsoleResource
- func NameKeyIn(vs ...string) predicate.ConsoleResource
- func NameKeyIsNil() predicate.ConsoleResource
- func NameKeyLT(v string) predicate.ConsoleResource
- func NameKeyLTE(v string) predicate.ConsoleResource
- func NameKeyNEQ(v string) predicate.ConsoleResource
- func NameKeyNotIn(vs ...string) predicate.ConsoleResource
- func NameKeyNotNil() predicate.ConsoleResource
- func NameLT(v string) predicate.ConsoleResource
- func NameLTE(v string) predicate.ConsoleResource
- func NameNEQ(v string) predicate.ConsoleResource
- func NameNotIn(vs ...string) predicate.ConsoleResource
- func NameNotNil() predicate.ConsoleResource
- func Not(p predicate.ConsoleResource) predicate.ConsoleResource
- func NoteID(v string) predicate.ConsoleResource
- func NoteIDContains(v string) predicate.ConsoleResource
- func NoteIDContainsFold(v string) predicate.ConsoleResource
- func NoteIDEQ(v string) predicate.ConsoleResource
- func NoteIDEqualFold(v string) predicate.ConsoleResource
- func NoteIDGT(v string) predicate.ConsoleResource
- func NoteIDGTE(v string) predicate.ConsoleResource
- func NoteIDHasPrefix(v string) predicate.ConsoleResource
- func NoteIDHasSuffix(v string) predicate.ConsoleResource
- func NoteIDIn(vs ...string) predicate.ConsoleResource
- func NoteIDIsNil() predicate.ConsoleResource
- func NoteIDLT(v string) predicate.ConsoleResource
- func NoteIDLTE(v string) predicate.ConsoleResource
- func NoteIDNEQ(v string) predicate.ConsoleResource
- func NoteIDNotIn(vs ...string) predicate.ConsoleResource
- func NoteIDNotNil() predicate.ConsoleResource
- func Or(predicates ...predicate.ConsoleResource) predicate.ConsoleResource
- func PayloadJSON(v string) predicate.ConsoleResource
- func PayloadJSONContains(v string) predicate.ConsoleResource
- func PayloadJSONContainsFold(v string) predicate.ConsoleResource
- func PayloadJSONEQ(v string) predicate.ConsoleResource
- func PayloadJSONEqualFold(v string) predicate.ConsoleResource
- func PayloadJSONGT(v string) predicate.ConsoleResource
- func PayloadJSONGTE(v string) predicate.ConsoleResource
- func PayloadJSONHasPrefix(v string) predicate.ConsoleResource
- func PayloadJSONHasSuffix(v string) predicate.ConsoleResource
- func PayloadJSONIn(vs ...string) predicate.ConsoleResource
- func PayloadJSONLT(v string) predicate.ConsoleResource
- func PayloadJSONLTE(v string) predicate.ConsoleResource
- func PayloadJSONNEQ(v string) predicate.ConsoleResource
- func PayloadJSONNotIn(vs ...string) predicate.ConsoleResource
- func SortOrder(v int) predicate.ConsoleResource
- func SortOrderEQ(v int) predicate.ConsoleResource
- func SortOrderGT(v int) predicate.ConsoleResource
- func SortOrderGTE(v int) predicate.ConsoleResource
- func SortOrderIn(vs ...int) predicate.ConsoleResource
- func SortOrderLT(v int) predicate.ConsoleResource
- func SortOrderLTE(v int) predicate.ConsoleResource
- func SortOrderNEQ(v int) predicate.ConsoleResource
- func SortOrderNotIn(vs ...int) predicate.ConsoleResource
- func UpdatedAt(v time.Time) predicate.ConsoleResource
- func UpdatedAtEQ(v time.Time) predicate.ConsoleResource
- func UpdatedAtGT(v time.Time) predicate.ConsoleResource
- func UpdatedAtGTE(v time.Time) predicate.ConsoleResource
- func UpdatedAtIn(vs ...time.Time) predicate.ConsoleResource
- func UpdatedAtLT(v time.Time) predicate.ConsoleResource
- func UpdatedAtLTE(v time.Time) predicate.ConsoleResource
- func UpdatedAtNEQ(v time.Time) predicate.ConsoleResource
- func UpdatedAtNotIn(vs ...time.Time) predicate.ConsoleResource
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByKind(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByNameKey(opts ...sql.OrderTermOption) OrderOption
- func ByNoteID(opts ...sql.OrderTermOption) OrderOption
- func ByPayloadJSON(opts ...sql.OrderTermOption) OrderOption
- func BySortOrder(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByWorkspaceField(field string, opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the consoleresource type in the database. Label = "console_resource" // 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" // FieldKind holds the string denoting the kind field in the database. FieldKind = "kind" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldNameKey holds the string denoting the name_key field in the database. FieldNameKey = "name_key" // FieldNoteID holds the string denoting the note_id field in the database. FieldNoteID = "note_id" // FieldPayloadJSON holds the string denoting the payload_json field in the database. FieldPayloadJSON = "payload_json" // FieldSortOrder holds the string denoting the sort_order field in the database. FieldSortOrder = "sort_order" // EdgeWorkspace holds the string denoting the workspace edge name in mutations. EdgeWorkspace = "workspace" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // Table holds the table name of the consoleresource in the database. Table = "console_resources" // WorkspaceTable is the table that holds the workspace relation/edge. WorkspaceTable = "console_resources" // WorkspaceInverseTable is the table name for the RevenueWorkspace entity. // It exists in this package in order to avoid circular dependency with the "revenueworkspace" package. WorkspaceInverseTable = "revenue_workspaces" // WorkspaceColumn is the table column denoting the workspace relation/edge. WorkspaceColumn = "revenue_workspace_id" // UserTable is the table that holds the user relation/edge. UserTable = "console_resources" // UserInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UserInverseTable = "users" // UserColumn is the table column denoting the user relation/edge. UserColumn = "user_console_resources" )
Variables ¶
var ( Hooks [1]ent.Hook Policy ent.Policy // 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 // KindValidator is a validator for the "kind" field. It is called by the builders before save. KindValidator func(string) error // PayloadJSONValidator is a validator for the "payload_json" field. It is called by the builders before save. PayloadJSONValidator func(string) error // DefaultSortOrder holds the default value on creation for the "sort_order" field. DefaultSortOrder int // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:
import _ "github.com/Oppulence-Engineering/rowboat/apps/rowboat-api/ent/runtime"
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldKind, FieldName, FieldNameKey, FieldNoteID, FieldPayloadJSON, FieldSortOrder, }
Columns holds all SQL columns for consoleresource fields.
var ForeignKeys = []string{
"revenue_workspace_id",
"user_console_resources",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "console_resources" table and are not defined as standalone fields in the schema.
Functions ¶
func And ¶
func And(predicates ...predicate.ConsoleResource) predicate.ConsoleResource
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.ConsoleResource
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.ConsoleResource
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.ConsoleResource
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.ConsoleResource
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.ConsoleResource
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.ConsoleResource
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.ConsoleResource
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.ConsoleResource
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.ConsoleResource
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func HasUser ¶
func HasUser() predicate.ConsoleResource
HasUser applies the HasEdge predicate on the "user" edge.
func HasUserWith ¶
func HasUserWith(preds ...predicate.User) predicate.ConsoleResource
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func HasWorkspace ¶
func HasWorkspace() predicate.ConsoleResource
HasWorkspace applies the HasEdge predicate on the "workspace" edge.
func HasWorkspaceWith ¶
func HasWorkspaceWith(preds ...predicate.RevenueWorkspace) predicate.ConsoleResource
HasWorkspaceWith applies the HasEdge predicate on the "workspace" edge with a given conditions (other predicates).
func ID ¶
func ID(id uuid.UUID) predicate.ConsoleResource
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.ConsoleResource
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.ConsoleResource
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.ConsoleResource
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.ConsoleResource
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.ConsoleResource
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.ConsoleResource
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.ConsoleResource
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.ConsoleResource
IDNotIn applies the NotIn predicate on the ID field.
func Kind ¶
func Kind(v string) predicate.ConsoleResource
Kind applies equality check predicate on the "kind" field. It's identical to KindEQ.
func KindContains ¶
func KindContains(v string) predicate.ConsoleResource
KindContains applies the Contains predicate on the "kind" field.
func KindContainsFold ¶
func KindContainsFold(v string) predicate.ConsoleResource
KindContainsFold applies the ContainsFold predicate on the "kind" field.
func KindEQ ¶
func KindEQ(v string) predicate.ConsoleResource
KindEQ applies the EQ predicate on the "kind" field.
func KindEqualFold ¶
func KindEqualFold(v string) predicate.ConsoleResource
KindEqualFold applies the EqualFold predicate on the "kind" field.
func KindGT ¶
func KindGT(v string) predicate.ConsoleResource
KindGT applies the GT predicate on the "kind" field.
func KindGTE ¶
func KindGTE(v string) predicate.ConsoleResource
KindGTE applies the GTE predicate on the "kind" field.
func KindHasPrefix ¶
func KindHasPrefix(v string) predicate.ConsoleResource
KindHasPrefix applies the HasPrefix predicate on the "kind" field.
func KindHasSuffix ¶
func KindHasSuffix(v string) predicate.ConsoleResource
KindHasSuffix applies the HasSuffix predicate on the "kind" field.
func KindIn ¶
func KindIn(vs ...string) predicate.ConsoleResource
KindIn applies the In predicate on the "kind" field.
func KindLT ¶
func KindLT(v string) predicate.ConsoleResource
KindLT applies the LT predicate on the "kind" field.
func KindLTE ¶
func KindLTE(v string) predicate.ConsoleResource
KindLTE applies the LTE predicate on the "kind" field.
func KindNEQ ¶
func KindNEQ(v string) predicate.ConsoleResource
KindNEQ applies the NEQ predicate on the "kind" field.
func KindNotIn ¶
func KindNotIn(vs ...string) predicate.ConsoleResource
KindNotIn applies the NotIn predicate on the "kind" field.
func Name ¶
func Name(v string) predicate.ConsoleResource
Name applies equality check predicate on the "name" field. It's identical to NameEQ.
func NameContains ¶
func NameContains(v string) predicate.ConsoleResource
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
func NameContainsFold(v string) predicate.ConsoleResource
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEQ ¶
func NameEQ(v string) predicate.ConsoleResource
NameEQ applies the EQ predicate on the "name" field.
func NameEqualFold ¶
func NameEqualFold(v string) predicate.ConsoleResource
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameGT ¶
func NameGT(v string) predicate.ConsoleResource
NameGT applies the GT predicate on the "name" field.
func NameGTE ¶
func NameGTE(v string) predicate.ConsoleResource
NameGTE applies the GTE predicate on the "name" field.
func NameHasPrefix ¶
func NameHasPrefix(v string) predicate.ConsoleResource
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
func NameHasSuffix(v string) predicate.ConsoleResource
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameIn ¶
func NameIn(vs ...string) predicate.ConsoleResource
NameIn applies the In predicate on the "name" field.
func NameIsNil ¶
func NameIsNil() predicate.ConsoleResource
NameIsNil applies the IsNil predicate on the "name" field.
func NameKey ¶
func NameKey(v string) predicate.ConsoleResource
NameKey applies equality check predicate on the "name_key" field. It's identical to NameKeyEQ.
func NameKeyContains ¶
func NameKeyContains(v string) predicate.ConsoleResource
NameKeyContains applies the Contains predicate on the "name_key" field.
func NameKeyContainsFold ¶
func NameKeyContainsFold(v string) predicate.ConsoleResource
NameKeyContainsFold applies the ContainsFold predicate on the "name_key" field.
func NameKeyEQ ¶
func NameKeyEQ(v string) predicate.ConsoleResource
NameKeyEQ applies the EQ predicate on the "name_key" field.
func NameKeyEqualFold ¶
func NameKeyEqualFold(v string) predicate.ConsoleResource
NameKeyEqualFold applies the EqualFold predicate on the "name_key" field.
func NameKeyGT ¶
func NameKeyGT(v string) predicate.ConsoleResource
NameKeyGT applies the GT predicate on the "name_key" field.
func NameKeyGTE ¶
func NameKeyGTE(v string) predicate.ConsoleResource
NameKeyGTE applies the GTE predicate on the "name_key" field.
func NameKeyHasPrefix ¶
func NameKeyHasPrefix(v string) predicate.ConsoleResource
NameKeyHasPrefix applies the HasPrefix predicate on the "name_key" field.
func NameKeyHasSuffix ¶
func NameKeyHasSuffix(v string) predicate.ConsoleResource
NameKeyHasSuffix applies the HasSuffix predicate on the "name_key" field.
func NameKeyIn ¶
func NameKeyIn(vs ...string) predicate.ConsoleResource
NameKeyIn applies the In predicate on the "name_key" field.
func NameKeyIsNil ¶
func NameKeyIsNil() predicate.ConsoleResource
NameKeyIsNil applies the IsNil predicate on the "name_key" field.
func NameKeyLT ¶
func NameKeyLT(v string) predicate.ConsoleResource
NameKeyLT applies the LT predicate on the "name_key" field.
func NameKeyLTE ¶
func NameKeyLTE(v string) predicate.ConsoleResource
NameKeyLTE applies the LTE predicate on the "name_key" field.
func NameKeyNEQ ¶
func NameKeyNEQ(v string) predicate.ConsoleResource
NameKeyNEQ applies the NEQ predicate on the "name_key" field.
func NameKeyNotIn ¶
func NameKeyNotIn(vs ...string) predicate.ConsoleResource
NameKeyNotIn applies the NotIn predicate on the "name_key" field.
func NameKeyNotNil ¶
func NameKeyNotNil() predicate.ConsoleResource
NameKeyNotNil applies the NotNil predicate on the "name_key" field.
func NameLT ¶
func NameLT(v string) predicate.ConsoleResource
NameLT applies the LT predicate on the "name" field.
func NameLTE ¶
func NameLTE(v string) predicate.ConsoleResource
NameLTE applies the LTE predicate on the "name" field.
func NameNEQ ¶
func NameNEQ(v string) predicate.ConsoleResource
NameNEQ applies the NEQ predicate on the "name" field.
func NameNotIn ¶
func NameNotIn(vs ...string) predicate.ConsoleResource
NameNotIn applies the NotIn predicate on the "name" field.
func NameNotNil ¶
func NameNotNil() predicate.ConsoleResource
NameNotNil applies the NotNil predicate on the "name" field.
func Not ¶
func Not(p predicate.ConsoleResource) predicate.ConsoleResource
Not applies the not operator on the given predicate.
func NoteID ¶
func NoteID(v string) predicate.ConsoleResource
NoteID applies equality check predicate on the "note_id" field. It's identical to NoteIDEQ.
func NoteIDContains ¶
func NoteIDContains(v string) predicate.ConsoleResource
NoteIDContains applies the Contains predicate on the "note_id" field.
func NoteIDContainsFold ¶
func NoteIDContainsFold(v string) predicate.ConsoleResource
NoteIDContainsFold applies the ContainsFold predicate on the "note_id" field.
func NoteIDEQ ¶
func NoteIDEQ(v string) predicate.ConsoleResource
NoteIDEQ applies the EQ predicate on the "note_id" field.
func NoteIDEqualFold ¶
func NoteIDEqualFold(v string) predicate.ConsoleResource
NoteIDEqualFold applies the EqualFold predicate on the "note_id" field.
func NoteIDGT ¶
func NoteIDGT(v string) predicate.ConsoleResource
NoteIDGT applies the GT predicate on the "note_id" field.
func NoteIDGTE ¶
func NoteIDGTE(v string) predicate.ConsoleResource
NoteIDGTE applies the GTE predicate on the "note_id" field.
func NoteIDHasPrefix ¶
func NoteIDHasPrefix(v string) predicate.ConsoleResource
NoteIDHasPrefix applies the HasPrefix predicate on the "note_id" field.
func NoteIDHasSuffix ¶
func NoteIDHasSuffix(v string) predicate.ConsoleResource
NoteIDHasSuffix applies the HasSuffix predicate on the "note_id" field.
func NoteIDIn ¶
func NoteIDIn(vs ...string) predicate.ConsoleResource
NoteIDIn applies the In predicate on the "note_id" field.
func NoteIDIsNil ¶
func NoteIDIsNil() predicate.ConsoleResource
NoteIDIsNil applies the IsNil predicate on the "note_id" field.
func NoteIDLT ¶
func NoteIDLT(v string) predicate.ConsoleResource
NoteIDLT applies the LT predicate on the "note_id" field.
func NoteIDLTE ¶
func NoteIDLTE(v string) predicate.ConsoleResource
NoteIDLTE applies the LTE predicate on the "note_id" field.
func NoteIDNEQ ¶
func NoteIDNEQ(v string) predicate.ConsoleResource
NoteIDNEQ applies the NEQ predicate on the "note_id" field.
func NoteIDNotIn ¶
func NoteIDNotIn(vs ...string) predicate.ConsoleResource
NoteIDNotIn applies the NotIn predicate on the "note_id" field.
func NoteIDNotNil ¶
func NoteIDNotNil() predicate.ConsoleResource
NoteIDNotNil applies the NotNil predicate on the "note_id" field.
func Or ¶
func Or(predicates ...predicate.ConsoleResource) predicate.ConsoleResource
Or groups predicates with the OR operator between them.
func PayloadJSON ¶
func PayloadJSON(v string) predicate.ConsoleResource
PayloadJSON applies equality check predicate on the "payload_json" field. It's identical to PayloadJSONEQ.
func PayloadJSONContains ¶
func PayloadJSONContains(v string) predicate.ConsoleResource
PayloadJSONContains applies the Contains predicate on the "payload_json" field.
func PayloadJSONContainsFold ¶
func PayloadJSONContainsFold(v string) predicate.ConsoleResource
PayloadJSONContainsFold applies the ContainsFold predicate on the "payload_json" field.
func PayloadJSONEQ ¶
func PayloadJSONEQ(v string) predicate.ConsoleResource
PayloadJSONEQ applies the EQ predicate on the "payload_json" field.
func PayloadJSONEqualFold ¶
func PayloadJSONEqualFold(v string) predicate.ConsoleResource
PayloadJSONEqualFold applies the EqualFold predicate on the "payload_json" field.
func PayloadJSONGT ¶
func PayloadJSONGT(v string) predicate.ConsoleResource
PayloadJSONGT applies the GT predicate on the "payload_json" field.
func PayloadJSONGTE ¶
func PayloadJSONGTE(v string) predicate.ConsoleResource
PayloadJSONGTE applies the GTE predicate on the "payload_json" field.
func PayloadJSONHasPrefix ¶
func PayloadJSONHasPrefix(v string) predicate.ConsoleResource
PayloadJSONHasPrefix applies the HasPrefix predicate on the "payload_json" field.
func PayloadJSONHasSuffix ¶
func PayloadJSONHasSuffix(v string) predicate.ConsoleResource
PayloadJSONHasSuffix applies the HasSuffix predicate on the "payload_json" field.
func PayloadJSONIn ¶
func PayloadJSONIn(vs ...string) predicate.ConsoleResource
PayloadJSONIn applies the In predicate on the "payload_json" field.
func PayloadJSONLT ¶
func PayloadJSONLT(v string) predicate.ConsoleResource
PayloadJSONLT applies the LT predicate on the "payload_json" field.
func PayloadJSONLTE ¶
func PayloadJSONLTE(v string) predicate.ConsoleResource
PayloadJSONLTE applies the LTE predicate on the "payload_json" field.
func PayloadJSONNEQ ¶
func PayloadJSONNEQ(v string) predicate.ConsoleResource
PayloadJSONNEQ applies the NEQ predicate on the "payload_json" field.
func PayloadJSONNotIn ¶
func PayloadJSONNotIn(vs ...string) predicate.ConsoleResource
PayloadJSONNotIn applies the NotIn predicate on the "payload_json" field.
func SortOrder ¶
func SortOrder(v int) predicate.ConsoleResource
SortOrder applies equality check predicate on the "sort_order" field. It's identical to SortOrderEQ.
func SortOrderEQ ¶
func SortOrderEQ(v int) predicate.ConsoleResource
SortOrderEQ applies the EQ predicate on the "sort_order" field.
func SortOrderGT ¶
func SortOrderGT(v int) predicate.ConsoleResource
SortOrderGT applies the GT predicate on the "sort_order" field.
func SortOrderGTE ¶
func SortOrderGTE(v int) predicate.ConsoleResource
SortOrderGTE applies the GTE predicate on the "sort_order" field.
func SortOrderIn ¶
func SortOrderIn(vs ...int) predicate.ConsoleResource
SortOrderIn applies the In predicate on the "sort_order" field.
func SortOrderLT ¶
func SortOrderLT(v int) predicate.ConsoleResource
SortOrderLT applies the LT predicate on the "sort_order" field.
func SortOrderLTE ¶
func SortOrderLTE(v int) predicate.ConsoleResource
SortOrderLTE applies the LTE predicate on the "sort_order" field.
func SortOrderNEQ ¶
func SortOrderNEQ(v int) predicate.ConsoleResource
SortOrderNEQ applies the NEQ predicate on the "sort_order" field.
func SortOrderNotIn ¶
func SortOrderNotIn(vs ...int) predicate.ConsoleResource
SortOrderNotIn applies the NotIn predicate on the "sort_order" field.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.ConsoleResource
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.ConsoleResource
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.ConsoleResource
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.ConsoleResource
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.ConsoleResource
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.ConsoleResource
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.ConsoleResource
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.ConsoleResource
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.ConsoleResource
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).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the ConsoleResource 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 ByKind ¶
func ByKind(opts ...sql.OrderTermOption) OrderOption
ByKind orders the results by the kind field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByNameKey ¶
func ByNameKey(opts ...sql.OrderTermOption) OrderOption
ByNameKey orders the results by the name_key field.
func ByNoteID ¶
func ByNoteID(opts ...sql.OrderTermOption) OrderOption
ByNoteID orders the results by the note_id field.
func ByPayloadJSON ¶
func ByPayloadJSON(opts ...sql.OrderTermOption) OrderOption
ByPayloadJSON orders the results by the payload_json field.
func BySortOrder ¶
func BySortOrder(opts ...sql.OrderTermOption) OrderOption
BySortOrder orders the results by the sort_order field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByUserField ¶
func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
ByUserField orders the results by user field.
func ByWorkspaceField ¶
func ByWorkspaceField(field string, opts ...sql.OrderTermOption) OrderOption
ByWorkspaceField orders the results by workspace field.