node

package
v1.26.7 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2026 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the node type in the database.
	Label = "node"
	// 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"
	// FieldDeletedAt holds the string denoting the deleted_at field in the database.
	FieldDeletedAt = "deleted_at"
	// FieldIndexedAt holds the string denoting the indexed_at field in the database.
	FieldIndexedAt = "indexed_at"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldSlug holds the string denoting the slug field in the database.
	FieldSlug = "slug"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldContent holds the string denoting the content field in the database.
	FieldContent = "content"
	// FieldParentNodeID holds the string denoting the parent_node_id field in the database.
	FieldParentNodeID = "parent_node_id"
	// FieldHideChildTree holds the string denoting the hide_child_tree field in the database.
	FieldHideChildTree = "hide_child_tree"
	// FieldAccountID holds the string denoting the account_id field in the database.
	FieldAccountID = "account_id"
	// FieldPropertySchemaID holds the string denoting the property_schema_id field in the database.
	FieldPropertySchemaID = "property_schema_id"
	// FieldPrimaryAssetID holds the string denoting the primary_asset_id field in the database.
	FieldPrimaryAssetID = "primary_asset_id"
	// FieldLinkID holds the string denoting the link_id field in the database.
	FieldLinkID = "link_id"
	// FieldVisibility holds the string denoting the visibility field in the database.
	FieldVisibility = "visibility"
	// FieldSort holds the string denoting the sort field in the database.
	FieldSort = "sort"
	// FieldMetadata holds the string denoting the metadata field in the database.
	FieldMetadata = "metadata"
	// EdgeOwner holds the string denoting the owner edge name in mutations.
	EdgeOwner = "owner"
	// EdgeParent holds the string denoting the parent edge name in mutations.
	EdgeParent = "parent"
	// EdgeNodes holds the string denoting the nodes edge name in mutations.
	EdgeNodes = "nodes"
	// EdgePrimaryImage holds the string denoting the primary_image edge name in mutations.
	EdgePrimaryImage = "primary_image"
	// EdgeAssets holds the string denoting the assets edge name in mutations.
	EdgeAssets = "assets"
	// EdgeTags holds the string denoting the tags edge name in mutations.
	EdgeTags = "tags"
	// EdgeProperties holds the string denoting the properties edge name in mutations.
	EdgeProperties = "properties"
	// EdgePropertySchema holds the string denoting the property_schema edge name in mutations.
	EdgePropertySchema = "property_schema"
	// EdgeLink holds the string denoting the link edge name in mutations.
	EdgeLink = "link"
	// EdgeContentLinks holds the string denoting the content_links edge name in mutations.
	EdgeContentLinks = "content_links"
	// EdgeCollections holds the string denoting the collections edge name in mutations.
	EdgeCollections = "collections"
	// EdgeCollectionNodes holds the string denoting the collection_nodes edge name in mutations.
	EdgeCollectionNodes = "collection_nodes"
	// Table holds the table name of the node in the database.
	Table = "nodes"
	// OwnerTable is the table that holds the owner relation/edge.
	OwnerTable = "nodes"
	// OwnerInverseTable is the table name for the Account entity.
	// It exists in this package in order to avoid circular dependency with the "account" package.
	OwnerInverseTable = "accounts"
	// OwnerColumn is the table column denoting the owner relation/edge.
	OwnerColumn = "account_id"
	// ParentTable is the table that holds the parent relation/edge.
	ParentTable = "nodes"
	// ParentColumn is the table column denoting the parent relation/edge.
	ParentColumn = "parent_node_id"
	// NodesTable is the table that holds the nodes relation/edge.
	NodesTable = "nodes"
	// NodesColumn is the table column denoting the nodes relation/edge.
	NodesColumn = "parent_node_id"
	// PrimaryImageTable is the table that holds the primary_image relation/edge.
	PrimaryImageTable = "nodes"
	// PrimaryImageInverseTable is the table name for the Asset entity.
	// It exists in this package in order to avoid circular dependency with the "asset" package.
	PrimaryImageInverseTable = "assets"
	// PrimaryImageColumn is the table column denoting the primary_image relation/edge.
	PrimaryImageColumn = "primary_asset_id"
	// AssetsTable is the table that holds the assets relation/edge. The primary key declared below.
	AssetsTable = "node_assets"
	// AssetsInverseTable is the table name for the Asset entity.
	// It exists in this package in order to avoid circular dependency with the "asset" package.
	AssetsInverseTable = "assets"
	// TagsTable is the table that holds the tags relation/edge. The primary key declared below.
	TagsTable = "tag_nodes"
	// TagsInverseTable is the table name for the Tag entity.
	// It exists in this package in order to avoid circular dependency with the "tag" package.
	TagsInverseTable = "tags"
	// PropertiesTable is the table that holds the properties relation/edge.
	PropertiesTable = "properties"
	// PropertiesInverseTable is the table name for the Property entity.
	// It exists in this package in order to avoid circular dependency with the "property" package.
	PropertiesInverseTable = "properties"
	// PropertiesColumn is the table column denoting the properties relation/edge.
	PropertiesColumn = "node_id"
	// PropertySchemaTable is the table that holds the property_schema relation/edge.
	PropertySchemaTable = "nodes"
	// PropertySchemaInverseTable is the table name for the PropertySchema entity.
	// It exists in this package in order to avoid circular dependency with the "propertyschema" package.
	PropertySchemaInverseTable = "property_schemas"
	// PropertySchemaColumn is the table column denoting the property_schema relation/edge.
	PropertySchemaColumn = "property_schema_id"
	// LinkTable is the table that holds the link relation/edge.
	LinkTable = "nodes"
	// LinkInverseTable is the table name for the Link entity.
	// It exists in this package in order to avoid circular dependency with the "link" package.
	LinkInverseTable = "links"
	// LinkColumn is the table column denoting the link relation/edge.
	LinkColumn = "link_id"
	// ContentLinksTable is the table that holds the content_links relation/edge. The primary key declared below.
	ContentLinksTable = "link_node_content_references"
	// ContentLinksInverseTable is the table name for the Link entity.
	// It exists in this package in order to avoid circular dependency with the "link" package.
	ContentLinksInverseTable = "links"
	// CollectionsTable is the table that holds the collections relation/edge. The primary key declared below.
	CollectionsTable = "collection_nodes"
	// CollectionsInverseTable is the table name for the Collection entity.
	// It exists in this package in order to avoid circular dependency with the "collection" package.
	CollectionsInverseTable = "collections"
	// CollectionNodesTable is the table that holds the collection_nodes relation/edge.
	CollectionNodesTable = "collection_nodes"
	// CollectionNodesInverseTable is the table name for the CollectionNode entity.
	// It exists in this package in order to avoid circular dependency with the "collectionnode" package.
	CollectionNodesInverseTable = "collection_nodes"
	// CollectionNodesColumn is the table column denoting the collection_nodes relation/edge.
	CollectionNodesColumn = "node_id"
)
View Source
const DefaultVisibility = VisibilityDraft

VisibilityDraft is the default value of the Visibility enum.

Variables

View Source
var (
	// AssetsPrimaryKey and AssetsColumn2 are the table columns denoting the
	// primary key for the assets relation (M2M).
	AssetsPrimaryKey = []string{"node_id", "asset_id"}
	// TagsPrimaryKey and TagsColumn2 are the table columns denoting the
	// primary key for the tags relation (M2M).
	TagsPrimaryKey = []string{"tag_id", "node_id"}
	// ContentLinksPrimaryKey and ContentLinksColumn2 are the table columns denoting the
	// primary key for the content_links relation (M2M).
	ContentLinksPrimaryKey = []string{"link_id", "node_id"}
	// CollectionsPrimaryKey and CollectionsColumn2 are the table columns denoting the
	// primary key for the collections relation (M2M).
	CollectionsPrimaryKey = []string{"collection_id", "node_id"}
)
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
	// DefaultHideChildTree holds the default value on creation for the "hide_child_tree" field.
	DefaultHideChildTree bool
	// DefaultSort holds the default value on creation for the "sort" field.
	DefaultSort func() lexorank.Key
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() xid.ID
	// IDValidator is a validator for the "id" field. It is called by the builders before save.
	IDValidator func(string) error
)

Columns holds all SQL columns for node fields.

Functions

func AccountID

func AccountID(v xid.ID) predicate.Node

AccountID applies equality check predicate on the "account_id" field. It's identical to AccountIDEQ.

func AccountIDContains

func AccountIDContains(v xid.ID) predicate.Node

AccountIDContains applies the Contains predicate on the "account_id" field.

func AccountIDContainsFold

func AccountIDContainsFold(v xid.ID) predicate.Node

AccountIDContainsFold applies the ContainsFold predicate on the "account_id" field.

func AccountIDEQ

func AccountIDEQ(v xid.ID) predicate.Node

AccountIDEQ applies the EQ predicate on the "account_id" field.

func AccountIDEqualFold

func AccountIDEqualFold(v xid.ID) predicate.Node

AccountIDEqualFold applies the EqualFold predicate on the "account_id" field.

func AccountIDGT

func AccountIDGT(v xid.ID) predicate.Node

AccountIDGT applies the GT predicate on the "account_id" field.

func AccountIDGTE

func AccountIDGTE(v xid.ID) predicate.Node

AccountIDGTE applies the GTE predicate on the "account_id" field.

func AccountIDHasPrefix

func AccountIDHasPrefix(v xid.ID) predicate.Node

AccountIDHasPrefix applies the HasPrefix predicate on the "account_id" field.

func AccountIDHasSuffix

func AccountIDHasSuffix(v xid.ID) predicate.Node

AccountIDHasSuffix applies the HasSuffix predicate on the "account_id" field.

func AccountIDIn

func AccountIDIn(vs ...xid.ID) predicate.Node

AccountIDIn applies the In predicate on the "account_id" field.

func AccountIDLT

func AccountIDLT(v xid.ID) predicate.Node

AccountIDLT applies the LT predicate on the "account_id" field.

func AccountIDLTE

func AccountIDLTE(v xid.ID) predicate.Node

AccountIDLTE applies the LTE predicate on the "account_id" field.

func AccountIDNEQ

func AccountIDNEQ(v xid.ID) predicate.Node

AccountIDNEQ applies the NEQ predicate on the "account_id" field.

func AccountIDNotIn

func AccountIDNotIn(vs ...xid.ID) predicate.Node

AccountIDNotIn applies the NotIn predicate on the "account_id" field.

func And

func And(predicates ...predicate.Node) predicate.Node

And groups predicates with the AND operator between them.

func Content

func Content(v string) predicate.Node

Content applies equality check predicate on the "content" field. It's identical to ContentEQ.

func ContentContains

func ContentContains(v string) predicate.Node

ContentContains applies the Contains predicate on the "content" field.

func ContentContainsFold

func ContentContainsFold(v string) predicate.Node

ContentContainsFold applies the ContainsFold predicate on the "content" field.

func ContentEQ

func ContentEQ(v string) predicate.Node

ContentEQ applies the EQ predicate on the "content" field.

func ContentEqualFold

func ContentEqualFold(v string) predicate.Node

ContentEqualFold applies the EqualFold predicate on the "content" field.

func ContentGT

func ContentGT(v string) predicate.Node

ContentGT applies the GT predicate on the "content" field.

func ContentGTE

func ContentGTE(v string) predicate.Node

ContentGTE applies the GTE predicate on the "content" field.

func ContentHasPrefix

func ContentHasPrefix(v string) predicate.Node

ContentHasPrefix applies the HasPrefix predicate on the "content" field.

func ContentHasSuffix

func ContentHasSuffix(v string) predicate.Node

ContentHasSuffix applies the HasSuffix predicate on the "content" field.

func ContentIn

func ContentIn(vs ...string) predicate.Node

ContentIn applies the In predicate on the "content" field.

func ContentIsNil

func ContentIsNil() predicate.Node

ContentIsNil applies the IsNil predicate on the "content" field.

func ContentLT

func ContentLT(v string) predicate.Node

ContentLT applies the LT predicate on the "content" field.

func ContentLTE

func ContentLTE(v string) predicate.Node

ContentLTE applies the LTE predicate on the "content" field.

func ContentNEQ

func ContentNEQ(v string) predicate.Node

ContentNEQ applies the NEQ predicate on the "content" field.

func ContentNotIn

func ContentNotIn(vs ...string) predicate.Node

ContentNotIn applies the NotIn predicate on the "content" field.

func ContentNotNil

func ContentNotNil() predicate.Node

ContentNotNil applies the NotNil predicate on the "content" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Node

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Node

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Node

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Node

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Node

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Node

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Node

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

func CreatedAtNotIn

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

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

func DeletedAt

func DeletedAt(v time.Time) predicate.Node

DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.Node

DeletedAtEQ applies the EQ predicate on the "deleted_at" field.

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.Node

DeletedAtGT applies the GT predicate on the "deleted_at" field.

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.Node

DeletedAtGTE applies the GTE predicate on the "deleted_at" field.

func DeletedAtIn

func DeletedAtIn(vs ...time.Time) predicate.Node

DeletedAtIn applies the In predicate on the "deleted_at" field.

func DeletedAtIsNil

func DeletedAtIsNil() predicate.Node

DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.Node

DeletedAtLT applies the LT predicate on the "deleted_at" field.

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.Node

DeletedAtLTE applies the LTE predicate on the "deleted_at" field.

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.Node

DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.

func DeletedAtNotIn

func DeletedAtNotIn(vs ...time.Time) predicate.Node

DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.

func DeletedAtNotNil

func DeletedAtNotNil() predicate.Node

DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.

func Description

func Description(v string) predicate.Node

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.Node

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Node

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.Node

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Node

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.Node

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.Node

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Node

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Node

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.Node

DescriptionIn applies the In predicate on the "description" field.

func DescriptionIsNil

func DescriptionIsNil() predicate.Node

DescriptionIsNil applies the IsNil predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.Node

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.Node

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Node

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.Node

DescriptionNotIn applies the NotIn predicate on the "description" field.

func DescriptionNotNil

func DescriptionNotNil() predicate.Node

DescriptionNotNil applies the NotNil predicate on the "description" field.

func HasAssets

func HasAssets() predicate.Node

HasAssets applies the HasEdge predicate on the "assets" edge.

func HasAssetsWith

func HasAssetsWith(preds ...predicate.Asset) predicate.Node

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

func HasCollectionNodes

func HasCollectionNodes() predicate.Node

HasCollectionNodes applies the HasEdge predicate on the "collection_nodes" edge.

func HasCollectionNodesWith

func HasCollectionNodesWith(preds ...predicate.CollectionNode) predicate.Node

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

func HasCollections

func HasCollections() predicate.Node

HasCollections applies the HasEdge predicate on the "collections" edge.

func HasCollectionsWith

func HasCollectionsWith(preds ...predicate.Collection) predicate.Node

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

func HasContentLinks() predicate.Node

HasContentLinks applies the HasEdge predicate on the "content_links" edge.

func HasContentLinksWith

func HasContentLinksWith(preds ...predicate.Link) predicate.Node

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

func HasLink() predicate.Node

HasLink applies the HasEdge predicate on the "link" edge.

func HasLinkWith

func HasLinkWith(preds ...predicate.Link) predicate.Node

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

func HasNodes

func HasNodes() predicate.Node

HasNodes applies the HasEdge predicate on the "nodes" edge.

func HasNodesWith

func HasNodesWith(preds ...predicate.Node) predicate.Node

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

func HasOwner

func HasOwner() predicate.Node

HasOwner applies the HasEdge predicate on the "owner" edge.

func HasOwnerWith

func HasOwnerWith(preds ...predicate.Account) predicate.Node

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

func HasParent

func HasParent() predicate.Node

HasParent applies the HasEdge predicate on the "parent" edge.

func HasParentWith

func HasParentWith(preds ...predicate.Node) predicate.Node

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

func HasPrimaryImage

func HasPrimaryImage() predicate.Node

HasPrimaryImage applies the HasEdge predicate on the "primary_image" edge.

func HasPrimaryImageWith

func HasPrimaryImageWith(preds ...predicate.Asset) predicate.Node

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

func HasProperties

func HasProperties() predicate.Node

HasProperties applies the HasEdge predicate on the "properties" edge.

func HasPropertiesWith

func HasPropertiesWith(preds ...predicate.Property) predicate.Node

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

func HasPropertySchema

func HasPropertySchema() predicate.Node

HasPropertySchema applies the HasEdge predicate on the "property_schema" edge.

func HasPropertySchemaWith

func HasPropertySchemaWith(preds ...predicate.PropertySchema) predicate.Node

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

func HasTags

func HasTags() predicate.Node

HasTags applies the HasEdge predicate on the "tags" edge.

func HasTagsWith

func HasTagsWith(preds ...predicate.Tag) predicate.Node

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

func HideChildTree

func HideChildTree(v bool) predicate.Node

HideChildTree applies equality check predicate on the "hide_child_tree" field. It's identical to HideChildTreeEQ.

func HideChildTreeEQ

func HideChildTreeEQ(v bool) predicate.Node

HideChildTreeEQ applies the EQ predicate on the "hide_child_tree" field.

func HideChildTreeNEQ

func HideChildTreeNEQ(v bool) predicate.Node

HideChildTreeNEQ applies the NEQ predicate on the "hide_child_tree" field.

func ID

func ID(id xid.ID) predicate.Node

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id xid.ID) predicate.Node

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id xid.ID) predicate.Node

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id xid.ID) predicate.Node

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...xid.ID) predicate.Node

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id xid.ID) predicate.Node

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id xid.ID) predicate.Node

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id xid.ID) predicate.Node

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...xid.ID) predicate.Node

IDNotIn applies the NotIn predicate on the ID field.

func IndexedAt

func IndexedAt(v time.Time) predicate.Node

IndexedAt applies equality check predicate on the "indexed_at" field. It's identical to IndexedAtEQ.

func IndexedAtEQ

func IndexedAtEQ(v time.Time) predicate.Node

IndexedAtEQ applies the EQ predicate on the "indexed_at" field.

func IndexedAtGT

func IndexedAtGT(v time.Time) predicate.Node

IndexedAtGT applies the GT predicate on the "indexed_at" field.

func IndexedAtGTE

func IndexedAtGTE(v time.Time) predicate.Node

IndexedAtGTE applies the GTE predicate on the "indexed_at" field.

func IndexedAtIn

func IndexedAtIn(vs ...time.Time) predicate.Node

IndexedAtIn applies the In predicate on the "indexed_at" field.

func IndexedAtIsNil

func IndexedAtIsNil() predicate.Node

IndexedAtIsNil applies the IsNil predicate on the "indexed_at" field.

func IndexedAtLT

func IndexedAtLT(v time.Time) predicate.Node

IndexedAtLT applies the LT predicate on the "indexed_at" field.

func IndexedAtLTE

func IndexedAtLTE(v time.Time) predicate.Node

IndexedAtLTE applies the LTE predicate on the "indexed_at" field.

func IndexedAtNEQ

func IndexedAtNEQ(v time.Time) predicate.Node

IndexedAtNEQ applies the NEQ predicate on the "indexed_at" field.

func IndexedAtNotIn

func IndexedAtNotIn(vs ...time.Time) predicate.Node

IndexedAtNotIn applies the NotIn predicate on the "indexed_at" field.

func IndexedAtNotNil

func IndexedAtNotNil() predicate.Node

IndexedAtNotNil applies the NotNil predicate on the "indexed_at" field.

func LinkID

func LinkID(v xid.ID) predicate.Node

LinkID applies equality check predicate on the "link_id" field. It's identical to LinkIDEQ.

func LinkIDContains

func LinkIDContains(v xid.ID) predicate.Node

LinkIDContains applies the Contains predicate on the "link_id" field.

func LinkIDContainsFold

func LinkIDContainsFold(v xid.ID) predicate.Node

LinkIDContainsFold applies the ContainsFold predicate on the "link_id" field.

func LinkIDEQ

func LinkIDEQ(v xid.ID) predicate.Node

LinkIDEQ applies the EQ predicate on the "link_id" field.

func LinkIDEqualFold

func LinkIDEqualFold(v xid.ID) predicate.Node

LinkIDEqualFold applies the EqualFold predicate on the "link_id" field.

func LinkIDGT

func LinkIDGT(v xid.ID) predicate.Node

LinkIDGT applies the GT predicate on the "link_id" field.

func LinkIDGTE

func LinkIDGTE(v xid.ID) predicate.Node

LinkIDGTE applies the GTE predicate on the "link_id" field.

func LinkIDHasPrefix

func LinkIDHasPrefix(v xid.ID) predicate.Node

LinkIDHasPrefix applies the HasPrefix predicate on the "link_id" field.

func LinkIDHasSuffix

func LinkIDHasSuffix(v xid.ID) predicate.Node

LinkIDHasSuffix applies the HasSuffix predicate on the "link_id" field.

func LinkIDIn

func LinkIDIn(vs ...xid.ID) predicate.Node

LinkIDIn applies the In predicate on the "link_id" field.

func LinkIDIsNil

func LinkIDIsNil() predicate.Node

LinkIDIsNil applies the IsNil predicate on the "link_id" field.

func LinkIDLT

func LinkIDLT(v xid.ID) predicate.Node

LinkIDLT applies the LT predicate on the "link_id" field.

func LinkIDLTE

func LinkIDLTE(v xid.ID) predicate.Node

LinkIDLTE applies the LTE predicate on the "link_id" field.

func LinkIDNEQ

func LinkIDNEQ(v xid.ID) predicate.Node

LinkIDNEQ applies the NEQ predicate on the "link_id" field.

func LinkIDNotIn

func LinkIDNotIn(vs ...xid.ID) predicate.Node

LinkIDNotIn applies the NotIn predicate on the "link_id" field.

func LinkIDNotNil

func LinkIDNotNil() predicate.Node

LinkIDNotNil applies the NotNil predicate on the "link_id" field.

func MetadataIsNil

func MetadataIsNil() predicate.Node

MetadataIsNil applies the IsNil predicate on the "metadata" field.

func MetadataNotNil

func MetadataNotNil() predicate.Node

MetadataNotNil applies the NotNil predicate on the "metadata" field.

func Name

func Name(v string) predicate.Node

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

func NameContains

func NameContains(v string) predicate.Node

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

func NameContainsFold

func NameContainsFold(v string) predicate.Node

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

func NameEQ

func NameEQ(v string) predicate.Node

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

func NameEqualFold

func NameEqualFold(v string) predicate.Node

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

func NameGT

func NameGT(v string) predicate.Node

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

func NameGTE

func NameGTE(v string) predicate.Node

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Node

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Node

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Node

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

func NameLTE

func NameLTE(v string) predicate.Node

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

func NameNEQ

func NameNEQ(v string) predicate.Node

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

func NameNotIn

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

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.Node) predicate.Node

Or groups predicates with the OR operator between them.

func ParentNodeID

func ParentNodeID(v xid.ID) predicate.Node

ParentNodeID applies equality check predicate on the "parent_node_id" field. It's identical to ParentNodeIDEQ.

func ParentNodeIDContains

func ParentNodeIDContains(v xid.ID) predicate.Node

ParentNodeIDContains applies the Contains predicate on the "parent_node_id" field.

func ParentNodeIDContainsFold

func ParentNodeIDContainsFold(v xid.ID) predicate.Node

ParentNodeIDContainsFold applies the ContainsFold predicate on the "parent_node_id" field.

func ParentNodeIDEQ

func ParentNodeIDEQ(v xid.ID) predicate.Node

ParentNodeIDEQ applies the EQ predicate on the "parent_node_id" field.

func ParentNodeIDEqualFold

func ParentNodeIDEqualFold(v xid.ID) predicate.Node

ParentNodeIDEqualFold applies the EqualFold predicate on the "parent_node_id" field.

func ParentNodeIDGT

func ParentNodeIDGT(v xid.ID) predicate.Node

ParentNodeIDGT applies the GT predicate on the "parent_node_id" field.

func ParentNodeIDGTE

func ParentNodeIDGTE(v xid.ID) predicate.Node

ParentNodeIDGTE applies the GTE predicate on the "parent_node_id" field.

func ParentNodeIDHasPrefix

func ParentNodeIDHasPrefix(v xid.ID) predicate.Node

ParentNodeIDHasPrefix applies the HasPrefix predicate on the "parent_node_id" field.

func ParentNodeIDHasSuffix

func ParentNodeIDHasSuffix(v xid.ID) predicate.Node

ParentNodeIDHasSuffix applies the HasSuffix predicate on the "parent_node_id" field.

func ParentNodeIDIn

func ParentNodeIDIn(vs ...xid.ID) predicate.Node

ParentNodeIDIn applies the In predicate on the "parent_node_id" field.

func ParentNodeIDIsNil

func ParentNodeIDIsNil() predicate.Node

ParentNodeIDIsNil applies the IsNil predicate on the "parent_node_id" field.

func ParentNodeIDLT

func ParentNodeIDLT(v xid.ID) predicate.Node

ParentNodeIDLT applies the LT predicate on the "parent_node_id" field.

func ParentNodeIDLTE

func ParentNodeIDLTE(v xid.ID) predicate.Node

ParentNodeIDLTE applies the LTE predicate on the "parent_node_id" field.

func ParentNodeIDNEQ

func ParentNodeIDNEQ(v xid.ID) predicate.Node

ParentNodeIDNEQ applies the NEQ predicate on the "parent_node_id" field.

func ParentNodeIDNotIn

func ParentNodeIDNotIn(vs ...xid.ID) predicate.Node

ParentNodeIDNotIn applies the NotIn predicate on the "parent_node_id" field.

func ParentNodeIDNotNil

func ParentNodeIDNotNil() predicate.Node

ParentNodeIDNotNil applies the NotNil predicate on the "parent_node_id" field.

func PrimaryAssetID

func PrimaryAssetID(v xid.ID) predicate.Node

PrimaryAssetID applies equality check predicate on the "primary_asset_id" field. It's identical to PrimaryAssetIDEQ.

func PrimaryAssetIDContains

func PrimaryAssetIDContains(v xid.ID) predicate.Node

PrimaryAssetIDContains applies the Contains predicate on the "primary_asset_id" field.

func PrimaryAssetIDContainsFold

func PrimaryAssetIDContainsFold(v xid.ID) predicate.Node

PrimaryAssetIDContainsFold applies the ContainsFold predicate on the "primary_asset_id" field.

func PrimaryAssetIDEQ

func PrimaryAssetIDEQ(v xid.ID) predicate.Node

PrimaryAssetIDEQ applies the EQ predicate on the "primary_asset_id" field.

func PrimaryAssetIDEqualFold

func PrimaryAssetIDEqualFold(v xid.ID) predicate.Node

PrimaryAssetIDEqualFold applies the EqualFold predicate on the "primary_asset_id" field.

func PrimaryAssetIDGT

func PrimaryAssetIDGT(v xid.ID) predicate.Node

PrimaryAssetIDGT applies the GT predicate on the "primary_asset_id" field.

func PrimaryAssetIDGTE

func PrimaryAssetIDGTE(v xid.ID) predicate.Node

PrimaryAssetIDGTE applies the GTE predicate on the "primary_asset_id" field.

func PrimaryAssetIDHasPrefix

func PrimaryAssetIDHasPrefix(v xid.ID) predicate.Node

PrimaryAssetIDHasPrefix applies the HasPrefix predicate on the "primary_asset_id" field.

func PrimaryAssetIDHasSuffix

func PrimaryAssetIDHasSuffix(v xid.ID) predicate.Node

PrimaryAssetIDHasSuffix applies the HasSuffix predicate on the "primary_asset_id" field.

func PrimaryAssetIDIn

func PrimaryAssetIDIn(vs ...xid.ID) predicate.Node

PrimaryAssetIDIn applies the In predicate on the "primary_asset_id" field.

func PrimaryAssetIDIsNil

func PrimaryAssetIDIsNil() predicate.Node

PrimaryAssetIDIsNil applies the IsNil predicate on the "primary_asset_id" field.

func PrimaryAssetIDLT

func PrimaryAssetIDLT(v xid.ID) predicate.Node

PrimaryAssetIDLT applies the LT predicate on the "primary_asset_id" field.

func PrimaryAssetIDLTE

func PrimaryAssetIDLTE(v xid.ID) predicate.Node

PrimaryAssetIDLTE applies the LTE predicate on the "primary_asset_id" field.

func PrimaryAssetIDNEQ

func PrimaryAssetIDNEQ(v xid.ID) predicate.Node

PrimaryAssetIDNEQ applies the NEQ predicate on the "primary_asset_id" field.

func PrimaryAssetIDNotIn

func PrimaryAssetIDNotIn(vs ...xid.ID) predicate.Node

PrimaryAssetIDNotIn applies the NotIn predicate on the "primary_asset_id" field.

func PrimaryAssetIDNotNil

func PrimaryAssetIDNotNil() predicate.Node

PrimaryAssetIDNotNil applies the NotNil predicate on the "primary_asset_id" field.

func PropertySchemaID

func PropertySchemaID(v xid.ID) predicate.Node

PropertySchemaID applies equality check predicate on the "property_schema_id" field. It's identical to PropertySchemaIDEQ.

func PropertySchemaIDContains

func PropertySchemaIDContains(v xid.ID) predicate.Node

PropertySchemaIDContains applies the Contains predicate on the "property_schema_id" field.

func PropertySchemaIDContainsFold

func PropertySchemaIDContainsFold(v xid.ID) predicate.Node

PropertySchemaIDContainsFold applies the ContainsFold predicate on the "property_schema_id" field.

func PropertySchemaIDEQ

func PropertySchemaIDEQ(v xid.ID) predicate.Node

PropertySchemaIDEQ applies the EQ predicate on the "property_schema_id" field.

func PropertySchemaIDEqualFold

func PropertySchemaIDEqualFold(v xid.ID) predicate.Node

PropertySchemaIDEqualFold applies the EqualFold predicate on the "property_schema_id" field.

func PropertySchemaIDGT

func PropertySchemaIDGT(v xid.ID) predicate.Node

PropertySchemaIDGT applies the GT predicate on the "property_schema_id" field.

func PropertySchemaIDGTE

func PropertySchemaIDGTE(v xid.ID) predicate.Node

PropertySchemaIDGTE applies the GTE predicate on the "property_schema_id" field.

func PropertySchemaIDHasPrefix

func PropertySchemaIDHasPrefix(v xid.ID) predicate.Node

PropertySchemaIDHasPrefix applies the HasPrefix predicate on the "property_schema_id" field.

func PropertySchemaIDHasSuffix

func PropertySchemaIDHasSuffix(v xid.ID) predicate.Node

PropertySchemaIDHasSuffix applies the HasSuffix predicate on the "property_schema_id" field.

func PropertySchemaIDIn

func PropertySchemaIDIn(vs ...xid.ID) predicate.Node

PropertySchemaIDIn applies the In predicate on the "property_schema_id" field.

func PropertySchemaIDIsNil

func PropertySchemaIDIsNil() predicate.Node

PropertySchemaIDIsNil applies the IsNil predicate on the "property_schema_id" field.

func PropertySchemaIDLT

func PropertySchemaIDLT(v xid.ID) predicate.Node

PropertySchemaIDLT applies the LT predicate on the "property_schema_id" field.

func PropertySchemaIDLTE

func PropertySchemaIDLTE(v xid.ID) predicate.Node

PropertySchemaIDLTE applies the LTE predicate on the "property_schema_id" field.

func PropertySchemaIDNEQ

func PropertySchemaIDNEQ(v xid.ID) predicate.Node

PropertySchemaIDNEQ applies the NEQ predicate on the "property_schema_id" field.

func PropertySchemaIDNotIn

func PropertySchemaIDNotIn(vs ...xid.ID) predicate.Node

PropertySchemaIDNotIn applies the NotIn predicate on the "property_schema_id" field.

func PropertySchemaIDNotNil

func PropertySchemaIDNotNil() predicate.Node

PropertySchemaIDNotNil applies the NotNil predicate on the "property_schema_id" field.

func Slug

func Slug(v string) predicate.Node

Slug applies equality check predicate on the "slug" field. It's identical to SlugEQ.

func SlugContains

func SlugContains(v string) predicate.Node

SlugContains applies the Contains predicate on the "slug" field.

func SlugContainsFold

func SlugContainsFold(v string) predicate.Node

SlugContainsFold applies the ContainsFold predicate on the "slug" field.

func SlugEQ

func SlugEQ(v string) predicate.Node

SlugEQ applies the EQ predicate on the "slug" field.

func SlugEqualFold

func SlugEqualFold(v string) predicate.Node

SlugEqualFold applies the EqualFold predicate on the "slug" field.

func SlugGT

func SlugGT(v string) predicate.Node

SlugGT applies the GT predicate on the "slug" field.

func SlugGTE

func SlugGTE(v string) predicate.Node

SlugGTE applies the GTE predicate on the "slug" field.

func SlugHasPrefix

func SlugHasPrefix(v string) predicate.Node

SlugHasPrefix applies the HasPrefix predicate on the "slug" field.

func SlugHasSuffix

func SlugHasSuffix(v string) predicate.Node

SlugHasSuffix applies the HasSuffix predicate on the "slug" field.

func SlugIn

func SlugIn(vs ...string) predicate.Node

SlugIn applies the In predicate on the "slug" field.

func SlugLT

func SlugLT(v string) predicate.Node

SlugLT applies the LT predicate on the "slug" field.

func SlugLTE

func SlugLTE(v string) predicate.Node

SlugLTE applies the LTE predicate on the "slug" field.

func SlugNEQ

func SlugNEQ(v string) predicate.Node

SlugNEQ applies the NEQ predicate on the "slug" field.

func SlugNotIn

func SlugNotIn(vs ...string) predicate.Node

SlugNotIn applies the NotIn predicate on the "slug" field.

func Sort

func Sort(v lexorank.Key) predicate.Node

Sort applies equality check predicate on the "sort" field. It's identical to SortEQ.

func SortContains

func SortContains(v lexorank.Key) predicate.Node

SortContains applies the Contains predicate on the "sort" field.

func SortContainsFold

func SortContainsFold(v lexorank.Key) predicate.Node

SortContainsFold applies the ContainsFold predicate on the "sort" field.

func SortEQ

func SortEQ(v lexorank.Key) predicate.Node

SortEQ applies the EQ predicate on the "sort" field.

func SortEqualFold

func SortEqualFold(v lexorank.Key) predicate.Node

SortEqualFold applies the EqualFold predicate on the "sort" field.

func SortGT

func SortGT(v lexorank.Key) predicate.Node

SortGT applies the GT predicate on the "sort" field.

func SortGTE

func SortGTE(v lexorank.Key) predicate.Node

SortGTE applies the GTE predicate on the "sort" field.

func SortHasPrefix

func SortHasPrefix(v lexorank.Key) predicate.Node

SortHasPrefix applies the HasPrefix predicate on the "sort" field.

func SortHasSuffix

func SortHasSuffix(v lexorank.Key) predicate.Node

SortHasSuffix applies the HasSuffix predicate on the "sort" field.

func SortIn

func SortIn(vs ...lexorank.Key) predicate.Node

SortIn applies the In predicate on the "sort" field.

func SortLT

func SortLT(v lexorank.Key) predicate.Node

SortLT applies the LT predicate on the "sort" field.

func SortLTE

func SortLTE(v lexorank.Key) predicate.Node

SortLTE applies the LTE predicate on the "sort" field.

func SortNEQ

func SortNEQ(v lexorank.Key) predicate.Node

SortNEQ applies the NEQ predicate on the "sort" field.

func SortNotIn

func SortNotIn(vs ...lexorank.Key) predicate.Node

SortNotIn applies the NotIn predicate on the "sort" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Node

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Node

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Node

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Node

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Node

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Node

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Node

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

func UpdatedAtNotIn

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

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 VisibilityEQ

func VisibilityEQ(v Visibility) predicate.Node

VisibilityEQ applies the EQ predicate on the "visibility" field.

func VisibilityIn

func VisibilityIn(vs ...Visibility) predicate.Node

VisibilityIn applies the In predicate on the "visibility" field.

func VisibilityNEQ

func VisibilityNEQ(v Visibility) predicate.Node

VisibilityNEQ applies the NEQ predicate on the "visibility" field.

func VisibilityNotIn

func VisibilityNotIn(vs ...Visibility) predicate.Node

VisibilityNotIn applies the NotIn predicate on the "visibility" field.

func VisibilityValidator

func VisibilityValidator(v Visibility) error

VisibilityValidator is a validator for the "visibility" field enum values. It is called by the builders before save.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Node queries.

func ByAccountID

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

ByAccountID orders the results by the account_id field.

func ByAssets

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

ByAssets orders the results by assets terms.

func ByAssetsCount

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

ByAssetsCount orders the results by assets count.

func ByCollectionNodes

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

ByCollectionNodes orders the results by collection_nodes terms.

func ByCollectionNodesCount

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

ByCollectionNodesCount orders the results by collection_nodes count.

func ByCollections

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

ByCollections orders the results by collections terms.

func ByCollectionsCount

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

ByCollectionsCount orders the results by collections count.

func ByContent

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

ByContent orders the results by the content field.

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

ByContentLinks orders the results by content_links terms.

func ByContentLinksCount

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

ByContentLinksCount orders the results by content_links count.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByDeletedAt

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

ByDeletedAt orders the results by the deleted_at field.

func ByDescription

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

ByDescription orders the results by the description field.

func ByHideChildTree

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

ByHideChildTree orders the results by the hide_child_tree field.

func ByID

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

ByID orders the results by the id field.

func ByIndexedAt

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

ByIndexedAt orders the results by the indexed_at field.

func ByLinkField

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

ByLinkField orders the results by link field.

func ByLinkID

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

ByLinkID orders the results by the link_id field.

func ByName

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

ByName orders the results by the name field.

func ByNodes

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

ByNodes orders the results by nodes terms.

func ByNodesCount

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

ByNodesCount orders the results by nodes count.

func ByOwnerField

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

ByOwnerField orders the results by owner field.

func ByParentField

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

ByParentField orders the results by parent field.

func ByParentNodeID

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

ByParentNodeID orders the results by the parent_node_id field.

func ByPrimaryAssetID

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

ByPrimaryAssetID orders the results by the primary_asset_id field.

func ByPrimaryImageField

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

ByPrimaryImageField orders the results by primary_image field.

func ByProperties

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

ByProperties orders the results by properties terms.

func ByPropertiesCount

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

ByPropertiesCount orders the results by properties count.

func ByPropertySchemaField

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

ByPropertySchemaField orders the results by property_schema field.

func ByPropertySchemaID

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

ByPropertySchemaID orders the results by the property_schema_id field.

func BySlug

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

BySlug orders the results by the slug field.

func BySort

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

BySort orders the results by the sort field.

func ByTags

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

ByTags orders the results by tags terms.

func ByTagsCount

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

ByTagsCount orders the results by tags count.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

func ByVisibility

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

ByVisibility orders the results by the visibility field.

type Visibility

type Visibility string

Visibility defines the type for the "visibility" enum field.

const (
	VisibilityDraft     Visibility = "draft"
	VisibilityUnlisted  Visibility = "unlisted"
	VisibilityReview    Visibility = "review"
	VisibilityPublished Visibility = "published"
)

Visibility values.

func (Visibility) String

func (v Visibility) String() string

Jump to

Keyboard shortcuts

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