object

package
v1.64.1 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the object type in the database.
	Label = "object"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldRef holds the string denoting the ref field in the database.
	FieldRef = "ref"
	// FieldArchiveID holds the string denoting the archive_id field in the database.
	FieldArchiveID = "archive_id"
	// FieldStart holds the string denoting the start field in the database.
	FieldStart = "start"
	// FieldLength holds the string denoting the length field in the database.
	FieldLength = "length"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// FieldCarriedTime holds the string denoting the carried_time field in the database.
	FieldCarriedTime = "carried_time"
	// FieldCarriedOffset holds the string denoting the carried_offset field in the database.
	FieldCarriedOffset = "carried_offset"
	// EdgeArchive holds the string denoting the archive edge name in mutations.
	EdgeArchive = "archive"
	// Table holds the table name of the object in the database.
	Table = "objects"
	// ArchiveTable is the table that holds the archive relation/edge.
	ArchiveTable = "objects"
	// ArchiveInverseTable is the table name for the Archive entity.
	// It exists in this package in order to avoid circular dependency with the "archive" package.
	ArchiveInverseTable = "archives"
	// ArchiveColumn is the table column denoting the archive relation/edge.
	ArchiveColumn = "archive_id"
)

Variables

Columns holds all SQL columns for object fields.

Functions

func And

func And(predicates ...predicate.Object) predicate.Object

And groups predicates with the AND operator between them.

func ArchiveID

func ArchiveID(v string) predicate.Object

ArchiveID applies equality check predicate on the "archive_id" field. It's identical to ArchiveIDEQ.

func ArchiveIDContains

func ArchiveIDContains(v string) predicate.Object

ArchiveIDContains applies the Contains predicate on the "archive_id" field.

func ArchiveIDContainsFold

func ArchiveIDContainsFold(v string) predicate.Object

ArchiveIDContainsFold applies the ContainsFold predicate on the "archive_id" field.

func ArchiveIDEQ

func ArchiveIDEQ(v string) predicate.Object

ArchiveIDEQ applies the EQ predicate on the "archive_id" field.

func ArchiveIDEqualFold

func ArchiveIDEqualFold(v string) predicate.Object

ArchiveIDEqualFold applies the EqualFold predicate on the "archive_id" field.

func ArchiveIDGT

func ArchiveIDGT(v string) predicate.Object

ArchiveIDGT applies the GT predicate on the "archive_id" field.

func ArchiveIDGTE

func ArchiveIDGTE(v string) predicate.Object

ArchiveIDGTE applies the GTE predicate on the "archive_id" field.

func ArchiveIDHasPrefix

func ArchiveIDHasPrefix(v string) predicate.Object

ArchiveIDHasPrefix applies the HasPrefix predicate on the "archive_id" field.

func ArchiveIDHasSuffix

func ArchiveIDHasSuffix(v string) predicate.Object

ArchiveIDHasSuffix applies the HasSuffix predicate on the "archive_id" field.

func ArchiveIDIn

func ArchiveIDIn(vs ...string) predicate.Object

ArchiveIDIn applies the In predicate on the "archive_id" field.

func ArchiveIDLT

func ArchiveIDLT(v string) predicate.Object

ArchiveIDLT applies the LT predicate on the "archive_id" field.

func ArchiveIDLTE

func ArchiveIDLTE(v string) predicate.Object

ArchiveIDLTE applies the LTE predicate on the "archive_id" field.

func ArchiveIDNEQ

func ArchiveIDNEQ(v string) predicate.Object

ArchiveIDNEQ applies the NEQ predicate on the "archive_id" field.

func ArchiveIDNotIn

func ArchiveIDNotIn(vs ...string) predicate.Object

ArchiveIDNotIn applies the NotIn predicate on the "archive_id" field.

func CarriedOffset

func CarriedOffset(v uint32) predicate.Object

CarriedOffset applies equality check predicate on the "carried_offset" field. It's identical to CarriedOffsetEQ.

func CarriedOffsetEQ

func CarriedOffsetEQ(v uint32) predicate.Object

CarriedOffsetEQ applies the EQ predicate on the "carried_offset" field.

func CarriedOffsetGT

func CarriedOffsetGT(v uint32) predicate.Object

CarriedOffsetGT applies the GT predicate on the "carried_offset" field.

func CarriedOffsetGTE

func CarriedOffsetGTE(v uint32) predicate.Object

CarriedOffsetGTE applies the GTE predicate on the "carried_offset" field.

func CarriedOffsetIn

func CarriedOffsetIn(vs ...uint32) predicate.Object

CarriedOffsetIn applies the In predicate on the "carried_offset" field.

func CarriedOffsetIsNil

func CarriedOffsetIsNil() predicate.Object

CarriedOffsetIsNil applies the IsNil predicate on the "carried_offset" field.

func CarriedOffsetLT

func CarriedOffsetLT(v uint32) predicate.Object

CarriedOffsetLT applies the LT predicate on the "carried_offset" field.

func CarriedOffsetLTE

func CarriedOffsetLTE(v uint32) predicate.Object

CarriedOffsetLTE applies the LTE predicate on the "carried_offset" field.

func CarriedOffsetNEQ

func CarriedOffsetNEQ(v uint32) predicate.Object

CarriedOffsetNEQ applies the NEQ predicate on the "carried_offset" field.

func CarriedOffsetNotIn

func CarriedOffsetNotIn(vs ...uint32) predicate.Object

CarriedOffsetNotIn applies the NotIn predicate on the "carried_offset" field.

func CarriedOffsetNotNil

func CarriedOffsetNotNil() predicate.Object

CarriedOffsetNotNil applies the NotNil predicate on the "carried_offset" field.

func CarriedTime

func CarriedTime(v int64) predicate.Object

CarriedTime applies equality check predicate on the "carried_time" field. It's identical to CarriedTimeEQ.

func CarriedTimeEQ

func CarriedTimeEQ(v int64) predicate.Object

CarriedTimeEQ applies the EQ predicate on the "carried_time" field.

func CarriedTimeGT

func CarriedTimeGT(v int64) predicate.Object

CarriedTimeGT applies the GT predicate on the "carried_time" field.

func CarriedTimeGTE

func CarriedTimeGTE(v int64) predicate.Object

CarriedTimeGTE applies the GTE predicate on the "carried_time" field.

func CarriedTimeIn

func CarriedTimeIn(vs ...int64) predicate.Object

CarriedTimeIn applies the In predicate on the "carried_time" field.

func CarriedTimeIsNil

func CarriedTimeIsNil() predicate.Object

CarriedTimeIsNil applies the IsNil predicate on the "carried_time" field.

func CarriedTimeLT

func CarriedTimeLT(v int64) predicate.Object

CarriedTimeLT applies the LT predicate on the "carried_time" field.

func CarriedTimeLTE

func CarriedTimeLTE(v int64) predicate.Object

CarriedTimeLTE applies the LTE predicate on the "carried_time" field.

func CarriedTimeNEQ

func CarriedTimeNEQ(v int64) predicate.Object

CarriedTimeNEQ applies the NEQ predicate on the "carried_time" field.

func CarriedTimeNotIn

func CarriedTimeNotIn(vs ...int64) predicate.Object

CarriedTimeNotIn applies the NotIn predicate on the "carried_time" field.

func CarriedTimeNotNil

func CarriedTimeNotNil() predicate.Object

CarriedTimeNotNil applies the NotNil predicate on the "carried_time" field.

func HasArchive

func HasArchive() predicate.Object

HasArchive applies the HasEdge predicate on the "archive" edge.

func HasArchiveWith

func HasArchiveWith(preds ...predicate.Archive) predicate.Object

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

func ID

func ID(id int) predicate.Object

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Object

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Object

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Object

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Object

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Object

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Object

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Object

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Object

IDNotIn applies the NotIn predicate on the ID field.

func Length

func Length(v uint32) predicate.Object

Length applies equality check predicate on the "length" field. It's identical to LengthEQ.

func LengthEQ

func LengthEQ(v uint32) predicate.Object

LengthEQ applies the EQ predicate on the "length" field.

func LengthGT

func LengthGT(v uint32) predicate.Object

LengthGT applies the GT predicate on the "length" field.

func LengthGTE

func LengthGTE(v uint32) predicate.Object

LengthGTE applies the GTE predicate on the "length" field.

func LengthIn

func LengthIn(vs ...uint32) predicate.Object

LengthIn applies the In predicate on the "length" field.

func LengthLT

func LengthLT(v uint32) predicate.Object

LengthLT applies the LT predicate on the "length" field.

func LengthLTE

func LengthLTE(v uint32) predicate.Object

LengthLTE applies the LTE predicate on the "length" field.

func LengthNEQ

func LengthNEQ(v uint32) predicate.Object

LengthNEQ applies the NEQ predicate on the "length" field.

func LengthNotIn

func LengthNotIn(vs ...uint32) predicate.Object

LengthNotIn applies the NotIn predicate on the "length" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Object) predicate.Object

Or groups predicates with the OR operator between them.

func Ref

func Ref(v []byte) predicate.Object

Ref applies equality check predicate on the "ref" field. It's identical to RefEQ.

func RefEQ

func RefEQ(v []byte) predicate.Object

RefEQ applies the EQ predicate on the "ref" field.

func RefGT

func RefGT(v []byte) predicate.Object

RefGT applies the GT predicate on the "ref" field.

func RefGTE

func RefGTE(v []byte) predicate.Object

RefGTE applies the GTE predicate on the "ref" field.

func RefIn

func RefIn(vs ...[]byte) predicate.Object

RefIn applies the In predicate on the "ref" field.

func RefLT

func RefLT(v []byte) predicate.Object

RefLT applies the LT predicate on the "ref" field.

func RefLTE

func RefLTE(v []byte) predicate.Object

RefLTE applies the LTE predicate on the "ref" field.

func RefNEQ

func RefNEQ(v []byte) predicate.Object

RefNEQ applies the NEQ predicate on the "ref" field.

func RefNotIn

func RefNotIn(vs ...[]byte) predicate.Object

RefNotIn applies the NotIn predicate on the "ref" field.

func Start

func Start(v uint32) predicate.Object

Start applies equality check predicate on the "start" field. It's identical to StartEQ.

func StartEQ

func StartEQ(v uint32) predicate.Object

StartEQ applies the EQ predicate on the "start" field.

func StartGT

func StartGT(v uint32) predicate.Object

StartGT applies the GT predicate on the "start" field.

func StartGTE

func StartGTE(v uint32) predicate.Object

StartGTE applies the GTE predicate on the "start" field.

func StartIn

func StartIn(vs ...uint32) predicate.Object

StartIn applies the In predicate on the "start" field.

func StartLT

func StartLT(v uint32) predicate.Object

StartLT applies the LT predicate on the "start" field.

func StartLTE

func StartLTE(v uint32) predicate.Object

StartLTE applies the LTE predicate on the "start" field.

func StartNEQ

func StartNEQ(v uint32) predicate.Object

StartNEQ applies the NEQ predicate on the "start" field.

func StartNotIn

func StartNotIn(vs ...uint32) predicate.Object

StartNotIn applies the NotIn predicate on the "start" field.

func Type

func Type(v uint32) predicate.Object

Type applies equality check predicate on the "type" field. It's identical to TypeEQ.

func TypeEQ

func TypeEQ(v uint32) predicate.Object

TypeEQ applies the EQ predicate on the "type" field.

func TypeGT

func TypeGT(v uint32) predicate.Object

TypeGT applies the GT predicate on the "type" field.

func TypeGTE

func TypeGTE(v uint32) predicate.Object

TypeGTE applies the GTE predicate on the "type" field.

func TypeIn

func TypeIn(vs ...uint32) predicate.Object

TypeIn applies the In predicate on the "type" field.

func TypeLT

func TypeLT(v uint32) predicate.Object

TypeLT applies the LT predicate on the "type" field.

func TypeLTE

func TypeLTE(v uint32) predicate.Object

TypeLTE applies the LTE predicate on the "type" field.

func TypeNEQ

func TypeNEQ(v uint32) predicate.Object

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn

func TypeNotIn(vs ...uint32) predicate.Object

TypeNotIn applies the NotIn predicate on the "type" 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 Object queries.

func ByArchiveField

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

ByArchiveField orders the results by archive field.

func ByArchiveID

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

ByArchiveID orders the results by the archive_id field.

func ByCarriedOffset

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

ByCarriedOffset orders the results by the carried_offset field.

func ByCarriedTime

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

ByCarriedTime orders the results by the carried_time field.

func ByID

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

ByID orders the results by the id field.

func ByLength

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

ByLength orders the results by the length field.

func ByStart

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

ByStart orders the results by the start field.

func ByType

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

ByType orders the results by the type field.

Jump to

Keyboard shortcuts

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