entity

package
v0.0.0-...-65c6c44 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the entity type in the database.
	Label = "entity"
	// 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"
	// FieldEntityID holds the string denoting the entity_id field in the database.
	FieldEntityID = "entity_id"
	// FieldKind holds the string denoting the kind field in the database.
	FieldKind = "kind"
	// FieldDisplayName holds the string denoting the display_name field in the database.
	FieldDisplayName = "display_name"
	// FieldResourceRefs holds the string denoting the resource_refs field in the database.
	FieldResourceRefs = "resource_refs"
	// FieldIdentifiers holds the string denoting the identifiers field in the database.
	FieldIdentifiers = "identifiers"
	// FieldOneLineSummary holds the string denoting the one_line_summary field in the database.
	FieldOneLineSummary = "one_line_summary"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldCanonicalEntityID holds the string denoting the canonical_entity_id field in the database.
	FieldCanonicalEntityID = "canonical_entity_id"
	// FieldVersion holds the string denoting the version field in the database.
	FieldVersion = "version"
	// 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"
	// EdgeNormalizedResourceRefs holds the string denoting the normalized_resource_refs edge name in mutations.
	EdgeNormalizedResourceRefs = "normalized_resource_refs"
	// EdgeNormalizedIdentifiers holds the string denoting the normalized_identifiers edge name in mutations.
	EdgeNormalizedIdentifiers = "normalized_identifiers"
	// Table holds the table name of the entity in the database.
	Table = "entities"
	// WorkspaceTable is the table that holds the workspace relation/edge.
	WorkspaceTable = "entities"
	// 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 = "entities"
	// 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_entities"
	// NormalizedResourceRefsTable is the table that holds the normalized_resource_refs relation/edge.
	NormalizedResourceRefsTable = "entity_resource_refs"
	// NormalizedResourceRefsInverseTable is the table name for the EntityResourceRef entity.
	// It exists in this package in order to avoid circular dependency with the "entityresourceref" package.
	NormalizedResourceRefsInverseTable = "entity_resource_refs"
	// NormalizedResourceRefsColumn is the table column denoting the normalized_resource_refs relation/edge.
	NormalizedResourceRefsColumn = "entity_normalized_resource_refs"
	// NormalizedIdentifiersTable is the table that holds the normalized_identifiers relation/edge.
	NormalizedIdentifiersTable = "entity_identifiers"
	// NormalizedIdentifiersInverseTable is the table name for the EntityIdentifier entity.
	// It exists in this package in order to avoid circular dependency with the "entityidentifier" package.
	NormalizedIdentifiersInverseTable = "entity_identifiers"
	// NormalizedIdentifiersColumn is the table column denoting the normalized_identifiers relation/edge.
	NormalizedIdentifiersColumn = "entity_normalized_identifiers"
)

Variables

View Source
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
	// EntityIDValidator is a validator for the "entity_id" field. It is called by the builders before save.
	EntityIDValidator func(string) error
	// KindValidator is a validator for the "kind" field. It is called by the builders before save.
	KindValidator func(string) error
	// DisplayNameValidator is a validator for the "display_name" field. It is called by the builders before save.
	DisplayNameValidator func(string) error
	// DefaultResourceRefs holds the default value on creation for the "resource_refs" field.
	DefaultResourceRefs []string
	// DefaultIdentifiers holds the default value on creation for the "identifiers" field.
	DefaultIdentifiers map[string][]string
	// OneLineSummaryValidator is a validator for the "one_line_summary" field. It is called by the builders before save.
	OneLineSummaryValidator func(string) error
	// DefaultStatus holds the default value on creation for the "status" field.
	DefaultStatus string
	// StatusValidator is a validator for the "status" field. It is called by the builders before save.
	StatusValidator func(string) error
	// CanonicalEntityIDValidator is a validator for the "canonical_entity_id" field. It is called by the builders before save.
	CanonicalEntityIDValidator func(string) error
	// DefaultVersion holds the default value on creation for the "version" field.
	DefaultVersion int
	// VersionValidator is a validator for the "version" field. It is called by the builders before save.
	VersionValidator func(int) error
	// 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"

Columns holds all SQL columns for entity fields.

View Source
var ForeignKeys = []string{
	"revenue_workspace_id",
	"user_entities",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "entities" table and are not defined as standalone fields in the schema.

Functions

func And

func And(predicates ...predicate.Entity) predicate.Entity

And groups predicates with the AND operator between them.

func CanonicalEntityID

func CanonicalEntityID(v string) predicate.Entity

CanonicalEntityID applies equality check predicate on the "canonical_entity_id" field. It's identical to CanonicalEntityIDEQ.

func CanonicalEntityIDContains

func CanonicalEntityIDContains(v string) predicate.Entity

CanonicalEntityIDContains applies the Contains predicate on the "canonical_entity_id" field.

func CanonicalEntityIDContainsFold

func CanonicalEntityIDContainsFold(v string) predicate.Entity

CanonicalEntityIDContainsFold applies the ContainsFold predicate on the "canonical_entity_id" field.

func CanonicalEntityIDEQ

func CanonicalEntityIDEQ(v string) predicate.Entity

CanonicalEntityIDEQ applies the EQ predicate on the "canonical_entity_id" field.

func CanonicalEntityIDEqualFold

func CanonicalEntityIDEqualFold(v string) predicate.Entity

CanonicalEntityIDEqualFold applies the EqualFold predicate on the "canonical_entity_id" field.

func CanonicalEntityIDGT

func CanonicalEntityIDGT(v string) predicate.Entity

CanonicalEntityIDGT applies the GT predicate on the "canonical_entity_id" field.

func CanonicalEntityIDGTE

func CanonicalEntityIDGTE(v string) predicate.Entity

CanonicalEntityIDGTE applies the GTE predicate on the "canonical_entity_id" field.

func CanonicalEntityIDHasPrefix

func CanonicalEntityIDHasPrefix(v string) predicate.Entity

CanonicalEntityIDHasPrefix applies the HasPrefix predicate on the "canonical_entity_id" field.

func CanonicalEntityIDHasSuffix

func CanonicalEntityIDHasSuffix(v string) predicate.Entity

CanonicalEntityIDHasSuffix applies the HasSuffix predicate on the "canonical_entity_id" field.

func CanonicalEntityIDIn

func CanonicalEntityIDIn(vs ...string) predicate.Entity

CanonicalEntityIDIn applies the In predicate on the "canonical_entity_id" field.

func CanonicalEntityIDIsNil

func CanonicalEntityIDIsNil() predicate.Entity

CanonicalEntityIDIsNil applies the IsNil predicate on the "canonical_entity_id" field.

func CanonicalEntityIDLT

func CanonicalEntityIDLT(v string) predicate.Entity

CanonicalEntityIDLT applies the LT predicate on the "canonical_entity_id" field.

func CanonicalEntityIDLTE

func CanonicalEntityIDLTE(v string) predicate.Entity

CanonicalEntityIDLTE applies the LTE predicate on the "canonical_entity_id" field.

func CanonicalEntityIDNEQ

func CanonicalEntityIDNEQ(v string) predicate.Entity

CanonicalEntityIDNEQ applies the NEQ predicate on the "canonical_entity_id" field.

func CanonicalEntityIDNotIn

func CanonicalEntityIDNotIn(vs ...string) predicate.Entity

CanonicalEntityIDNotIn applies the NotIn predicate on the "canonical_entity_id" field.

func CanonicalEntityIDNotNil

func CanonicalEntityIDNotNil() predicate.Entity

CanonicalEntityIDNotNil applies the NotNil predicate on the "canonical_entity_id" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Entity

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Entity

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Entity

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Entity

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Entity

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Entity

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Entity

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

func CreatedAtNotIn

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

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

func DisplayName

func DisplayName(v string) predicate.Entity

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

func DisplayNameContains

func DisplayNameContains(v string) predicate.Entity

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

func DisplayNameContainsFold

func DisplayNameContainsFold(v string) predicate.Entity

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

func DisplayNameEQ

func DisplayNameEQ(v string) predicate.Entity

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

func DisplayNameEqualFold

func DisplayNameEqualFold(v string) predicate.Entity

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

func DisplayNameGT

func DisplayNameGT(v string) predicate.Entity

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

func DisplayNameGTE

func DisplayNameGTE(v string) predicate.Entity

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

func DisplayNameHasPrefix

func DisplayNameHasPrefix(v string) predicate.Entity

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

func DisplayNameHasSuffix

func DisplayNameHasSuffix(v string) predicate.Entity

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

func DisplayNameIn

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

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

func DisplayNameLT

func DisplayNameLT(v string) predicate.Entity

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

func DisplayNameLTE

func DisplayNameLTE(v string) predicate.Entity

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

func DisplayNameNEQ

func DisplayNameNEQ(v string) predicate.Entity

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

func DisplayNameNotIn

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

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

func EntityID

func EntityID(v string) predicate.Entity

EntityID applies equality check predicate on the "entity_id" field. It's identical to EntityIDEQ.

func EntityIDContains

func EntityIDContains(v string) predicate.Entity

EntityIDContains applies the Contains predicate on the "entity_id" field.

func EntityIDContainsFold

func EntityIDContainsFold(v string) predicate.Entity

EntityIDContainsFold applies the ContainsFold predicate on the "entity_id" field.

func EntityIDEQ

func EntityIDEQ(v string) predicate.Entity

EntityIDEQ applies the EQ predicate on the "entity_id" field.

func EntityIDEqualFold

func EntityIDEqualFold(v string) predicate.Entity

EntityIDEqualFold applies the EqualFold predicate on the "entity_id" field.

func EntityIDGT

func EntityIDGT(v string) predicate.Entity

EntityIDGT applies the GT predicate on the "entity_id" field.

func EntityIDGTE

func EntityIDGTE(v string) predicate.Entity

EntityIDGTE applies the GTE predicate on the "entity_id" field.

func EntityIDHasPrefix

func EntityIDHasPrefix(v string) predicate.Entity

EntityIDHasPrefix applies the HasPrefix predicate on the "entity_id" field.

func EntityIDHasSuffix

func EntityIDHasSuffix(v string) predicate.Entity

EntityIDHasSuffix applies the HasSuffix predicate on the "entity_id" field.

func EntityIDIn

func EntityIDIn(vs ...string) predicate.Entity

EntityIDIn applies the In predicate on the "entity_id" field.

func EntityIDLT

func EntityIDLT(v string) predicate.Entity

EntityIDLT applies the LT predicate on the "entity_id" field.

func EntityIDLTE

func EntityIDLTE(v string) predicate.Entity

EntityIDLTE applies the LTE predicate on the "entity_id" field.

func EntityIDNEQ

func EntityIDNEQ(v string) predicate.Entity

EntityIDNEQ applies the NEQ predicate on the "entity_id" field.

func EntityIDNotIn

func EntityIDNotIn(vs ...string) predicate.Entity

EntityIDNotIn applies the NotIn predicate on the "entity_id" field.

func HasNormalizedIdentifiers

func HasNormalizedIdentifiers() predicate.Entity

HasNormalizedIdentifiers applies the HasEdge predicate on the "normalized_identifiers" edge.

func HasNormalizedIdentifiersWith

func HasNormalizedIdentifiersWith(preds ...predicate.EntityIdentifier) predicate.Entity

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

func HasNormalizedResourceRefs

func HasNormalizedResourceRefs() predicate.Entity

HasNormalizedResourceRefs applies the HasEdge predicate on the "normalized_resource_refs" edge.

func HasNormalizedResourceRefsWith

func HasNormalizedResourceRefsWith(preds ...predicate.EntityResourceRef) predicate.Entity

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

func HasUser

func HasUser() predicate.Entity

HasUser applies the HasEdge predicate on the "user" edge.

func HasUserWith

func HasUserWith(preds ...predicate.User) predicate.Entity

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

func HasWorkspace

func HasWorkspace() predicate.Entity

HasWorkspace applies the HasEdge predicate on the "workspace" edge.

func HasWorkspaceWith

func HasWorkspaceWith(preds ...predicate.RevenueWorkspace) predicate.Entity

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

func ID

func ID(id uuid.UUID) predicate.Entity

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Entity

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Entity

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Entity

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Entity

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Entity

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Entity

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Kind

func Kind(v string) predicate.Entity

Kind applies equality check predicate on the "kind" field. It's identical to KindEQ.

func KindContains

func KindContains(v string) predicate.Entity

KindContains applies the Contains predicate on the "kind" field.

func KindContainsFold

func KindContainsFold(v string) predicate.Entity

KindContainsFold applies the ContainsFold predicate on the "kind" field.

func KindEQ

func KindEQ(v string) predicate.Entity

KindEQ applies the EQ predicate on the "kind" field.

func KindEqualFold

func KindEqualFold(v string) predicate.Entity

KindEqualFold applies the EqualFold predicate on the "kind" field.

func KindGT

func KindGT(v string) predicate.Entity

KindGT applies the GT predicate on the "kind" field.

func KindGTE

func KindGTE(v string) predicate.Entity

KindGTE applies the GTE predicate on the "kind" field.

func KindHasPrefix

func KindHasPrefix(v string) predicate.Entity

KindHasPrefix applies the HasPrefix predicate on the "kind" field.

func KindHasSuffix

func KindHasSuffix(v string) predicate.Entity

KindHasSuffix applies the HasSuffix predicate on the "kind" field.

func KindIn

func KindIn(vs ...string) predicate.Entity

KindIn applies the In predicate on the "kind" field.

func KindLT

func KindLT(v string) predicate.Entity

KindLT applies the LT predicate on the "kind" field.

func KindLTE

func KindLTE(v string) predicate.Entity

KindLTE applies the LTE predicate on the "kind" field.

func KindNEQ

func KindNEQ(v string) predicate.Entity

KindNEQ applies the NEQ predicate on the "kind" field.

func KindNotIn

func KindNotIn(vs ...string) predicate.Entity

KindNotIn applies the NotIn predicate on the "kind" field.

func Not

Not applies the not operator on the given predicate.

func OneLineSummary

func OneLineSummary(v string) predicate.Entity

OneLineSummary applies equality check predicate on the "one_line_summary" field. It's identical to OneLineSummaryEQ.

func OneLineSummaryContains

func OneLineSummaryContains(v string) predicate.Entity

OneLineSummaryContains applies the Contains predicate on the "one_line_summary" field.

func OneLineSummaryContainsFold

func OneLineSummaryContainsFold(v string) predicate.Entity

OneLineSummaryContainsFold applies the ContainsFold predicate on the "one_line_summary" field.

func OneLineSummaryEQ

func OneLineSummaryEQ(v string) predicate.Entity

OneLineSummaryEQ applies the EQ predicate on the "one_line_summary" field.

func OneLineSummaryEqualFold

func OneLineSummaryEqualFold(v string) predicate.Entity

OneLineSummaryEqualFold applies the EqualFold predicate on the "one_line_summary" field.

func OneLineSummaryGT

func OneLineSummaryGT(v string) predicate.Entity

OneLineSummaryGT applies the GT predicate on the "one_line_summary" field.

func OneLineSummaryGTE

func OneLineSummaryGTE(v string) predicate.Entity

OneLineSummaryGTE applies the GTE predicate on the "one_line_summary" field.

func OneLineSummaryHasPrefix

func OneLineSummaryHasPrefix(v string) predicate.Entity

OneLineSummaryHasPrefix applies the HasPrefix predicate on the "one_line_summary" field.

func OneLineSummaryHasSuffix

func OneLineSummaryHasSuffix(v string) predicate.Entity

OneLineSummaryHasSuffix applies the HasSuffix predicate on the "one_line_summary" field.

func OneLineSummaryIn

func OneLineSummaryIn(vs ...string) predicate.Entity

OneLineSummaryIn applies the In predicate on the "one_line_summary" field.

func OneLineSummaryIsNil

func OneLineSummaryIsNil() predicate.Entity

OneLineSummaryIsNil applies the IsNil predicate on the "one_line_summary" field.

func OneLineSummaryLT

func OneLineSummaryLT(v string) predicate.Entity

OneLineSummaryLT applies the LT predicate on the "one_line_summary" field.

func OneLineSummaryLTE

func OneLineSummaryLTE(v string) predicate.Entity

OneLineSummaryLTE applies the LTE predicate on the "one_line_summary" field.

func OneLineSummaryNEQ

func OneLineSummaryNEQ(v string) predicate.Entity

OneLineSummaryNEQ applies the NEQ predicate on the "one_line_summary" field.

func OneLineSummaryNotIn

func OneLineSummaryNotIn(vs ...string) predicate.Entity

OneLineSummaryNotIn applies the NotIn predicate on the "one_line_summary" field.

func OneLineSummaryNotNil

func OneLineSummaryNotNil() predicate.Entity

OneLineSummaryNotNil applies the NotNil predicate on the "one_line_summary" field.

func Or

func Or(predicates ...predicate.Entity) predicate.Entity

Or groups predicates with the OR operator between them.

func Status

func Status(v string) predicate.Entity

Status applies equality check predicate on the "status" field. It's identical to StatusEQ.

func StatusContains

func StatusContains(v string) predicate.Entity

StatusContains applies the Contains predicate on the "status" field.

func StatusContainsFold

func StatusContainsFold(v string) predicate.Entity

StatusContainsFold applies the ContainsFold predicate on the "status" field.

func StatusEQ

func StatusEQ(v string) predicate.Entity

StatusEQ applies the EQ predicate on the "status" field.

func StatusEqualFold

func StatusEqualFold(v string) predicate.Entity

StatusEqualFold applies the EqualFold predicate on the "status" field.

func StatusGT

func StatusGT(v string) predicate.Entity

StatusGT applies the GT predicate on the "status" field.

func StatusGTE

func StatusGTE(v string) predicate.Entity

StatusGTE applies the GTE predicate on the "status" field.

func StatusHasPrefix

func StatusHasPrefix(v string) predicate.Entity

StatusHasPrefix applies the HasPrefix predicate on the "status" field.

func StatusHasSuffix

func StatusHasSuffix(v string) predicate.Entity

StatusHasSuffix applies the HasSuffix predicate on the "status" field.

func StatusIn

func StatusIn(vs ...string) predicate.Entity

StatusIn applies the In predicate on the "status" field.

func StatusLT

func StatusLT(v string) predicate.Entity

StatusLT applies the LT predicate on the "status" field.

func StatusLTE

func StatusLTE(v string) predicate.Entity

StatusLTE applies the LTE predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v string) predicate.Entity

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...string) predicate.Entity

StatusNotIn applies the NotIn predicate on the "status" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Entity

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Entity

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Entity

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Entity

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Entity

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Entity

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Entity

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

func UpdatedAtNotIn

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

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

func ValidColumn

func ValidColumn(column string) bool

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

func Version

func Version(v int) predicate.Entity

Version applies equality check predicate on the "version" field. It's identical to VersionEQ.

func VersionEQ

func VersionEQ(v int) predicate.Entity

VersionEQ applies the EQ predicate on the "version" field.

func VersionGT

func VersionGT(v int) predicate.Entity

VersionGT applies the GT predicate on the "version" field.

func VersionGTE

func VersionGTE(v int) predicate.Entity

VersionGTE applies the GTE predicate on the "version" field.

func VersionIn

func VersionIn(vs ...int) predicate.Entity

VersionIn applies the In predicate on the "version" field.

func VersionLT

func VersionLT(v int) predicate.Entity

VersionLT applies the LT predicate on the "version" field.

func VersionLTE

func VersionLTE(v int) predicate.Entity

VersionLTE applies the LTE predicate on the "version" field.

func VersionNEQ

func VersionNEQ(v int) predicate.Entity

VersionNEQ applies the NEQ predicate on the "version" field.

func VersionNotIn

func VersionNotIn(vs ...int) predicate.Entity

VersionNotIn applies the NotIn predicate on the "version" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Entity queries.

func ByCanonicalEntityID

func ByCanonicalEntityID(opts ...sql.OrderTermOption) OrderOption

ByCanonicalEntityID orders the results by the canonical_entity_id field.

func ByCreatedAt

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByDisplayName

func ByDisplayName(opts ...sql.OrderTermOption) OrderOption

ByDisplayName orders the results by the display_name field.

func ByEntityID

func ByEntityID(opts ...sql.OrderTermOption) OrderOption

ByEntityID orders the results by the entity_id 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 ByNormalizedIdentifiers

func ByNormalizedIdentifiers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByNormalizedIdentifiers orders the results by normalized_identifiers terms.

func ByNormalizedIdentifiersCount

func ByNormalizedIdentifiersCount(opts ...sql.OrderTermOption) OrderOption

ByNormalizedIdentifiersCount orders the results by normalized_identifiers count.

func ByNormalizedResourceRefs

func ByNormalizedResourceRefs(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByNormalizedResourceRefs orders the results by normalized_resource_refs terms.

func ByNormalizedResourceRefsCount

func ByNormalizedResourceRefsCount(opts ...sql.OrderTermOption) OrderOption

ByNormalizedResourceRefsCount orders the results by normalized_resource_refs count.

func ByOneLineSummary

func ByOneLineSummary(opts ...sql.OrderTermOption) OrderOption

ByOneLineSummary orders the results by the one_line_summary field.

func ByStatus

func ByStatus(opts ...sql.OrderTermOption) OrderOption

ByStatus orders the results by the status 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 ByVersion

func ByVersion(opts ...sql.OrderTermOption) OrderOption

ByVersion orders the results by the version field.

func ByWorkspaceField

func ByWorkspaceField(field string, opts ...sql.OrderTermOption) OrderOption

ByWorkspaceField orders the results by workspace field.

Jump to

Keyboard shortcuts

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