revision

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the revision type in the database.
	Label = "revision"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "version"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// FieldApplied holds the string denoting the applied field in the database.
	FieldApplied = "applied"
	// FieldTotal holds the string denoting the total field in the database.
	FieldTotal = "total"
	// FieldExecutedAt holds the string denoting the executed_at field in the database.
	FieldExecutedAt = "executed_at"
	// FieldExecutionTime holds the string denoting the execution_time field in the database.
	FieldExecutionTime = "execution_time"
	// FieldError holds the string denoting the error field in the database.
	FieldError = "error"
	// FieldErrorStmt holds the string denoting the error_stmt field in the database.
	FieldErrorStmt = "error_stmt"
	// FieldHash holds the string denoting the hash field in the database.
	FieldHash = "hash"
	// FieldPartialHashes holds the string denoting the partial_hashes field in the database.
	FieldPartialHashes = "partial_hashes"
	// FieldOperatorVersion holds the string denoting the operator_version field in the database.
	FieldOperatorVersion = "operator_version"
	// Table holds the table name of the revision in the database.
	Table = "atlas_schema_revisions"
)

Variables

View Source
var (
	// DefaultType holds the default value on creation for the "type" field.
	DefaultType migrate.RevisionType
	// DefaultApplied holds the default value on creation for the "applied" field.
	DefaultApplied int
	// AppliedValidator is a validator for the "applied" field. It is called by the builders before save.
	AppliedValidator func(int) error
	// DefaultTotal holds the default value on creation for the "total" field.
	DefaultTotal int
	// TotalValidator is a validator for the "total" field. It is called by the builders before save.
	TotalValidator func(int) error
)

Columns holds all SQL columns for revision fields.

Functions

func And

func And(predicates ...predicate.Revision) predicate.Revision

And groups predicates with the AND operator between them.

func Applied added in v0.6.0

func Applied(v int) predicate.Revision

Applied applies equality check predicate on the "applied" field. It's identical to AppliedEQ.

func AppliedEQ added in v0.6.0

func AppliedEQ(v int) predicate.Revision

AppliedEQ applies the EQ predicate on the "applied" field.

func AppliedGT added in v0.6.0

func AppliedGT(v int) predicate.Revision

AppliedGT applies the GT predicate on the "applied" field.

func AppliedGTE added in v0.6.0

func AppliedGTE(v int) predicate.Revision

AppliedGTE applies the GTE predicate on the "applied" field.

func AppliedIn added in v0.6.0

func AppliedIn(vs ...int) predicate.Revision

AppliedIn applies the In predicate on the "applied" field.

func AppliedLT added in v0.6.0

func AppliedLT(v int) predicate.Revision

AppliedLT applies the LT predicate on the "applied" field.

func AppliedLTE added in v0.6.0

func AppliedLTE(v int) predicate.Revision

AppliedLTE applies the LTE predicate on the "applied" field.

func AppliedNEQ added in v0.6.0

func AppliedNEQ(v int) predicate.Revision

AppliedNEQ applies the NEQ predicate on the "applied" field.

func AppliedNotIn added in v0.6.0

func AppliedNotIn(vs ...int) predicate.Revision

AppliedNotIn applies the NotIn predicate on the "applied" field.

func Description

func Description(v string) predicate.Revision

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.Revision

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Revision

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.Revision

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Revision

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.Revision

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.Revision

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Revision

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Revision

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.Revision

DescriptionIn applies the In predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.Revision

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.Revision

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Revision

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.Revision

DescriptionNotIn applies the NotIn predicate on the "description" field.

func Error added in v0.6.0

func Error(v string) predicate.Revision

Error applies equality check predicate on the "error" field. It's identical to ErrorEQ.

func ErrorContains added in v0.6.0

func ErrorContains(v string) predicate.Revision

ErrorContains applies the Contains predicate on the "error" field.

func ErrorContainsFold added in v0.6.0

func ErrorContainsFold(v string) predicate.Revision

ErrorContainsFold applies the ContainsFold predicate on the "error" field.

func ErrorEQ added in v0.6.0

func ErrorEQ(v string) predicate.Revision

ErrorEQ applies the EQ predicate on the "error" field.

func ErrorEqualFold added in v0.6.0

func ErrorEqualFold(v string) predicate.Revision

ErrorEqualFold applies the EqualFold predicate on the "error" field.

func ErrorGT added in v0.6.0

func ErrorGT(v string) predicate.Revision

ErrorGT applies the GT predicate on the "error" field.

func ErrorGTE added in v0.6.0

func ErrorGTE(v string) predicate.Revision

ErrorGTE applies the GTE predicate on the "error" field.

func ErrorHasPrefix added in v0.6.0

func ErrorHasPrefix(v string) predicate.Revision

ErrorHasPrefix applies the HasPrefix predicate on the "error" field.

func ErrorHasSuffix added in v0.6.0

func ErrorHasSuffix(v string) predicate.Revision

ErrorHasSuffix applies the HasSuffix predicate on the "error" field.

func ErrorIn added in v0.6.0

func ErrorIn(vs ...string) predicate.Revision

ErrorIn applies the In predicate on the "error" field.

func ErrorIsNil added in v0.6.0

func ErrorIsNil() predicate.Revision

ErrorIsNil applies the IsNil predicate on the "error" field.

func ErrorLT added in v0.6.0

func ErrorLT(v string) predicate.Revision

ErrorLT applies the LT predicate on the "error" field.

func ErrorLTE added in v0.6.0

func ErrorLTE(v string) predicate.Revision

ErrorLTE applies the LTE predicate on the "error" field.

func ErrorNEQ added in v0.6.0

func ErrorNEQ(v string) predicate.Revision

ErrorNEQ applies the NEQ predicate on the "error" field.

func ErrorNotIn added in v0.6.0

func ErrorNotIn(vs ...string) predicate.Revision

ErrorNotIn applies the NotIn predicate on the "error" field.

func ErrorNotNil added in v0.6.0

func ErrorNotNil() predicate.Revision

ErrorNotNil applies the NotNil predicate on the "error" field.

func ErrorStmt added in v0.8.0

func ErrorStmt(v string) predicate.Revision

ErrorStmt applies equality check predicate on the "error_stmt" field. It's identical to ErrorStmtEQ.

func ErrorStmtContains added in v0.8.0

func ErrorStmtContains(v string) predicate.Revision

ErrorStmtContains applies the Contains predicate on the "error_stmt" field.

func ErrorStmtContainsFold added in v0.8.0

func ErrorStmtContainsFold(v string) predicate.Revision

ErrorStmtContainsFold applies the ContainsFold predicate on the "error_stmt" field.

func ErrorStmtEQ added in v0.8.0

func ErrorStmtEQ(v string) predicate.Revision

ErrorStmtEQ applies the EQ predicate on the "error_stmt" field.

func ErrorStmtEqualFold added in v0.8.0

func ErrorStmtEqualFold(v string) predicate.Revision

ErrorStmtEqualFold applies the EqualFold predicate on the "error_stmt" field.

func ErrorStmtGT added in v0.8.0

func ErrorStmtGT(v string) predicate.Revision

ErrorStmtGT applies the GT predicate on the "error_stmt" field.

func ErrorStmtGTE added in v0.8.0

func ErrorStmtGTE(v string) predicate.Revision

ErrorStmtGTE applies the GTE predicate on the "error_stmt" field.

func ErrorStmtHasPrefix added in v0.8.0

func ErrorStmtHasPrefix(v string) predicate.Revision

ErrorStmtHasPrefix applies the HasPrefix predicate on the "error_stmt" field.

func ErrorStmtHasSuffix added in v0.8.0

func ErrorStmtHasSuffix(v string) predicate.Revision

ErrorStmtHasSuffix applies the HasSuffix predicate on the "error_stmt" field.

func ErrorStmtIn added in v0.8.0

func ErrorStmtIn(vs ...string) predicate.Revision

ErrorStmtIn applies the In predicate on the "error_stmt" field.

func ErrorStmtIsNil added in v0.8.0

func ErrorStmtIsNil() predicate.Revision

ErrorStmtIsNil applies the IsNil predicate on the "error_stmt" field.

func ErrorStmtLT added in v0.8.0

func ErrorStmtLT(v string) predicate.Revision

ErrorStmtLT applies the LT predicate on the "error_stmt" field.

func ErrorStmtLTE added in v0.8.0

func ErrorStmtLTE(v string) predicate.Revision

ErrorStmtLTE applies the LTE predicate on the "error_stmt" field.

func ErrorStmtNEQ added in v0.8.0

func ErrorStmtNEQ(v string) predicate.Revision

ErrorStmtNEQ applies the NEQ predicate on the "error_stmt" field.

func ErrorStmtNotIn added in v0.8.0

func ErrorStmtNotIn(vs ...string) predicate.Revision

ErrorStmtNotIn applies the NotIn predicate on the "error_stmt" field.

func ErrorStmtNotNil added in v0.8.0

func ErrorStmtNotNil() predicate.Revision

ErrorStmtNotNil applies the NotNil predicate on the "error_stmt" field.

func ExecutedAt

func ExecutedAt(v time.Time) predicate.Revision

ExecutedAt applies equality check predicate on the "executed_at" field. It's identical to ExecutedAtEQ.

func ExecutedAtEQ

func ExecutedAtEQ(v time.Time) predicate.Revision

ExecutedAtEQ applies the EQ predicate on the "executed_at" field.

func ExecutedAtGT

func ExecutedAtGT(v time.Time) predicate.Revision

ExecutedAtGT applies the GT predicate on the "executed_at" field.

func ExecutedAtGTE

func ExecutedAtGTE(v time.Time) predicate.Revision

ExecutedAtGTE applies the GTE predicate on the "executed_at" field.

func ExecutedAtIn

func ExecutedAtIn(vs ...time.Time) predicate.Revision

ExecutedAtIn applies the In predicate on the "executed_at" field.

func ExecutedAtLT

func ExecutedAtLT(v time.Time) predicate.Revision

ExecutedAtLT applies the LT predicate on the "executed_at" field.

func ExecutedAtLTE

func ExecutedAtLTE(v time.Time) predicate.Revision

ExecutedAtLTE applies the LTE predicate on the "executed_at" field.

func ExecutedAtNEQ

func ExecutedAtNEQ(v time.Time) predicate.Revision

ExecutedAtNEQ applies the NEQ predicate on the "executed_at" field.

func ExecutedAtNotIn

func ExecutedAtNotIn(vs ...time.Time) predicate.Revision

ExecutedAtNotIn applies the NotIn predicate on the "executed_at" field.

func ExecutionTime

func ExecutionTime(v time.Duration) predicate.Revision

ExecutionTime applies equality check predicate on the "execution_time" field. It's identical to ExecutionTimeEQ.

func ExecutionTimeEQ

func ExecutionTimeEQ(v time.Duration) predicate.Revision

ExecutionTimeEQ applies the EQ predicate on the "execution_time" field.

func ExecutionTimeGT

func ExecutionTimeGT(v time.Duration) predicate.Revision

ExecutionTimeGT applies the GT predicate on the "execution_time" field.

func ExecutionTimeGTE

func ExecutionTimeGTE(v time.Duration) predicate.Revision

ExecutionTimeGTE applies the GTE predicate on the "execution_time" field.

func ExecutionTimeIn

func ExecutionTimeIn(vs ...time.Duration) predicate.Revision

ExecutionTimeIn applies the In predicate on the "execution_time" field.

func ExecutionTimeLT

func ExecutionTimeLT(v time.Duration) predicate.Revision

ExecutionTimeLT applies the LT predicate on the "execution_time" field.

func ExecutionTimeLTE

func ExecutionTimeLTE(v time.Duration) predicate.Revision

ExecutionTimeLTE applies the LTE predicate on the "execution_time" field.

func ExecutionTimeNEQ

func ExecutionTimeNEQ(v time.Duration) predicate.Revision

ExecutionTimeNEQ applies the NEQ predicate on the "execution_time" field.

func ExecutionTimeNotIn

func ExecutionTimeNotIn(vs ...time.Duration) predicate.Revision

ExecutionTimeNotIn applies the NotIn predicate on the "execution_time" field.

func Hash

func Hash(v string) predicate.Revision

Hash applies equality check predicate on the "hash" field. It's identical to HashEQ.

func HashContains

func HashContains(v string) predicate.Revision

HashContains applies the Contains predicate on the "hash" field.

func HashContainsFold

func HashContainsFold(v string) predicate.Revision

HashContainsFold applies the ContainsFold predicate on the "hash" field.

func HashEQ

func HashEQ(v string) predicate.Revision

HashEQ applies the EQ predicate on the "hash" field.

func HashEqualFold

func HashEqualFold(v string) predicate.Revision

HashEqualFold applies the EqualFold predicate on the "hash" field.

func HashGT

func HashGT(v string) predicate.Revision

HashGT applies the GT predicate on the "hash" field.

func HashGTE

func HashGTE(v string) predicate.Revision

HashGTE applies the GTE predicate on the "hash" field.

func HashHasPrefix

func HashHasPrefix(v string) predicate.Revision

HashHasPrefix applies the HasPrefix predicate on the "hash" field.

func HashHasSuffix

func HashHasSuffix(v string) predicate.Revision

HashHasSuffix applies the HasSuffix predicate on the "hash" field.

func HashIn

func HashIn(vs ...string) predicate.Revision

HashIn applies the In predicate on the "hash" field.

func HashLT

func HashLT(v string) predicate.Revision

HashLT applies the LT predicate on the "hash" field.

func HashLTE

func HashLTE(v string) predicate.Revision

HashLTE applies the LTE predicate on the "hash" field.

func HashNEQ

func HashNEQ(v string) predicate.Revision

HashNEQ applies the NEQ predicate on the "hash" field.

func HashNotIn

func HashNotIn(vs ...string) predicate.Revision

HashNotIn applies the NotIn predicate on the "hash" field.

func ID

func ID(id string) predicate.Revision

ID filters vertices based on their ID field.

func IDContainsFold added in v0.11.0

func IDContainsFold(id string) predicate.Revision

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.Revision

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold added in v0.11.0

func IDEqualFold(id string) predicate.Revision

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Revision

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Revision

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Revision

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Revision

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Revision

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func OperatorVersion

func OperatorVersion(v string) predicate.Revision

OperatorVersion applies equality check predicate on the "operator_version" field. It's identical to OperatorVersionEQ.

func OperatorVersionContains

func OperatorVersionContains(v string) predicate.Revision

OperatorVersionContains applies the Contains predicate on the "operator_version" field.

func OperatorVersionContainsFold

func OperatorVersionContainsFold(v string) predicate.Revision

OperatorVersionContainsFold applies the ContainsFold predicate on the "operator_version" field.

func OperatorVersionEQ

func OperatorVersionEQ(v string) predicate.Revision

OperatorVersionEQ applies the EQ predicate on the "operator_version" field.

func OperatorVersionEqualFold

func OperatorVersionEqualFold(v string) predicate.Revision

OperatorVersionEqualFold applies the EqualFold predicate on the "operator_version" field.

func OperatorVersionGT

func OperatorVersionGT(v string) predicate.Revision

OperatorVersionGT applies the GT predicate on the "operator_version" field.

func OperatorVersionGTE

func OperatorVersionGTE(v string) predicate.Revision

OperatorVersionGTE applies the GTE predicate on the "operator_version" field.

func OperatorVersionHasPrefix

func OperatorVersionHasPrefix(v string) predicate.Revision

OperatorVersionHasPrefix applies the HasPrefix predicate on the "operator_version" field.

func OperatorVersionHasSuffix

func OperatorVersionHasSuffix(v string) predicate.Revision

OperatorVersionHasSuffix applies the HasSuffix predicate on the "operator_version" field.

func OperatorVersionIn

func OperatorVersionIn(vs ...string) predicate.Revision

OperatorVersionIn applies the In predicate on the "operator_version" field.

func OperatorVersionLT

func OperatorVersionLT(v string) predicate.Revision

OperatorVersionLT applies the LT predicate on the "operator_version" field.

func OperatorVersionLTE

func OperatorVersionLTE(v string) predicate.Revision

OperatorVersionLTE applies the LTE predicate on the "operator_version" field.

func OperatorVersionNEQ

func OperatorVersionNEQ(v string) predicate.Revision

OperatorVersionNEQ applies the NEQ predicate on the "operator_version" field.

func OperatorVersionNotIn

func OperatorVersionNotIn(vs ...string) predicate.Revision

OperatorVersionNotIn applies the NotIn predicate on the "operator_version" field.

func Or

func Or(predicates ...predicate.Revision) predicate.Revision

Or groups predicates with the OR operator between them.

func PartialHashesIsNil added in v0.6.0

func PartialHashesIsNil() predicate.Revision

PartialHashesIsNil applies the IsNil predicate on the "partial_hashes" field.

func PartialHashesNotNil added in v0.6.0

func PartialHashesNotNil() predicate.Revision

PartialHashesNotNil applies the NotNil predicate on the "partial_hashes" field.

func Total added in v0.6.0

func Total(v int) predicate.Revision

Total applies equality check predicate on the "total" field. It's identical to TotalEQ.

func TotalEQ added in v0.6.0

func TotalEQ(v int) predicate.Revision

TotalEQ applies the EQ predicate on the "total" field.

func TotalGT added in v0.6.0

func TotalGT(v int) predicate.Revision

TotalGT applies the GT predicate on the "total" field.

func TotalGTE added in v0.6.0

func TotalGTE(v int) predicate.Revision

TotalGTE applies the GTE predicate on the "total" field.

func TotalIn added in v0.6.0

func TotalIn(vs ...int) predicate.Revision

TotalIn applies the In predicate on the "total" field.

func TotalLT added in v0.6.0

func TotalLT(v int) predicate.Revision

TotalLT applies the LT predicate on the "total" field.

func TotalLTE added in v0.6.0

func TotalLTE(v int) predicate.Revision

TotalLTE applies the LTE predicate on the "total" field.

func TotalNEQ added in v0.6.0

func TotalNEQ(v int) predicate.Revision

TotalNEQ applies the NEQ predicate on the "total" field.

func TotalNotIn added in v0.6.0

func TotalNotIn(vs ...int) predicate.Revision

TotalNotIn applies the NotIn predicate on the "total" field.

func Type added in v0.6.0

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

func TypeEQ added in v0.6.0

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

func TypeGT added in v0.6.0

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

func TypeGTE added in v0.6.0

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

func TypeIn added in v0.6.0

func TypeIn(vs ...migrate.RevisionType) predicate.Revision

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

func TypeLT added in v0.6.0

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

func TypeLTE added in v0.6.0

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

func TypeNEQ added in v0.6.0

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

func TypeNotIn added in v0.6.0

func TypeNotIn(vs ...migrate.RevisionType) predicate.Revision

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 added in v0.11.0

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Revision queries.

func ByApplied added in v0.11.0

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

ByApplied orders the results by the applied field.

func ByDescription added in v0.11.0

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

ByDescription orders the results by the description field.

func ByError added in v0.11.0

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

ByError orders the results by the error field.

func ByErrorStmt added in v0.11.0

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

ByErrorStmt orders the results by the error_stmt field.

func ByExecutedAt added in v0.11.0

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

ByExecutedAt orders the results by the executed_at field.

func ByExecutionTime added in v0.11.0

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

ByExecutionTime orders the results by the execution_time field.

func ByHash added in v0.11.0

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

ByHash orders the results by the hash field.

func ByID added in v0.11.0

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

ByID orders the results by the id field.

func ByOperatorVersion added in v0.11.0

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

ByOperatorVersion orders the results by the operator_version field.

func ByTotal added in v0.11.0

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

ByTotal orders the results by the total field.

func ByType added in v0.11.0

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