snapshot

package
v0.0.0-...-f84909f Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the snapshot type in the database.
	Label = "snapshot"
	// 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"
	// FieldBaseEnvID holds the string denoting the base_env_id field in the database.
	FieldBaseEnvID = "base_env_id"
	// FieldEnvID holds the string denoting the env_id field in the database.
	FieldEnvID = "env_id"
	// FieldSandboxID holds the string denoting the sandbox_id field in the database.
	FieldSandboxID = "sandbox_id"
	// FieldMetadata holds the string denoting the metadata field in the database.
	FieldMetadata = "metadata"
	// EdgeEnv holds the string denoting the env edge name in mutations.
	EdgeEnv = "env"
	// Table holds the table name of the snapshot in the database.
	Table = "snapshots"
	// EnvTable is the table that holds the env relation/edge.
	EnvTable = "snapshots"
	// EnvInverseTable is the table name for the Env entity.
	// It exists in this package in order to avoid circular dependency with the "env" package.
	EnvInverseTable = "envs"
	// EnvColumn is the table column denoting the env relation/edge.
	EnvColumn = "env_id"
)

Variables

Columns holds all SQL columns for snapshot fields.

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
)

Functions

func And

func And(predicates ...predicate.Snapshot) predicate.Snapshot

And groups predicates with the AND operator between them.

func BaseEnvID

func BaseEnvID(v string) predicate.Snapshot

BaseEnvID applies equality check predicate on the "base_env_id" field. It's identical to BaseEnvIDEQ.

func BaseEnvIDContains

func BaseEnvIDContains(v string) predicate.Snapshot

BaseEnvIDContains applies the Contains predicate on the "base_env_id" field.

func BaseEnvIDContainsFold

func BaseEnvIDContainsFold(v string) predicate.Snapshot

BaseEnvIDContainsFold applies the ContainsFold predicate on the "base_env_id" field.

func BaseEnvIDEQ

func BaseEnvIDEQ(v string) predicate.Snapshot

BaseEnvIDEQ applies the EQ predicate on the "base_env_id" field.

func BaseEnvIDEqualFold

func BaseEnvIDEqualFold(v string) predicate.Snapshot

BaseEnvIDEqualFold applies the EqualFold predicate on the "base_env_id" field.

func BaseEnvIDGT

func BaseEnvIDGT(v string) predicate.Snapshot

BaseEnvIDGT applies the GT predicate on the "base_env_id" field.

func BaseEnvIDGTE

func BaseEnvIDGTE(v string) predicate.Snapshot

BaseEnvIDGTE applies the GTE predicate on the "base_env_id" field.

func BaseEnvIDHasPrefix

func BaseEnvIDHasPrefix(v string) predicate.Snapshot

BaseEnvIDHasPrefix applies the HasPrefix predicate on the "base_env_id" field.

func BaseEnvIDHasSuffix

func BaseEnvIDHasSuffix(v string) predicate.Snapshot

BaseEnvIDHasSuffix applies the HasSuffix predicate on the "base_env_id" field.

func BaseEnvIDIn

func BaseEnvIDIn(vs ...string) predicate.Snapshot

BaseEnvIDIn applies the In predicate on the "base_env_id" field.

func BaseEnvIDLT

func BaseEnvIDLT(v string) predicate.Snapshot

BaseEnvIDLT applies the LT predicate on the "base_env_id" field.

func BaseEnvIDLTE

func BaseEnvIDLTE(v string) predicate.Snapshot

BaseEnvIDLTE applies the LTE predicate on the "base_env_id" field.

func BaseEnvIDNEQ

func BaseEnvIDNEQ(v string) predicate.Snapshot

BaseEnvIDNEQ applies the NEQ predicate on the "base_env_id" field.

func BaseEnvIDNotIn

func BaseEnvIDNotIn(vs ...string) predicate.Snapshot

BaseEnvIDNotIn applies the NotIn predicate on the "base_env_id" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Snapshot

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Snapshot

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Snapshot

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Snapshot

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Snapshot

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Snapshot

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Snapshot

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

func CreatedAtNotIn

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

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

func EnvID

func EnvID(v string) predicate.Snapshot

EnvID applies equality check predicate on the "env_id" field. It's identical to EnvIDEQ.

func EnvIDContains

func EnvIDContains(v string) predicate.Snapshot

EnvIDContains applies the Contains predicate on the "env_id" field.

func EnvIDContainsFold

func EnvIDContainsFold(v string) predicate.Snapshot

EnvIDContainsFold applies the ContainsFold predicate on the "env_id" field.

func EnvIDEQ

func EnvIDEQ(v string) predicate.Snapshot

EnvIDEQ applies the EQ predicate on the "env_id" field.

func EnvIDEqualFold

func EnvIDEqualFold(v string) predicate.Snapshot

EnvIDEqualFold applies the EqualFold predicate on the "env_id" field.

func EnvIDGT

func EnvIDGT(v string) predicate.Snapshot

EnvIDGT applies the GT predicate on the "env_id" field.

func EnvIDGTE

func EnvIDGTE(v string) predicate.Snapshot

EnvIDGTE applies the GTE predicate on the "env_id" field.

func EnvIDHasPrefix

func EnvIDHasPrefix(v string) predicate.Snapshot

EnvIDHasPrefix applies the HasPrefix predicate on the "env_id" field.

func EnvIDHasSuffix

func EnvIDHasSuffix(v string) predicate.Snapshot

EnvIDHasSuffix applies the HasSuffix predicate on the "env_id" field.

func EnvIDIn

func EnvIDIn(vs ...string) predicate.Snapshot

EnvIDIn applies the In predicate on the "env_id" field.

func EnvIDLT

func EnvIDLT(v string) predicate.Snapshot

EnvIDLT applies the LT predicate on the "env_id" field.

func EnvIDLTE

func EnvIDLTE(v string) predicate.Snapshot

EnvIDLTE applies the LTE predicate on the "env_id" field.

func EnvIDNEQ

func EnvIDNEQ(v string) predicate.Snapshot

EnvIDNEQ applies the NEQ predicate on the "env_id" field.

func EnvIDNotIn

func EnvIDNotIn(vs ...string) predicate.Snapshot

EnvIDNotIn applies the NotIn predicate on the "env_id" field.

func HasEnv

func HasEnv() predicate.Snapshot

HasEnv applies the HasEdge predicate on the "env" edge.

func HasEnvWith

func HasEnvWith(preds ...predicate.Env) predicate.Snapshot

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

func ID

func ID(id uuid.UUID) predicate.Snapshot

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Snapshot

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Snapshot

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Snapshot

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Snapshot

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Snapshot

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Snapshot

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Snapshot) predicate.Snapshot

Or groups predicates with the OR operator between them.

func SandboxID

func SandboxID(v string) predicate.Snapshot

SandboxID applies equality check predicate on the "sandbox_id" field. It's identical to SandboxIDEQ.

func SandboxIDContains

func SandboxIDContains(v string) predicate.Snapshot

SandboxIDContains applies the Contains predicate on the "sandbox_id" field.

func SandboxIDContainsFold

func SandboxIDContainsFold(v string) predicate.Snapshot

SandboxIDContainsFold applies the ContainsFold predicate on the "sandbox_id" field.

func SandboxIDEQ

func SandboxIDEQ(v string) predicate.Snapshot

SandboxIDEQ applies the EQ predicate on the "sandbox_id" field.

func SandboxIDEqualFold

func SandboxIDEqualFold(v string) predicate.Snapshot

SandboxIDEqualFold applies the EqualFold predicate on the "sandbox_id" field.

func SandboxIDGT

func SandboxIDGT(v string) predicate.Snapshot

SandboxIDGT applies the GT predicate on the "sandbox_id" field.

func SandboxIDGTE

func SandboxIDGTE(v string) predicate.Snapshot

SandboxIDGTE applies the GTE predicate on the "sandbox_id" field.

func SandboxIDHasPrefix

func SandboxIDHasPrefix(v string) predicate.Snapshot

SandboxIDHasPrefix applies the HasPrefix predicate on the "sandbox_id" field.

func SandboxIDHasSuffix

func SandboxIDHasSuffix(v string) predicate.Snapshot

SandboxIDHasSuffix applies the HasSuffix predicate on the "sandbox_id" field.

func SandboxIDIn

func SandboxIDIn(vs ...string) predicate.Snapshot

SandboxIDIn applies the In predicate on the "sandbox_id" field.

func SandboxIDLT

func SandboxIDLT(v string) predicate.Snapshot

SandboxIDLT applies the LT predicate on the "sandbox_id" field.

func SandboxIDLTE

func SandboxIDLTE(v string) predicate.Snapshot

SandboxIDLTE applies the LTE predicate on the "sandbox_id" field.

func SandboxIDNEQ

func SandboxIDNEQ(v string) predicate.Snapshot

SandboxIDNEQ applies the NEQ predicate on the "sandbox_id" field.

func SandboxIDNotIn

func SandboxIDNotIn(vs ...string) predicate.Snapshot

SandboxIDNotIn applies the NotIn predicate on the "sandbox_id" 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 Snapshot queries.

func ByBaseEnvID

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

ByBaseEnvID orders the results by the base_env_id field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByEnvField

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

ByEnvField orders the results by env field.

func ByEnvID

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

ByEnvID orders the results by the env_id field.

func ByID

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

ByID orders the results by the id field.

func BySandboxID

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

BySandboxID orders the results by the sandbox_id field.

Jump to

Keyboard shortcuts

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