archive

package
v1.65.0 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: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the archive type in the database.
	Label = "archive"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldSessionID holds the string denoting the session_id field in the database.
	FieldSessionID = "session_id"
	// FieldState holds the string denoting the state field in the database.
	FieldState = "state"
	// FieldOpenedAt holds the string denoting the opened_at field in the database.
	FieldOpenedAt = "opened_at"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// EdgeSession holds the string denoting the session edge name in mutations.
	EdgeSession = "session"
	// EdgeObjects holds the string denoting the objects edge name in mutations.
	EdgeObjects = "objects"
	// Table holds the table name of the archive in the database.
	Table = "archives"
	// SessionTable is the table that holds the session relation/edge.
	SessionTable = "archives"
	// SessionInverseTable is the table name for the Session entity.
	// It exists in this package in order to avoid circular dependency with the "session" package.
	SessionInverseTable = "sessions"
	// SessionColumn is the table column denoting the session relation/edge.
	SessionColumn = "session_id"
	// ObjectsTable is the table that holds the objects relation/edge.
	ObjectsTable = "objects"
	// ObjectsInverseTable is the table name for the Object entity.
	// It exists in this package in order to avoid circular dependency with the "object" package.
	ObjectsInverseTable = "objects"
	// ObjectsColumn is the table column denoting the objects relation/edge.
	ObjectsColumn = "archive_id"
)

Variables

Columns holds all SQL columns for archive fields.

View Source
var (
	// DefaultState holds the default value on creation for the "state" field.
	DefaultState int
)

Functions

func And

func And(predicates ...predicate.Archive) predicate.Archive

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Archive

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Archive

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Archive

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Archive

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

func CreatedAtIn

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

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

func CreatedAtIsNil

func CreatedAtIsNil() predicate.Archive

CreatedAtIsNil applies the IsNil predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Archive

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Archive

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Archive

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

func CreatedAtNotIn

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

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

func CreatedAtNotNil

func CreatedAtNotNil() predicate.Archive

CreatedAtNotNil applies the NotNil predicate on the "created_at" field.

func HasObjects

func HasObjects() predicate.Archive

HasObjects applies the HasEdge predicate on the "objects" edge.

func HasObjectsWith

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

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

func HasSession

func HasSession() predicate.Archive

HasSession applies the HasEdge predicate on the "session" edge.

func HasSessionWith

func HasSessionWith(preds ...predicate.Session) predicate.Archive

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

func ID

func ID(id string) predicate.Archive

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.Archive

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.Archive

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.Archive

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Archive

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Archive

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.Archive

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Archive

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Archive

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Archive

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.Archive

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func OpenedAt

func OpenedAt(v time.Time) predicate.Archive

OpenedAt applies equality check predicate on the "opened_at" field. It's identical to OpenedAtEQ.

func OpenedAtEQ

func OpenedAtEQ(v time.Time) predicate.Archive

OpenedAtEQ applies the EQ predicate on the "opened_at" field.

func OpenedAtGT

func OpenedAtGT(v time.Time) predicate.Archive

OpenedAtGT applies the GT predicate on the "opened_at" field.

func OpenedAtGTE

func OpenedAtGTE(v time.Time) predicate.Archive

OpenedAtGTE applies the GTE predicate on the "opened_at" field.

func OpenedAtIn

func OpenedAtIn(vs ...time.Time) predicate.Archive

OpenedAtIn applies the In predicate on the "opened_at" field.

func OpenedAtIsNil

func OpenedAtIsNil() predicate.Archive

OpenedAtIsNil applies the IsNil predicate on the "opened_at" field.

func OpenedAtLT

func OpenedAtLT(v time.Time) predicate.Archive

OpenedAtLT applies the LT predicate on the "opened_at" field.

func OpenedAtLTE

func OpenedAtLTE(v time.Time) predicate.Archive

OpenedAtLTE applies the LTE predicate on the "opened_at" field.

func OpenedAtNEQ

func OpenedAtNEQ(v time.Time) predicate.Archive

OpenedAtNEQ applies the NEQ predicate on the "opened_at" field.

func OpenedAtNotIn

func OpenedAtNotIn(vs ...time.Time) predicate.Archive

OpenedAtNotIn applies the NotIn predicate on the "opened_at" field.

func OpenedAtNotNil

func OpenedAtNotNil() predicate.Archive

OpenedAtNotNil applies the NotNil predicate on the "opened_at" field.

func Or

func Or(predicates ...predicate.Archive) predicate.Archive

Or groups predicates with the OR operator between them.

func SessionID

func SessionID(v string) predicate.Archive

SessionID applies equality check predicate on the "session_id" field. It's identical to SessionIDEQ.

func SessionIDContains

func SessionIDContains(v string) predicate.Archive

SessionIDContains applies the Contains predicate on the "session_id" field.

func SessionIDContainsFold

func SessionIDContainsFold(v string) predicate.Archive

SessionIDContainsFold applies the ContainsFold predicate on the "session_id" field.

func SessionIDEQ

func SessionIDEQ(v string) predicate.Archive

SessionIDEQ applies the EQ predicate on the "session_id" field.

func SessionIDEqualFold

func SessionIDEqualFold(v string) predicate.Archive

SessionIDEqualFold applies the EqualFold predicate on the "session_id" field.

func SessionIDGT

func SessionIDGT(v string) predicate.Archive

SessionIDGT applies the GT predicate on the "session_id" field.

func SessionIDGTE

func SessionIDGTE(v string) predicate.Archive

SessionIDGTE applies the GTE predicate on the "session_id" field.

func SessionIDHasPrefix

func SessionIDHasPrefix(v string) predicate.Archive

SessionIDHasPrefix applies the HasPrefix predicate on the "session_id" field.

func SessionIDHasSuffix

func SessionIDHasSuffix(v string) predicate.Archive

SessionIDHasSuffix applies the HasSuffix predicate on the "session_id" field.

func SessionIDIn

func SessionIDIn(vs ...string) predicate.Archive

SessionIDIn applies the In predicate on the "session_id" field.

func SessionIDIsNil

func SessionIDIsNil() predicate.Archive

SessionIDIsNil applies the IsNil predicate on the "session_id" field.

func SessionIDLT

func SessionIDLT(v string) predicate.Archive

SessionIDLT applies the LT predicate on the "session_id" field.

func SessionIDLTE

func SessionIDLTE(v string) predicate.Archive

SessionIDLTE applies the LTE predicate on the "session_id" field.

func SessionIDNEQ

func SessionIDNEQ(v string) predicate.Archive

SessionIDNEQ applies the NEQ predicate on the "session_id" field.

func SessionIDNotIn

func SessionIDNotIn(vs ...string) predicate.Archive

SessionIDNotIn applies the NotIn predicate on the "session_id" field.

func SessionIDNotNil

func SessionIDNotNil() predicate.Archive

SessionIDNotNil applies the NotNil predicate on the "session_id" field.

func State

func State(v int) predicate.Archive

State applies equality check predicate on the "state" field. It's identical to StateEQ.

func StateEQ

func StateEQ(v int) predicate.Archive

StateEQ applies the EQ predicate on the "state" field.

func StateGT

func StateGT(v int) predicate.Archive

StateGT applies the GT predicate on the "state" field.

func StateGTE

func StateGTE(v int) predicate.Archive

StateGTE applies the GTE predicate on the "state" field.

func StateIn

func StateIn(vs ...int) predicate.Archive

StateIn applies the In predicate on the "state" field.

func StateLT

func StateLT(v int) predicate.Archive

StateLT applies the LT predicate on the "state" field.

func StateLTE

func StateLTE(v int) predicate.Archive

StateLTE applies the LTE predicate on the "state" field.

func StateNEQ

func StateNEQ(v int) predicate.Archive

StateNEQ applies the NEQ predicate on the "state" field.

func StateNotIn

func StateNotIn(vs ...int) predicate.Archive

StateNotIn applies the NotIn predicate on the "state" 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 Archive 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 ByObjects

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

ByObjects orders the results by objects terms.

func ByObjectsCount

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

ByObjectsCount orders the results by objects count.

func ByOpenedAt

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

ByOpenedAt orders the results by the opened_at field.

func BySessionField

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

BySessionField orders the results by session field.

func BySessionID

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

BySessionID orders the results by the session_id field.

func ByState

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

ByState orders the results by the state field.

Jump to

Keyboard shortcuts

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