Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Snapshot) predicate.Snapshot
- func BaseEnvID(v string) predicate.Snapshot
- func BaseEnvIDContains(v string) predicate.Snapshot
- func BaseEnvIDContainsFold(v string) predicate.Snapshot
- func BaseEnvIDEQ(v string) predicate.Snapshot
- func BaseEnvIDEqualFold(v string) predicate.Snapshot
- func BaseEnvIDGT(v string) predicate.Snapshot
- func BaseEnvIDGTE(v string) predicate.Snapshot
- func BaseEnvIDHasPrefix(v string) predicate.Snapshot
- func BaseEnvIDHasSuffix(v string) predicate.Snapshot
- func BaseEnvIDIn(vs ...string) predicate.Snapshot
- func BaseEnvIDLT(v string) predicate.Snapshot
- func BaseEnvIDLTE(v string) predicate.Snapshot
- func BaseEnvIDNEQ(v string) predicate.Snapshot
- func BaseEnvIDNotIn(vs ...string) predicate.Snapshot
- func CreatedAt(v time.Time) predicate.Snapshot
- func CreatedAtEQ(v time.Time) predicate.Snapshot
- func CreatedAtGT(v time.Time) predicate.Snapshot
- func CreatedAtGTE(v time.Time) predicate.Snapshot
- func CreatedAtIn(vs ...time.Time) predicate.Snapshot
- func CreatedAtLT(v time.Time) predicate.Snapshot
- func CreatedAtLTE(v time.Time) predicate.Snapshot
- func CreatedAtNEQ(v time.Time) predicate.Snapshot
- func CreatedAtNotIn(vs ...time.Time) predicate.Snapshot
- func EnvID(v string) predicate.Snapshot
- func EnvIDContains(v string) predicate.Snapshot
- func EnvIDContainsFold(v string) predicate.Snapshot
- func EnvIDEQ(v string) predicate.Snapshot
- func EnvIDEqualFold(v string) predicate.Snapshot
- func EnvIDGT(v string) predicate.Snapshot
- func EnvIDGTE(v string) predicate.Snapshot
- func EnvIDHasPrefix(v string) predicate.Snapshot
- func EnvIDHasSuffix(v string) predicate.Snapshot
- func EnvIDIn(vs ...string) predicate.Snapshot
- func EnvIDLT(v string) predicate.Snapshot
- func EnvIDLTE(v string) predicate.Snapshot
- func EnvIDNEQ(v string) predicate.Snapshot
- func EnvIDNotIn(vs ...string) predicate.Snapshot
- func HasEnv() predicate.Snapshot
- func HasEnvWith(preds ...predicate.Env) predicate.Snapshot
- func ID(id uuid.UUID) predicate.Snapshot
- func IDEQ(id uuid.UUID) predicate.Snapshot
- func IDGT(id uuid.UUID) predicate.Snapshot
- func IDGTE(id uuid.UUID) predicate.Snapshot
- func IDIn(ids ...uuid.UUID) predicate.Snapshot
- func IDLT(id uuid.UUID) predicate.Snapshot
- func IDLTE(id uuid.UUID) predicate.Snapshot
- func IDNEQ(id uuid.UUID) predicate.Snapshot
- func IDNotIn(ids ...uuid.UUID) predicate.Snapshot
- func Not(p predicate.Snapshot) predicate.Snapshot
- func Or(predicates ...predicate.Snapshot) predicate.Snapshot
- func SandboxID(v string) predicate.Snapshot
- func SandboxIDContains(v string) predicate.Snapshot
- func SandboxIDContainsFold(v string) predicate.Snapshot
- func SandboxIDEQ(v string) predicate.Snapshot
- func SandboxIDEqualFold(v string) predicate.Snapshot
- func SandboxIDGT(v string) predicate.Snapshot
- func SandboxIDGTE(v string) predicate.Snapshot
- func SandboxIDHasPrefix(v string) predicate.Snapshot
- func SandboxIDHasSuffix(v string) predicate.Snapshot
- func SandboxIDIn(vs ...string) predicate.Snapshot
- func SandboxIDLT(v string) predicate.Snapshot
- func SandboxIDLTE(v string) predicate.Snapshot
- func SandboxIDNEQ(v string) predicate.Snapshot
- func SandboxIDNotIn(vs ...string) predicate.Snapshot
- func ValidColumn(column string) bool
- type OrderOption
- func ByBaseEnvID(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByEnvField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByEnvID(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func BySandboxID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
var Columns = []string{ FieldID, FieldCreatedAt, FieldBaseEnvID, FieldEnvID, FieldSandboxID, FieldMetadata, }
Columns holds all SQL columns for snapshot fields.
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time )
Functions ¶
func BaseEnvID ¶
BaseEnvID applies equality check predicate on the "base_env_id" field. It's identical to BaseEnvIDEQ.
func BaseEnvIDContains ¶
BaseEnvIDContains applies the Contains predicate on the "base_env_id" field.
func BaseEnvIDContainsFold ¶
BaseEnvIDContainsFold applies the ContainsFold predicate on the "base_env_id" field.
func BaseEnvIDEQ ¶
BaseEnvIDEQ applies the EQ predicate on the "base_env_id" field.
func BaseEnvIDEqualFold ¶
BaseEnvIDEqualFold applies the EqualFold predicate on the "base_env_id" field.
func BaseEnvIDGT ¶
BaseEnvIDGT applies the GT predicate on the "base_env_id" field.
func BaseEnvIDGTE ¶
BaseEnvIDGTE applies the GTE predicate on the "base_env_id" field.
func BaseEnvIDHasPrefix ¶
BaseEnvIDHasPrefix applies the HasPrefix predicate on the "base_env_id" field.
func BaseEnvIDHasSuffix ¶
BaseEnvIDHasSuffix applies the HasSuffix predicate on the "base_env_id" field.
func BaseEnvIDIn ¶
BaseEnvIDIn applies the In predicate on the "base_env_id" field.
func BaseEnvIDLT ¶
BaseEnvIDLT applies the LT predicate on the "base_env_id" field.
func BaseEnvIDLTE ¶
BaseEnvIDLTE applies the LTE predicate on the "base_env_id" field.
func BaseEnvIDNEQ ¶
BaseEnvIDNEQ applies the NEQ predicate on the "base_env_id" field.
func BaseEnvIDNotIn ¶
BaseEnvIDNotIn applies the NotIn predicate on the "base_env_id" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func EnvID ¶
EnvID applies equality check predicate on the "env_id" field. It's identical to EnvIDEQ.
func EnvIDContains ¶
EnvIDContains applies the Contains predicate on the "env_id" field.
func EnvIDContainsFold ¶
EnvIDContainsFold applies the ContainsFold predicate on the "env_id" field.
func EnvIDEqualFold ¶
EnvIDEqualFold applies the EqualFold predicate on the "env_id" field.
func EnvIDHasPrefix ¶
EnvIDHasPrefix applies the HasPrefix predicate on the "env_id" field.
func EnvIDHasSuffix ¶
EnvIDHasSuffix applies the HasSuffix predicate on the "env_id" field.
func EnvIDNotIn ¶
EnvIDNotIn applies the NotIn predicate on the "env_id" field.
func HasEnvWith ¶
HasEnvWith applies the HasEdge predicate on the "env" edge with a given conditions (other predicates).
func SandboxID ¶
SandboxID applies equality check predicate on the "sandbox_id" field. It's identical to SandboxIDEQ.
func SandboxIDContains ¶
SandboxIDContains applies the Contains predicate on the "sandbox_id" field.
func SandboxIDContainsFold ¶
SandboxIDContainsFold applies the ContainsFold predicate on the "sandbox_id" field.
func SandboxIDEQ ¶
SandboxIDEQ applies the EQ predicate on the "sandbox_id" field.
func SandboxIDEqualFold ¶
SandboxIDEqualFold applies the EqualFold predicate on the "sandbox_id" field.
func SandboxIDGT ¶
SandboxIDGT applies the GT predicate on the "sandbox_id" field.
func SandboxIDGTE ¶
SandboxIDGTE applies the GTE predicate on the "sandbox_id" field.
func SandboxIDHasPrefix ¶
SandboxIDHasPrefix applies the HasPrefix predicate on the "sandbox_id" field.
func SandboxIDHasSuffix ¶
SandboxIDHasSuffix applies the HasSuffix predicate on the "sandbox_id" field.
func SandboxIDIn ¶
SandboxIDIn applies the In predicate on the "sandbox_id" field.
func SandboxIDLT ¶
SandboxIDLT applies the LT predicate on the "sandbox_id" field.
func SandboxIDLTE ¶
SandboxIDLTE applies the LTE predicate on the "sandbox_id" field.
func SandboxIDNEQ ¶
SandboxIDNEQ applies the NEQ predicate on the "sandbox_id" field.
func SandboxIDNotIn ¶
SandboxIDNotIn applies the NotIn predicate on the "sandbox_id" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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.