Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Platform) predicate.Platform
- func CreatedAt(v time.Time) predicate.Platform
- func CreatedAtEQ(v time.Time) predicate.Platform
- func CreatedAtGT(v time.Time) predicate.Platform
- func CreatedAtGTE(v time.Time) predicate.Platform
- func CreatedAtIn(vs ...time.Time) predicate.Platform
- func CreatedAtLT(v time.Time) predicate.Platform
- func CreatedAtLTE(v time.Time) predicate.Platform
- func CreatedAtNEQ(v time.Time) predicate.Platform
- func CreatedAtNotIn(vs ...time.Time) predicate.Platform
- func CreatedByID(v uuid.UUID) predicate.Platform
- func CreatedByIDEQ(v uuid.UUID) predicate.Platform
- func CreatedByIDIn(vs ...uuid.UUID) predicate.Platform
- func CreatedByIDNEQ(v uuid.UUID) predicate.Platform
- func CreatedByIDNotIn(vs ...uuid.UUID) predicate.Platform
- func Cue(v []byte) predicate.Platform
- func CueDefinition(v string) predicate.Platform
- func CueDefinitionContains(v string) predicate.Platform
- func CueDefinitionContainsFold(v string) predicate.Platform
- func CueDefinitionEQ(v string) predicate.Platform
- func CueDefinitionEqualFold(v string) predicate.Platform
- func CueDefinitionGT(v string) predicate.Platform
- func CueDefinitionGTE(v string) predicate.Platform
- func CueDefinitionHasPrefix(v string) predicate.Platform
- func CueDefinitionHasSuffix(v string) predicate.Platform
- func CueDefinitionIn(vs ...string) predicate.Platform
- func CueDefinitionIsNil() predicate.Platform
- func CueDefinitionLT(v string) predicate.Platform
- func CueDefinitionLTE(v string) predicate.Platform
- func CueDefinitionNEQ(v string) predicate.Platform
- func CueDefinitionNotIn(vs ...string) predicate.Platform
- func CueDefinitionNotNil() predicate.Platform
- func CueEQ(v []byte) predicate.Platform
- func CueGT(v []byte) predicate.Platform
- func CueGTE(v []byte) predicate.Platform
- func CueIn(vs ...[]byte) predicate.Platform
- func CueIsNil() predicate.Platform
- func CueLT(v []byte) predicate.Platform
- func CueLTE(v []byte) predicate.Platform
- func CueNEQ(v []byte) predicate.Platform
- func CueNotIn(vs ...[]byte) predicate.Platform
- func CueNotNil() predicate.Platform
- func DisplayName(v string) predicate.Platform
- func DisplayNameContains(v string) predicate.Platform
- func DisplayNameContainsFold(v string) predicate.Platform
- func DisplayNameEQ(v string) predicate.Platform
- func DisplayNameEqualFold(v string) predicate.Platform
- func DisplayNameGT(v string) predicate.Platform
- func DisplayNameGTE(v string) predicate.Platform
- func DisplayNameHasPrefix(v string) predicate.Platform
- func DisplayNameHasSuffix(v string) predicate.Platform
- func DisplayNameIn(vs ...string) predicate.Platform
- func DisplayNameLT(v string) predicate.Platform
- func DisplayNameLTE(v string) predicate.Platform
- func DisplayNameNEQ(v string) predicate.Platform
- func DisplayNameNotIn(vs ...string) predicate.Platform
- func FormIsNil() predicate.Platform
- func FormNotNil() predicate.Platform
- func HasCreator() predicate.Platform
- func HasCreatorWith(preds ...predicate.User) predicate.Platform
- func HasEditor() predicate.Platform
- func HasEditorWith(preds ...predicate.User) predicate.Platform
- func HasOrganization() predicate.Platform
- func HasOrganizationWith(preds ...predicate.Organization) predicate.Platform
- func ID(id uuid.UUID) predicate.Platform
- func IDEQ(id uuid.UUID) predicate.Platform
- func IDGT(id uuid.UUID) predicate.Platform
- func IDGTE(id uuid.UUID) predicate.Platform
- func IDIn(ids ...uuid.UUID) predicate.Platform
- func IDLT(id uuid.UUID) predicate.Platform
- func IDLTE(id uuid.UUID) predicate.Platform
- func IDNEQ(id uuid.UUID) predicate.Platform
- func IDNotIn(ids ...uuid.UUID) predicate.Platform
- func ModelIsNil() predicate.Platform
- func ModelNotNil() predicate.Platform
- func Name(v string) predicate.Platform
- func NameContains(v string) predicate.Platform
- func NameContainsFold(v string) predicate.Platform
- func NameEQ(v string) predicate.Platform
- func NameEqualFold(v string) predicate.Platform
- func NameGT(v string) predicate.Platform
- func NameGTE(v string) predicate.Platform
- func NameHasPrefix(v string) predicate.Platform
- func NameHasSuffix(v string) predicate.Platform
- func NameIn(vs ...string) predicate.Platform
- func NameLT(v string) predicate.Platform
- func NameLTE(v string) predicate.Platform
- func NameNEQ(v string) predicate.Platform
- func NameNotIn(vs ...string) predicate.Platform
- func Not(p predicate.Platform) predicate.Platform
- func Or(predicates ...predicate.Platform) predicate.Platform
- func OrgID(v uuid.UUID) predicate.Platform
- func OrgIDEQ(v uuid.UUID) predicate.Platform
- func OrgIDIn(vs ...uuid.UUID) predicate.Platform
- func OrgIDNEQ(v uuid.UUID) predicate.Platform
- func OrgIDNotIn(vs ...uuid.UUID) predicate.Platform
- func UpdatedAt(v time.Time) predicate.Platform
- func UpdatedAtEQ(v time.Time) predicate.Platform
- func UpdatedAtGT(v time.Time) predicate.Platform
- func UpdatedAtGTE(v time.Time) predicate.Platform
- func UpdatedAtIn(vs ...time.Time) predicate.Platform
- func UpdatedAtLT(v time.Time) predicate.Platform
- func UpdatedAtLTE(v time.Time) predicate.Platform
- func UpdatedAtNEQ(v time.Time) predicate.Platform
- func UpdatedAtNotIn(vs ...time.Time) predicate.Platform
- func UpdatedByID(v uuid.UUID) predicate.Platform
- func UpdatedByIDEQ(v uuid.UUID) predicate.Platform
- func UpdatedByIDIn(vs ...uuid.UUID) predicate.Platform
- func UpdatedByIDNEQ(v uuid.UUID) predicate.Platform
- func UpdatedByIDNotIn(vs ...uuid.UUID) predicate.Platform
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedByID(opts ...sql.OrderTermOption) OrderOption
- func ByCreatorField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByCueDefinition(opts ...sql.OrderTermOption) OrderOption
- func ByDisplayName(opts ...sql.OrderTermOption) OrderOption
- func ByEditorField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByOrgID(opts ...sql.OrderTermOption) OrderOption
- func ByOrganizationField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedByID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the platform type in the database. Label = "platform" // 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" // FieldCreatedByID holds the string denoting the created_by_id field in the database. FieldCreatedByID = "created_by_id" // FieldUpdatedByID holds the string denoting the updated_by_id field in the database. FieldUpdatedByID = "updated_by_id" // FieldOrgID holds the string denoting the org_id field in the database. FieldOrgID = "org_id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldDisplayName holds the string denoting the display_name field in the database. FieldDisplayName = "display_name" // FieldForm holds the string denoting the form field in the database. FieldForm = "form" // FieldModel holds the string denoting the model field in the database. FieldModel = "model" // FieldCue holds the string denoting the cue field in the database. FieldCue = "cue" // FieldCueDefinition holds the string denoting the cue_definition field in the database. FieldCueDefinition = "cue_definition" // EdgeCreator holds the string denoting the creator edge name in mutations. EdgeCreator = "creator" // EdgeEditor holds the string denoting the editor edge name in mutations. EdgeEditor = "editor" // EdgeOrganization holds the string denoting the organization edge name in mutations. EdgeOrganization = "organization" // Table holds the table name of the platform in the database. Table = "platforms" // CreatorTable is the table that holds the creator relation/edge. CreatorTable = "platforms" // CreatorInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. CreatorInverseTable = "users" // CreatorColumn is the table column denoting the creator relation/edge. CreatorColumn = "created_by_id" // EditorTable is the table that holds the editor relation/edge. EditorTable = "platforms" // EditorInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. EditorInverseTable = "users" // EditorColumn is the table column denoting the editor relation/edge. EditorColumn = "updated_by_id" // OrganizationTable is the table that holds the organization relation/edge. OrganizationTable = "platforms" // OrganizationInverseTable is the table name for the Organization entity. // It exists in this package in order to avoid circular dependency with the "organization" package. OrganizationInverseTable = "organizations" // OrganizationColumn is the table column denoting the organization relation/edge. OrganizationColumn = "org_id" )
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 // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldCreatedByID, FieldUpdatedByID, FieldOrgID, FieldName, FieldDisplayName, FieldForm, FieldModel, FieldCue, FieldCueDefinition, }
Columns holds all SQL columns for platform fields.
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedByID ¶
CreatedByID applies equality check predicate on the "created_by_id" field. It's identical to CreatedByIDEQ.
func CreatedByIDEQ ¶
CreatedByIDEQ applies the EQ predicate on the "created_by_id" field.
func CreatedByIDIn ¶
CreatedByIDIn applies the In predicate on the "created_by_id" field.
func CreatedByIDNEQ ¶
CreatedByIDNEQ applies the NEQ predicate on the "created_by_id" field.
func CreatedByIDNotIn ¶
CreatedByIDNotIn applies the NotIn predicate on the "created_by_id" field.
func CueDefinition ¶
CueDefinition applies equality check predicate on the "cue_definition" field. It's identical to CueDefinitionEQ.
func CueDefinitionContains ¶
CueDefinitionContains applies the Contains predicate on the "cue_definition" field.
func CueDefinitionContainsFold ¶
CueDefinitionContainsFold applies the ContainsFold predicate on the "cue_definition" field.
func CueDefinitionEQ ¶
CueDefinitionEQ applies the EQ predicate on the "cue_definition" field.
func CueDefinitionEqualFold ¶
CueDefinitionEqualFold applies the EqualFold predicate on the "cue_definition" field.
func CueDefinitionGT ¶
CueDefinitionGT applies the GT predicate on the "cue_definition" field.
func CueDefinitionGTE ¶
CueDefinitionGTE applies the GTE predicate on the "cue_definition" field.
func CueDefinitionHasPrefix ¶
CueDefinitionHasPrefix applies the HasPrefix predicate on the "cue_definition" field.
func CueDefinitionHasSuffix ¶
CueDefinitionHasSuffix applies the HasSuffix predicate on the "cue_definition" field.
func CueDefinitionIn ¶
CueDefinitionIn applies the In predicate on the "cue_definition" field.
func CueDefinitionIsNil ¶
CueDefinitionIsNil applies the IsNil predicate on the "cue_definition" field.
func CueDefinitionLT ¶
CueDefinitionLT applies the LT predicate on the "cue_definition" field.
func CueDefinitionLTE ¶
CueDefinitionLTE applies the LTE predicate on the "cue_definition" field.
func CueDefinitionNEQ ¶
CueDefinitionNEQ applies the NEQ predicate on the "cue_definition" field.
func CueDefinitionNotIn ¶
CueDefinitionNotIn applies the NotIn predicate on the "cue_definition" field.
func CueDefinitionNotNil ¶
CueDefinitionNotNil applies the NotNil predicate on the "cue_definition" field.
func DisplayName ¶
DisplayName applies equality check predicate on the "display_name" field. It's identical to DisplayNameEQ.
func DisplayNameContains ¶
DisplayNameContains applies the Contains predicate on the "display_name" field.
func DisplayNameContainsFold ¶
DisplayNameContainsFold applies the ContainsFold predicate on the "display_name" field.
func DisplayNameEQ ¶
DisplayNameEQ applies the EQ predicate on the "display_name" field.
func DisplayNameEqualFold ¶
DisplayNameEqualFold applies the EqualFold predicate on the "display_name" field.
func DisplayNameGT ¶
DisplayNameGT applies the GT predicate on the "display_name" field.
func DisplayNameGTE ¶
DisplayNameGTE applies the GTE predicate on the "display_name" field.
func DisplayNameHasPrefix ¶
DisplayNameHasPrefix applies the HasPrefix predicate on the "display_name" field.
func DisplayNameHasSuffix ¶
DisplayNameHasSuffix applies the HasSuffix predicate on the "display_name" field.
func DisplayNameIn ¶
DisplayNameIn applies the In predicate on the "display_name" field.
func DisplayNameLT ¶
DisplayNameLT applies the LT predicate on the "display_name" field.
func DisplayNameLTE ¶
DisplayNameLTE applies the LTE predicate on the "display_name" field.
func DisplayNameNEQ ¶
DisplayNameNEQ applies the NEQ predicate on the "display_name" field.
func DisplayNameNotIn ¶
DisplayNameNotIn applies the NotIn predicate on the "display_name" field.
func FormNotNil ¶
FormNotNil applies the NotNil predicate on the "form" field.
func HasCreator ¶
HasCreator applies the HasEdge predicate on the "creator" edge.
func HasCreatorWith ¶
HasCreatorWith applies the HasEdge predicate on the "creator" edge with a given conditions (other predicates).
func HasEditorWith ¶
HasEditorWith applies the HasEdge predicate on the "editor" edge with a given conditions (other predicates).
func HasOrganization ¶
HasOrganization applies the HasEdge predicate on the "organization" edge.
func HasOrganizationWith ¶
func HasOrganizationWith(preds ...predicate.Organization) predicate.Platform
HasOrganizationWith applies the HasEdge predicate on the "organization" edge with a given conditions (other predicates).
func ModelIsNil ¶
ModelIsNil applies the IsNil predicate on the "model" field.
func ModelNotNil ¶
ModelNotNil applies the NotNil predicate on the "model" 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 OrgID ¶
OrgID applies equality check predicate on the "org_id" field. It's identical to OrgIDEQ.
func OrgIDNotIn ¶
OrgIDNotIn applies the NotIn predicate on the "org_id" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedByID ¶
UpdatedByID applies equality check predicate on the "updated_by_id" field. It's identical to UpdatedByIDEQ.
func UpdatedByIDEQ ¶
UpdatedByIDEQ applies the EQ predicate on the "updated_by_id" field.
func UpdatedByIDIn ¶
UpdatedByIDIn applies the In predicate on the "updated_by_id" field.
func UpdatedByIDNEQ ¶
UpdatedByIDNEQ applies the NEQ predicate on the "updated_by_id" field.
func UpdatedByIDNotIn ¶
UpdatedByIDNotIn applies the NotIn predicate on the "updated_by_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 Platform queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByCreatedByID ¶
func ByCreatedByID(opts ...sql.OrderTermOption) OrderOption
ByCreatedByID orders the results by the created_by_id field.
func ByCreatorField ¶
func ByCreatorField(field string, opts ...sql.OrderTermOption) OrderOption
ByCreatorField orders the results by creator field.
func ByCueDefinition ¶
func ByCueDefinition(opts ...sql.OrderTermOption) OrderOption
ByCueDefinition orders the results by the cue_definition field.
func ByDisplayName ¶
func ByDisplayName(opts ...sql.OrderTermOption) OrderOption
ByDisplayName orders the results by the display_name field.
func ByEditorField ¶
func ByEditorField(field string, opts ...sql.OrderTermOption) OrderOption
ByEditorField orders the results by editor field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByOrgID ¶
func ByOrgID(opts ...sql.OrderTermOption) OrderOption
ByOrgID orders the results by the org_id field.
func ByOrganizationField ¶
func ByOrganizationField(field string, opts ...sql.OrderTermOption) OrderOption
ByOrganizationField orders the results by organization field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByUpdatedByID ¶
func ByUpdatedByID(opts ...sql.OrderTermOption) OrderOption
ByUpdatedByID orders the results by the updated_by_id field.