platform

package
v0.86.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 2, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for platform fields.

Functions

func And

func And(predicates ...predicate.Platform) predicate.Platform

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Platform

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Platform

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Platform

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Platform

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Platform

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Platform

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Platform

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Platform

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Platform

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func CreatedByID

func CreatedByID(v uuid.UUID) predicate.Platform

CreatedByID applies equality check predicate on the "created_by_id" field. It's identical to CreatedByIDEQ.

func CreatedByIDEQ

func CreatedByIDEQ(v uuid.UUID) predicate.Platform

CreatedByIDEQ applies the EQ predicate on the "created_by_id" field.

func CreatedByIDIn

func CreatedByIDIn(vs ...uuid.UUID) predicate.Platform

CreatedByIDIn applies the In predicate on the "created_by_id" field.

func CreatedByIDNEQ

func CreatedByIDNEQ(v uuid.UUID) predicate.Platform

CreatedByIDNEQ applies the NEQ predicate on the "created_by_id" field.

func CreatedByIDNotIn

func CreatedByIDNotIn(vs ...uuid.UUID) predicate.Platform

CreatedByIDNotIn applies the NotIn predicate on the "created_by_id" field.

func Cue

func Cue(v []byte) predicate.Platform

Cue applies equality check predicate on the "cue" field. It's identical to CueEQ.

func CueDefinition

func CueDefinition(v string) predicate.Platform

CueDefinition applies equality check predicate on the "cue_definition" field. It's identical to CueDefinitionEQ.

func CueDefinitionContains

func CueDefinitionContains(v string) predicate.Platform

CueDefinitionContains applies the Contains predicate on the "cue_definition" field.

func CueDefinitionContainsFold

func CueDefinitionContainsFold(v string) predicate.Platform

CueDefinitionContainsFold applies the ContainsFold predicate on the "cue_definition" field.

func CueDefinitionEQ

func CueDefinitionEQ(v string) predicate.Platform

CueDefinitionEQ applies the EQ predicate on the "cue_definition" field.

func CueDefinitionEqualFold

func CueDefinitionEqualFold(v string) predicate.Platform

CueDefinitionEqualFold applies the EqualFold predicate on the "cue_definition" field.

func CueDefinitionGT

func CueDefinitionGT(v string) predicate.Platform

CueDefinitionGT applies the GT predicate on the "cue_definition" field.

func CueDefinitionGTE

func CueDefinitionGTE(v string) predicate.Platform

CueDefinitionGTE applies the GTE predicate on the "cue_definition" field.

func CueDefinitionHasPrefix

func CueDefinitionHasPrefix(v string) predicate.Platform

CueDefinitionHasPrefix applies the HasPrefix predicate on the "cue_definition" field.

func CueDefinitionHasSuffix

func CueDefinitionHasSuffix(v string) predicate.Platform

CueDefinitionHasSuffix applies the HasSuffix predicate on the "cue_definition" field.

func CueDefinitionIn

func CueDefinitionIn(vs ...string) predicate.Platform

CueDefinitionIn applies the In predicate on the "cue_definition" field.

func CueDefinitionIsNil

func CueDefinitionIsNil() predicate.Platform

CueDefinitionIsNil applies the IsNil predicate on the "cue_definition" field.

func CueDefinitionLT

func CueDefinitionLT(v string) predicate.Platform

CueDefinitionLT applies the LT predicate on the "cue_definition" field.

func CueDefinitionLTE

func CueDefinitionLTE(v string) predicate.Platform

CueDefinitionLTE applies the LTE predicate on the "cue_definition" field.

func CueDefinitionNEQ

func CueDefinitionNEQ(v string) predicate.Platform

CueDefinitionNEQ applies the NEQ predicate on the "cue_definition" field.

func CueDefinitionNotIn

func CueDefinitionNotIn(vs ...string) predicate.Platform

CueDefinitionNotIn applies the NotIn predicate on the "cue_definition" field.

func CueDefinitionNotNil

func CueDefinitionNotNil() predicate.Platform

CueDefinitionNotNil applies the NotNil predicate on the "cue_definition" field.

func CueEQ

func CueEQ(v []byte) predicate.Platform

CueEQ applies the EQ predicate on the "cue" field.

func CueGT

func CueGT(v []byte) predicate.Platform

CueGT applies the GT predicate on the "cue" field.

func CueGTE

func CueGTE(v []byte) predicate.Platform

CueGTE applies the GTE predicate on the "cue" field.

func CueIn

func CueIn(vs ...[]byte) predicate.Platform

CueIn applies the In predicate on the "cue" field.

func CueIsNil

func CueIsNil() predicate.Platform

CueIsNil applies the IsNil predicate on the "cue" field.

func CueLT

func CueLT(v []byte) predicate.Platform

CueLT applies the LT predicate on the "cue" field.

func CueLTE

func CueLTE(v []byte) predicate.Platform

CueLTE applies the LTE predicate on the "cue" field.

func CueNEQ

func CueNEQ(v []byte) predicate.Platform

CueNEQ applies the NEQ predicate on the "cue" field.

func CueNotIn

func CueNotIn(vs ...[]byte) predicate.Platform

CueNotIn applies the NotIn predicate on the "cue" field.

func CueNotNil

func CueNotNil() predicate.Platform

CueNotNil applies the NotNil predicate on the "cue" field.

func DisplayName

func DisplayName(v string) predicate.Platform

DisplayName applies equality check predicate on the "display_name" field. It's identical to DisplayNameEQ.

func DisplayNameContains

func DisplayNameContains(v string) predicate.Platform

DisplayNameContains applies the Contains predicate on the "display_name" field.

func DisplayNameContainsFold

func DisplayNameContainsFold(v string) predicate.Platform

DisplayNameContainsFold applies the ContainsFold predicate on the "display_name" field.

func DisplayNameEQ

func DisplayNameEQ(v string) predicate.Platform

DisplayNameEQ applies the EQ predicate on the "display_name" field.

func DisplayNameEqualFold

func DisplayNameEqualFold(v string) predicate.Platform

DisplayNameEqualFold applies the EqualFold predicate on the "display_name" field.

func DisplayNameGT

func DisplayNameGT(v string) predicate.Platform

DisplayNameGT applies the GT predicate on the "display_name" field.

func DisplayNameGTE

func DisplayNameGTE(v string) predicate.Platform

DisplayNameGTE applies the GTE predicate on the "display_name" field.

func DisplayNameHasPrefix

func DisplayNameHasPrefix(v string) predicate.Platform

DisplayNameHasPrefix applies the HasPrefix predicate on the "display_name" field.

func DisplayNameHasSuffix

func DisplayNameHasSuffix(v string) predicate.Platform

DisplayNameHasSuffix applies the HasSuffix predicate on the "display_name" field.

func DisplayNameIn

func DisplayNameIn(vs ...string) predicate.Platform

DisplayNameIn applies the In predicate on the "display_name" field.

func DisplayNameLT

func DisplayNameLT(v string) predicate.Platform

DisplayNameLT applies the LT predicate on the "display_name" field.

func DisplayNameLTE

func DisplayNameLTE(v string) predicate.Platform

DisplayNameLTE applies the LTE predicate on the "display_name" field.

func DisplayNameNEQ

func DisplayNameNEQ(v string) predicate.Platform

DisplayNameNEQ applies the NEQ predicate on the "display_name" field.

func DisplayNameNotIn

func DisplayNameNotIn(vs ...string) predicate.Platform

DisplayNameNotIn applies the NotIn predicate on the "display_name" field.

func FormIsNil

func FormIsNil() predicate.Platform

FormIsNil applies the IsNil predicate on the "form" field.

func FormNotNil

func FormNotNil() predicate.Platform

FormNotNil applies the NotNil predicate on the "form" field.

func HasCreator

func HasCreator() predicate.Platform

HasCreator applies the HasEdge predicate on the "creator" edge.

func HasCreatorWith

func HasCreatorWith(preds ...predicate.User) predicate.Platform

HasCreatorWith applies the HasEdge predicate on the "creator" edge with a given conditions (other predicates).

func HasEditor

func HasEditor() predicate.Platform

HasEditor applies the HasEdge predicate on the "editor" edge.

func HasEditorWith

func HasEditorWith(preds ...predicate.User) predicate.Platform

HasEditorWith applies the HasEdge predicate on the "editor" edge with a given conditions (other predicates).

func HasOrganization

func HasOrganization() predicate.Platform

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 ID

func ID(id uuid.UUID) predicate.Platform

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Platform

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Platform

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Platform

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.Platform

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Platform

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Platform

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Platform

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.Platform

IDNotIn applies the NotIn predicate on the ID field.

func ModelIsNil

func ModelIsNil() predicate.Platform

ModelIsNil applies the IsNil predicate on the "model" field.

func ModelNotNil

func ModelNotNil() predicate.Platform

ModelNotNil applies the NotNil predicate on the "model" field.

func Name

func Name(v string) predicate.Platform

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Platform

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Platform

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Platform

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Platform

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Platform

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Platform

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Platform

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Platform

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Platform

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Platform

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Platform

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Platform

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Platform

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Platform) predicate.Platform

Or groups predicates with the OR operator between them.

func OrgID

func OrgID(v uuid.UUID) predicate.Platform

OrgID applies equality check predicate on the "org_id" field. It's identical to OrgIDEQ.

func OrgIDEQ

func OrgIDEQ(v uuid.UUID) predicate.Platform

OrgIDEQ applies the EQ predicate on the "org_id" field.

func OrgIDIn

func OrgIDIn(vs ...uuid.UUID) predicate.Platform

OrgIDIn applies the In predicate on the "org_id" field.

func OrgIDNEQ

func OrgIDNEQ(v uuid.UUID) predicate.Platform

OrgIDNEQ applies the NEQ predicate on the "org_id" field.

func OrgIDNotIn

func OrgIDNotIn(vs ...uuid.UUID) predicate.Platform

OrgIDNotIn applies the NotIn predicate on the "org_id" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Platform

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Platform

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Platform

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Platform

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Platform

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Platform

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Platform

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Platform

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Platform

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func UpdatedByID

func UpdatedByID(v uuid.UUID) predicate.Platform

UpdatedByID applies equality check predicate on the "updated_by_id" field. It's identical to UpdatedByIDEQ.

func UpdatedByIDEQ

func UpdatedByIDEQ(v uuid.UUID) predicate.Platform

UpdatedByIDEQ applies the EQ predicate on the "updated_by_id" field.

func UpdatedByIDIn

func UpdatedByIDIn(vs ...uuid.UUID) predicate.Platform

UpdatedByIDIn applies the In predicate on the "updated_by_id" field.

func UpdatedByIDNEQ

func UpdatedByIDNEQ(v uuid.UUID) predicate.Platform

UpdatedByIDNEQ applies the NEQ predicate on the "updated_by_id" field.

func UpdatedByIDNotIn

func UpdatedByIDNotIn(vs ...uuid.UUID) predicate.Platform

UpdatedByIDNotIn applies the NotIn predicate on the "updated_by_id" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL