externalref

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the externalref type in the database.
	Label = "external_ref"
	// 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"
	// FieldRefType holds the string denoting the ref_type field in the database.
	FieldRefType = "ref_type"
	// FieldLocation holds the string denoting the location field in the database.
	FieldLocation = "location"
	// FieldSummary holds the string denoting the summary field in the database.
	FieldSummary = "summary"
	// FieldMetadata holds the string denoting the metadata field in the database.
	FieldMetadata = "metadata"
	// 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 externalref in the database.
	Table = "external_refs"
)

Variables

View Source
var (
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// LocationValidator is a validator for the "location" field. It is called by the builders before save.
	LocationValidator func(string) error
	// 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
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for externalref fields.

Functions

func And

func And(predicates ...predicate.ExternalRef) predicate.ExternalRef

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.ExternalRef

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.ExternalRef

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.ExternalRef

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.ExternalRef

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.ExternalRef

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.ExternalRef

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.ExternalRef

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

func CreatedAtNotIn

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

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

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.ExternalRef

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.ExternalRef

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.ExternalRef

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.ExternalRef

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.ExternalRef

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.ExternalRef

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Location

func Location(v string) predicate.ExternalRef

Location applies equality check predicate on the "location" field. It's identical to LocationEQ.

func LocationContains

func LocationContains(v string) predicate.ExternalRef

LocationContains applies the Contains predicate on the "location" field.

func LocationContainsFold

func LocationContainsFold(v string) predicate.ExternalRef

LocationContainsFold applies the ContainsFold predicate on the "location" field.

func LocationEQ

func LocationEQ(v string) predicate.ExternalRef

LocationEQ applies the EQ predicate on the "location" field.

func LocationEqualFold

func LocationEqualFold(v string) predicate.ExternalRef

LocationEqualFold applies the EqualFold predicate on the "location" field.

func LocationGT

func LocationGT(v string) predicate.ExternalRef

LocationGT applies the GT predicate on the "location" field.

func LocationGTE

func LocationGTE(v string) predicate.ExternalRef

LocationGTE applies the GTE predicate on the "location" field.

func LocationHasPrefix

func LocationHasPrefix(v string) predicate.ExternalRef

LocationHasPrefix applies the HasPrefix predicate on the "location" field.

func LocationHasSuffix

func LocationHasSuffix(v string) predicate.ExternalRef

LocationHasSuffix applies the HasSuffix predicate on the "location" field.

func LocationIn

func LocationIn(vs ...string) predicate.ExternalRef

LocationIn applies the In predicate on the "location" field.

func LocationLT

func LocationLT(v string) predicate.ExternalRef

LocationLT applies the LT predicate on the "location" field.

func LocationLTE

func LocationLTE(v string) predicate.ExternalRef

LocationLTE applies the LTE predicate on the "location" field.

func LocationNEQ

func LocationNEQ(v string) predicate.ExternalRef

LocationNEQ applies the NEQ predicate on the "location" field.

func LocationNotIn

func LocationNotIn(vs ...string) predicate.ExternalRef

LocationNotIn applies the NotIn predicate on the "location" field.

func MetadataIsNil

func MetadataIsNil() predicate.ExternalRef

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

func MetadataNotNil

func MetadataNotNil() predicate.ExternalRef

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

func Name

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

func NameContains

func NameContains(v string) predicate.ExternalRef

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

func NameContainsFold

func NameContainsFold(v string) predicate.ExternalRef

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

func NameEQ

func NameEQ(v string) predicate.ExternalRef

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

func NameEqualFold

func NameEqualFold(v string) predicate.ExternalRef

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

func NameGT

func NameGT(v string) predicate.ExternalRef

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

func NameGTE

func NameGTE(v string) predicate.ExternalRef

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.ExternalRef

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.ExternalRef

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.ExternalRef

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

func NameLTE

func NameLTE(v string) predicate.ExternalRef

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

func NameNEQ

func NameNEQ(v string) predicate.ExternalRef

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

func NameNotIn

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

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

Or groups predicates with the OR operator between them.

func RefTypeEQ

func RefTypeEQ(v RefType) predicate.ExternalRef

RefTypeEQ applies the EQ predicate on the "ref_type" field.

func RefTypeIn

func RefTypeIn(vs ...RefType) predicate.ExternalRef

RefTypeIn applies the In predicate on the "ref_type" field.

func RefTypeNEQ

func RefTypeNEQ(v RefType) predicate.ExternalRef

RefTypeNEQ applies the NEQ predicate on the "ref_type" field.

func RefTypeNotIn

func RefTypeNotIn(vs ...RefType) predicate.ExternalRef

RefTypeNotIn applies the NotIn predicate on the "ref_type" field.

func RefTypeValidator

func RefTypeValidator(rt RefType) error

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

func Summary

func Summary(v string) predicate.ExternalRef

Summary applies equality check predicate on the "summary" field. It's identical to SummaryEQ.

func SummaryContains

func SummaryContains(v string) predicate.ExternalRef

SummaryContains applies the Contains predicate on the "summary" field.

func SummaryContainsFold

func SummaryContainsFold(v string) predicate.ExternalRef

SummaryContainsFold applies the ContainsFold predicate on the "summary" field.

func SummaryEQ

func SummaryEQ(v string) predicate.ExternalRef

SummaryEQ applies the EQ predicate on the "summary" field.

func SummaryEqualFold

func SummaryEqualFold(v string) predicate.ExternalRef

SummaryEqualFold applies the EqualFold predicate on the "summary" field.

func SummaryGT

func SummaryGT(v string) predicate.ExternalRef

SummaryGT applies the GT predicate on the "summary" field.

func SummaryGTE

func SummaryGTE(v string) predicate.ExternalRef

SummaryGTE applies the GTE predicate on the "summary" field.

func SummaryHasPrefix

func SummaryHasPrefix(v string) predicate.ExternalRef

SummaryHasPrefix applies the HasPrefix predicate on the "summary" field.

func SummaryHasSuffix

func SummaryHasSuffix(v string) predicate.ExternalRef

SummaryHasSuffix applies the HasSuffix predicate on the "summary" field.

func SummaryIn

func SummaryIn(vs ...string) predicate.ExternalRef

SummaryIn applies the In predicate on the "summary" field.

func SummaryIsNil

func SummaryIsNil() predicate.ExternalRef

SummaryIsNil applies the IsNil predicate on the "summary" field.

func SummaryLT

func SummaryLT(v string) predicate.ExternalRef

SummaryLT applies the LT predicate on the "summary" field.

func SummaryLTE

func SummaryLTE(v string) predicate.ExternalRef

SummaryLTE applies the LTE predicate on the "summary" field.

func SummaryNEQ

func SummaryNEQ(v string) predicate.ExternalRef

SummaryNEQ applies the NEQ predicate on the "summary" field.

func SummaryNotIn

func SummaryNotIn(vs ...string) predicate.ExternalRef

SummaryNotIn applies the NotIn predicate on the "summary" field.

func SummaryNotNil

func SummaryNotNil() predicate.ExternalRef

SummaryNotNil applies the NotNil predicate on the "summary" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.ExternalRef

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.ExternalRef

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.ExternalRef

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.ExternalRef

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.ExternalRef

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.ExternalRef

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.ExternalRef

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

func UpdatedAtNotIn

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

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

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the ExternalRef queries.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByID

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

ByID orders the results by the id field.

func ByLocation

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

ByLocation orders the results by the location field.

func ByName

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

ByName orders the results by the name field.

func ByRefType

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

ByRefType orders the results by the ref_type field.

func BySummary

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

BySummary orders the results by the summary field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

type RefType

type RefType string

RefType defines the type for the "ref_type" enum field.

const (
	RefTypeURL  RefType = "url"
	RefTypeFile RefType = "file"
	RefTypeMcp  RefType = "mcp"
)

RefType values.

func (RefType) String

func (rt RefType) String() string

Jump to

Keyboard shortcuts

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