functiondefinition

package
v0.99.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2026 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the functiondefinition type in the database.
	Label = "function_definition"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldMetadataDraft holds the string denoting the metadata_draft field in the database.
	FieldMetadataDraft = "metadata_draft"
	// FieldEntrypointDraft holds the string denoting the entrypoint_draft field in the database.
	FieldEntrypointDraft = "entrypoint_draft"
	// FieldSourceDraft holds the string denoting the source_draft field in the database.
	FieldSourceDraft = "source_draft"
	// FieldMetadataPublished holds the string denoting the metadata_published field in the database.
	FieldMetadataPublished = "metadata_published"
	// FieldEntrypointPublished holds the string denoting the entrypoint_published field in the database.
	FieldEntrypointPublished = "entrypoint_published"
	// FieldSourcePublished holds the string denoting the source_published field in the database.
	FieldSourcePublished = "source_published"
	// FieldVersion holds the string denoting the version field in the database.
	FieldVersion = "version"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldCreatedBy holds the string denoting the created_by field in the database.
	FieldCreatedBy = "created_by"
	// 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"
	// Table holds the table name of the functiondefinition in the database.
	Table = "function_definitions"
)
View Source
const DefaultStatus = StatusDraft

StatusDraft is the default value of the Status enum.

Variables

View Source
var (
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// DefaultMetadataDraft holds the default value on creation for the "metadata_draft" field.
	DefaultMetadataDraft string
	// DefaultEntrypointDraft holds the default value on creation for the "entrypoint_draft" field.
	DefaultEntrypointDraft string
	// DefaultSourceDraft holds the default value on creation for the "source_draft" field.
	DefaultSourceDraft string
	// DefaultVersion holds the default value on creation for the "version" field.
	DefaultVersion int
	// DefaultCreatedBy holds the default value on creation for the "created_by" field.
	DefaultCreatedBy string
	// 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
)

Columns holds all SQL columns for functiondefinition fields.

Functions

func And

And groups predicates with the AND operator between them.

func CreatedAt

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.FunctionDefinition

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.FunctionDefinition

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.FunctionDefinition

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.FunctionDefinition

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.FunctionDefinition

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.FunctionDefinition

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

func CreatedAtNotIn

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

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

func CreatedBy

func CreatedBy(v string) predicate.FunctionDefinition

CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.

func CreatedByContains

func CreatedByContains(v string) predicate.FunctionDefinition

CreatedByContains applies the Contains predicate on the "created_by" field.

func CreatedByContainsFold

func CreatedByContainsFold(v string) predicate.FunctionDefinition

CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field.

func CreatedByEQ

func CreatedByEQ(v string) predicate.FunctionDefinition

CreatedByEQ applies the EQ predicate on the "created_by" field.

func CreatedByEqualFold

func CreatedByEqualFold(v string) predicate.FunctionDefinition

CreatedByEqualFold applies the EqualFold predicate on the "created_by" field.

func CreatedByGT

func CreatedByGT(v string) predicate.FunctionDefinition

CreatedByGT applies the GT predicate on the "created_by" field.

func CreatedByGTE

func CreatedByGTE(v string) predicate.FunctionDefinition

CreatedByGTE applies the GTE predicate on the "created_by" field.

func CreatedByHasPrefix

func CreatedByHasPrefix(v string) predicate.FunctionDefinition

CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field.

func CreatedByHasSuffix

func CreatedByHasSuffix(v string) predicate.FunctionDefinition

CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field.

func CreatedByIn

func CreatedByIn(vs ...string) predicate.FunctionDefinition

CreatedByIn applies the In predicate on the "created_by" field.

func CreatedByLT

func CreatedByLT(v string) predicate.FunctionDefinition

CreatedByLT applies the LT predicate on the "created_by" field.

func CreatedByLTE

func CreatedByLTE(v string) predicate.FunctionDefinition

CreatedByLTE applies the LTE predicate on the "created_by" field.

func CreatedByNEQ

func CreatedByNEQ(v string) predicate.FunctionDefinition

CreatedByNEQ applies the NEQ predicate on the "created_by" field.

func CreatedByNotIn

func CreatedByNotIn(vs ...string) predicate.FunctionDefinition

CreatedByNotIn applies the NotIn predicate on the "created_by" field.

func EntrypointDraft

func EntrypointDraft(v string) predicate.FunctionDefinition

EntrypointDraft applies equality check predicate on the "entrypoint_draft" field. It's identical to EntrypointDraftEQ.

func EntrypointDraftContains

func EntrypointDraftContains(v string) predicate.FunctionDefinition

EntrypointDraftContains applies the Contains predicate on the "entrypoint_draft" field.

func EntrypointDraftContainsFold

func EntrypointDraftContainsFold(v string) predicate.FunctionDefinition

EntrypointDraftContainsFold applies the ContainsFold predicate on the "entrypoint_draft" field.

func EntrypointDraftEQ

func EntrypointDraftEQ(v string) predicate.FunctionDefinition

EntrypointDraftEQ applies the EQ predicate on the "entrypoint_draft" field.

func EntrypointDraftEqualFold

func EntrypointDraftEqualFold(v string) predicate.FunctionDefinition

EntrypointDraftEqualFold applies the EqualFold predicate on the "entrypoint_draft" field.

func EntrypointDraftGT

func EntrypointDraftGT(v string) predicate.FunctionDefinition

EntrypointDraftGT applies the GT predicate on the "entrypoint_draft" field.

func EntrypointDraftGTE

func EntrypointDraftGTE(v string) predicate.FunctionDefinition

EntrypointDraftGTE applies the GTE predicate on the "entrypoint_draft" field.

func EntrypointDraftHasPrefix

func EntrypointDraftHasPrefix(v string) predicate.FunctionDefinition

EntrypointDraftHasPrefix applies the HasPrefix predicate on the "entrypoint_draft" field.

func EntrypointDraftHasSuffix

func EntrypointDraftHasSuffix(v string) predicate.FunctionDefinition

EntrypointDraftHasSuffix applies the HasSuffix predicate on the "entrypoint_draft" field.

func EntrypointDraftIn

func EntrypointDraftIn(vs ...string) predicate.FunctionDefinition

EntrypointDraftIn applies the In predicate on the "entrypoint_draft" field.

func EntrypointDraftLT

func EntrypointDraftLT(v string) predicate.FunctionDefinition

EntrypointDraftLT applies the LT predicate on the "entrypoint_draft" field.

func EntrypointDraftLTE

func EntrypointDraftLTE(v string) predicate.FunctionDefinition

EntrypointDraftLTE applies the LTE predicate on the "entrypoint_draft" field.

func EntrypointDraftNEQ

func EntrypointDraftNEQ(v string) predicate.FunctionDefinition

EntrypointDraftNEQ applies the NEQ predicate on the "entrypoint_draft" field.

func EntrypointDraftNotIn

func EntrypointDraftNotIn(vs ...string) predicate.FunctionDefinition

EntrypointDraftNotIn applies the NotIn predicate on the "entrypoint_draft" field.

func EntrypointPublished

func EntrypointPublished(v string) predicate.FunctionDefinition

EntrypointPublished applies equality check predicate on the "entrypoint_published" field. It's identical to EntrypointPublishedEQ.

func EntrypointPublishedContains

func EntrypointPublishedContains(v string) predicate.FunctionDefinition

EntrypointPublishedContains applies the Contains predicate on the "entrypoint_published" field.

func EntrypointPublishedContainsFold

func EntrypointPublishedContainsFold(v string) predicate.FunctionDefinition

EntrypointPublishedContainsFold applies the ContainsFold predicate on the "entrypoint_published" field.

func EntrypointPublishedEQ

func EntrypointPublishedEQ(v string) predicate.FunctionDefinition

EntrypointPublishedEQ applies the EQ predicate on the "entrypoint_published" field.

func EntrypointPublishedEqualFold

func EntrypointPublishedEqualFold(v string) predicate.FunctionDefinition

EntrypointPublishedEqualFold applies the EqualFold predicate on the "entrypoint_published" field.

func EntrypointPublishedGT

func EntrypointPublishedGT(v string) predicate.FunctionDefinition

EntrypointPublishedGT applies the GT predicate on the "entrypoint_published" field.

func EntrypointPublishedGTE

func EntrypointPublishedGTE(v string) predicate.FunctionDefinition

EntrypointPublishedGTE applies the GTE predicate on the "entrypoint_published" field.

func EntrypointPublishedHasPrefix

func EntrypointPublishedHasPrefix(v string) predicate.FunctionDefinition

EntrypointPublishedHasPrefix applies the HasPrefix predicate on the "entrypoint_published" field.

func EntrypointPublishedHasSuffix

func EntrypointPublishedHasSuffix(v string) predicate.FunctionDefinition

EntrypointPublishedHasSuffix applies the HasSuffix predicate on the "entrypoint_published" field.

func EntrypointPublishedIn

func EntrypointPublishedIn(vs ...string) predicate.FunctionDefinition

EntrypointPublishedIn applies the In predicate on the "entrypoint_published" field.

func EntrypointPublishedIsNil

func EntrypointPublishedIsNil() predicate.FunctionDefinition

EntrypointPublishedIsNil applies the IsNil predicate on the "entrypoint_published" field.

func EntrypointPublishedLT

func EntrypointPublishedLT(v string) predicate.FunctionDefinition

EntrypointPublishedLT applies the LT predicate on the "entrypoint_published" field.

func EntrypointPublishedLTE

func EntrypointPublishedLTE(v string) predicate.FunctionDefinition

EntrypointPublishedLTE applies the LTE predicate on the "entrypoint_published" field.

func EntrypointPublishedNEQ

func EntrypointPublishedNEQ(v string) predicate.FunctionDefinition

EntrypointPublishedNEQ applies the NEQ predicate on the "entrypoint_published" field.

func EntrypointPublishedNotIn

func EntrypointPublishedNotIn(vs ...string) predicate.FunctionDefinition

EntrypointPublishedNotIn applies the NotIn predicate on the "entrypoint_published" field.

func EntrypointPublishedNotNil

func EntrypointPublishedNotNil() predicate.FunctionDefinition

EntrypointPublishedNotNil applies the NotNil predicate on the "entrypoint_published" field.

func ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int64) predicate.FunctionDefinition

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int64) predicate.FunctionDefinition

IDNotIn applies the NotIn predicate on the ID field.

func MetadataDraft

func MetadataDraft(v string) predicate.FunctionDefinition

MetadataDraft applies equality check predicate on the "metadata_draft" field. It's identical to MetadataDraftEQ.

func MetadataDraftContains

func MetadataDraftContains(v string) predicate.FunctionDefinition

MetadataDraftContains applies the Contains predicate on the "metadata_draft" field.

func MetadataDraftContainsFold

func MetadataDraftContainsFold(v string) predicate.FunctionDefinition

MetadataDraftContainsFold applies the ContainsFold predicate on the "metadata_draft" field.

func MetadataDraftEQ

func MetadataDraftEQ(v string) predicate.FunctionDefinition

MetadataDraftEQ applies the EQ predicate on the "metadata_draft" field.

func MetadataDraftEqualFold

func MetadataDraftEqualFold(v string) predicate.FunctionDefinition

MetadataDraftEqualFold applies the EqualFold predicate on the "metadata_draft" field.

func MetadataDraftGT

func MetadataDraftGT(v string) predicate.FunctionDefinition

MetadataDraftGT applies the GT predicate on the "metadata_draft" field.

func MetadataDraftGTE

func MetadataDraftGTE(v string) predicate.FunctionDefinition

MetadataDraftGTE applies the GTE predicate on the "metadata_draft" field.

func MetadataDraftHasPrefix

func MetadataDraftHasPrefix(v string) predicate.FunctionDefinition

MetadataDraftHasPrefix applies the HasPrefix predicate on the "metadata_draft" field.

func MetadataDraftHasSuffix

func MetadataDraftHasSuffix(v string) predicate.FunctionDefinition

MetadataDraftHasSuffix applies the HasSuffix predicate on the "metadata_draft" field.

func MetadataDraftIn

func MetadataDraftIn(vs ...string) predicate.FunctionDefinition

MetadataDraftIn applies the In predicate on the "metadata_draft" field.

func MetadataDraftLT

func MetadataDraftLT(v string) predicate.FunctionDefinition

MetadataDraftLT applies the LT predicate on the "metadata_draft" field.

func MetadataDraftLTE

func MetadataDraftLTE(v string) predicate.FunctionDefinition

MetadataDraftLTE applies the LTE predicate on the "metadata_draft" field.

func MetadataDraftNEQ

func MetadataDraftNEQ(v string) predicate.FunctionDefinition

MetadataDraftNEQ applies the NEQ predicate on the "metadata_draft" field.

func MetadataDraftNotIn

func MetadataDraftNotIn(vs ...string) predicate.FunctionDefinition

MetadataDraftNotIn applies the NotIn predicate on the "metadata_draft" field.

func MetadataPublished

func MetadataPublished(v string) predicate.FunctionDefinition

MetadataPublished applies equality check predicate on the "metadata_published" field. It's identical to MetadataPublishedEQ.

func MetadataPublishedContains

func MetadataPublishedContains(v string) predicate.FunctionDefinition

MetadataPublishedContains applies the Contains predicate on the "metadata_published" field.

func MetadataPublishedContainsFold

func MetadataPublishedContainsFold(v string) predicate.FunctionDefinition

MetadataPublishedContainsFold applies the ContainsFold predicate on the "metadata_published" field.

func MetadataPublishedEQ

func MetadataPublishedEQ(v string) predicate.FunctionDefinition

MetadataPublishedEQ applies the EQ predicate on the "metadata_published" field.

func MetadataPublishedEqualFold

func MetadataPublishedEqualFold(v string) predicate.FunctionDefinition

MetadataPublishedEqualFold applies the EqualFold predicate on the "metadata_published" field.

func MetadataPublishedGT

func MetadataPublishedGT(v string) predicate.FunctionDefinition

MetadataPublishedGT applies the GT predicate on the "metadata_published" field.

func MetadataPublishedGTE

func MetadataPublishedGTE(v string) predicate.FunctionDefinition

MetadataPublishedGTE applies the GTE predicate on the "metadata_published" field.

func MetadataPublishedHasPrefix

func MetadataPublishedHasPrefix(v string) predicate.FunctionDefinition

MetadataPublishedHasPrefix applies the HasPrefix predicate on the "metadata_published" field.

func MetadataPublishedHasSuffix

func MetadataPublishedHasSuffix(v string) predicate.FunctionDefinition

MetadataPublishedHasSuffix applies the HasSuffix predicate on the "metadata_published" field.

func MetadataPublishedIn

func MetadataPublishedIn(vs ...string) predicate.FunctionDefinition

MetadataPublishedIn applies the In predicate on the "metadata_published" field.

func MetadataPublishedIsNil

func MetadataPublishedIsNil() predicate.FunctionDefinition

MetadataPublishedIsNil applies the IsNil predicate on the "metadata_published" field.

func MetadataPublishedLT

func MetadataPublishedLT(v string) predicate.FunctionDefinition

MetadataPublishedLT applies the LT predicate on the "metadata_published" field.

func MetadataPublishedLTE

func MetadataPublishedLTE(v string) predicate.FunctionDefinition

MetadataPublishedLTE applies the LTE predicate on the "metadata_published" field.

func MetadataPublishedNEQ

func MetadataPublishedNEQ(v string) predicate.FunctionDefinition

MetadataPublishedNEQ applies the NEQ predicate on the "metadata_published" field.

func MetadataPublishedNotIn

func MetadataPublishedNotIn(vs ...string) predicate.FunctionDefinition

MetadataPublishedNotIn applies the NotIn predicate on the "metadata_published" field.

func MetadataPublishedNotNil

func MetadataPublishedNotNil() predicate.FunctionDefinition

MetadataPublishedNotNil applies the NotNil predicate on the "metadata_published" field.

func Name

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

func NameContains

func NameContains(v string) predicate.FunctionDefinition

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

func NameContainsFold

func NameContainsFold(v string) predicate.FunctionDefinition

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

func NameEQ

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

func NameEqualFold

func NameEqualFold(v string) predicate.FunctionDefinition

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

func NameGT

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

func NameGTE

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.FunctionDefinition

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.FunctionDefinition

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

func NameIn

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

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

func NameLT

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

func NameLTE

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

func NameNEQ

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

func NameNotIn

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

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

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func SourceDraft

func SourceDraft(v string) predicate.FunctionDefinition

SourceDraft applies equality check predicate on the "source_draft" field. It's identical to SourceDraftEQ.

func SourceDraftContains

func SourceDraftContains(v string) predicate.FunctionDefinition

SourceDraftContains applies the Contains predicate on the "source_draft" field.

func SourceDraftContainsFold

func SourceDraftContainsFold(v string) predicate.FunctionDefinition

SourceDraftContainsFold applies the ContainsFold predicate on the "source_draft" field.

func SourceDraftEQ

func SourceDraftEQ(v string) predicate.FunctionDefinition

SourceDraftEQ applies the EQ predicate on the "source_draft" field.

func SourceDraftEqualFold

func SourceDraftEqualFold(v string) predicate.FunctionDefinition

SourceDraftEqualFold applies the EqualFold predicate on the "source_draft" field.

func SourceDraftGT

func SourceDraftGT(v string) predicate.FunctionDefinition

SourceDraftGT applies the GT predicate on the "source_draft" field.

func SourceDraftGTE

func SourceDraftGTE(v string) predicate.FunctionDefinition

SourceDraftGTE applies the GTE predicate on the "source_draft" field.

func SourceDraftHasPrefix

func SourceDraftHasPrefix(v string) predicate.FunctionDefinition

SourceDraftHasPrefix applies the HasPrefix predicate on the "source_draft" field.

func SourceDraftHasSuffix

func SourceDraftHasSuffix(v string) predicate.FunctionDefinition

SourceDraftHasSuffix applies the HasSuffix predicate on the "source_draft" field.

func SourceDraftIn

func SourceDraftIn(vs ...string) predicate.FunctionDefinition

SourceDraftIn applies the In predicate on the "source_draft" field.

func SourceDraftLT

func SourceDraftLT(v string) predicate.FunctionDefinition

SourceDraftLT applies the LT predicate on the "source_draft" field.

func SourceDraftLTE

func SourceDraftLTE(v string) predicate.FunctionDefinition

SourceDraftLTE applies the LTE predicate on the "source_draft" field.

func SourceDraftNEQ

func SourceDraftNEQ(v string) predicate.FunctionDefinition

SourceDraftNEQ applies the NEQ predicate on the "source_draft" field.

func SourceDraftNotIn

func SourceDraftNotIn(vs ...string) predicate.FunctionDefinition

SourceDraftNotIn applies the NotIn predicate on the "source_draft" field.

func SourcePublished

func SourcePublished(v string) predicate.FunctionDefinition

SourcePublished applies equality check predicate on the "source_published" field. It's identical to SourcePublishedEQ.

func SourcePublishedContains

func SourcePublishedContains(v string) predicate.FunctionDefinition

SourcePublishedContains applies the Contains predicate on the "source_published" field.

func SourcePublishedContainsFold

func SourcePublishedContainsFold(v string) predicate.FunctionDefinition

SourcePublishedContainsFold applies the ContainsFold predicate on the "source_published" field.

func SourcePublishedEQ

func SourcePublishedEQ(v string) predicate.FunctionDefinition

SourcePublishedEQ applies the EQ predicate on the "source_published" field.

func SourcePublishedEqualFold

func SourcePublishedEqualFold(v string) predicate.FunctionDefinition

SourcePublishedEqualFold applies the EqualFold predicate on the "source_published" field.

func SourcePublishedGT

func SourcePublishedGT(v string) predicate.FunctionDefinition

SourcePublishedGT applies the GT predicate on the "source_published" field.

func SourcePublishedGTE

func SourcePublishedGTE(v string) predicate.FunctionDefinition

SourcePublishedGTE applies the GTE predicate on the "source_published" field.

func SourcePublishedHasPrefix

func SourcePublishedHasPrefix(v string) predicate.FunctionDefinition

SourcePublishedHasPrefix applies the HasPrefix predicate on the "source_published" field.

func SourcePublishedHasSuffix

func SourcePublishedHasSuffix(v string) predicate.FunctionDefinition

SourcePublishedHasSuffix applies the HasSuffix predicate on the "source_published" field.

func SourcePublishedIn

func SourcePublishedIn(vs ...string) predicate.FunctionDefinition

SourcePublishedIn applies the In predicate on the "source_published" field.

func SourcePublishedIsNil

func SourcePublishedIsNil() predicate.FunctionDefinition

SourcePublishedIsNil applies the IsNil predicate on the "source_published" field.

func SourcePublishedLT

func SourcePublishedLT(v string) predicate.FunctionDefinition

SourcePublishedLT applies the LT predicate on the "source_published" field.

func SourcePublishedLTE

func SourcePublishedLTE(v string) predicate.FunctionDefinition

SourcePublishedLTE applies the LTE predicate on the "source_published" field.

func SourcePublishedNEQ

func SourcePublishedNEQ(v string) predicate.FunctionDefinition

SourcePublishedNEQ applies the NEQ predicate on the "source_published" field.

func SourcePublishedNotIn

func SourcePublishedNotIn(vs ...string) predicate.FunctionDefinition

SourcePublishedNotIn applies the NotIn predicate on the "source_published" field.

func SourcePublishedNotNil

func SourcePublishedNotNil() predicate.FunctionDefinition

SourcePublishedNotNil applies the NotNil predicate on the "source_published" field.

func StatusEQ

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

func StatusIn

func StatusIn(vs ...Status) predicate.FunctionDefinition

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

func StatusNEQ

func StatusNEQ(v Status) predicate.FunctionDefinition

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

func StatusNotIn

func StatusNotIn(vs ...Status) predicate.FunctionDefinition

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

func StatusValidator

func StatusValidator(s Status) error

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

func UpdatedAt

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.FunctionDefinition

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.FunctionDefinition

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.FunctionDefinition

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.FunctionDefinition

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.FunctionDefinition

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.FunctionDefinition

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

func UpdatedAtNotIn

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

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.FunctionDefinition

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

func VersionEQ

func VersionEQ(v int) predicate.FunctionDefinition

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

func VersionGT

func VersionGT(v int) predicate.FunctionDefinition

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

func VersionGTE

func VersionGTE(v int) predicate.FunctionDefinition

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

func VersionIn

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

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

func VersionLT

func VersionLT(v int) predicate.FunctionDefinition

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

func VersionLTE

func VersionLTE(v int) predicate.FunctionDefinition

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

func VersionNEQ

func VersionNEQ(v int) predicate.FunctionDefinition

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

func VersionNotIn

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

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

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the FunctionDefinition queries.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByCreatedBy

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

ByCreatedBy orders the results by the created_by field.

func ByEntrypointDraft

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

ByEntrypointDraft orders the results by the entrypoint_draft field.

func ByEntrypointPublished

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

ByEntrypointPublished orders the results by the entrypoint_published field.

func ByID

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

ByID orders the results by the id field.

func ByMetadataDraft

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

ByMetadataDraft orders the results by the metadata_draft field.

func ByMetadataPublished

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

ByMetadataPublished orders the results by the metadata_published field.

func ByName

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

ByName orders the results by the name field.

func BySourceDraft

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

BySourceDraft orders the results by the source_draft field.

func BySourcePublished

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

BySourcePublished orders the results by the source_published 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 ByVersion

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

ByVersion orders the results by the version field.

type Status

type Status string

Status defines the type for the "status" enum field.

const (
	StatusDraft     Status = "draft"
	StatusPublished Status = "published"
)

Status values.

func (Status) String

func (s Status) String() string

Jump to

Keyboard shortcuts

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