Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Revision) predicate.Revision
- func Applied(v int) predicate.Revision
- func AppliedEQ(v int) predicate.Revision
- func AppliedGT(v int) predicate.Revision
- func AppliedGTE(v int) predicate.Revision
- func AppliedIn(vs ...int) predicate.Revision
- func AppliedLT(v int) predicate.Revision
- func AppliedLTE(v int) predicate.Revision
- func AppliedNEQ(v int) predicate.Revision
- func AppliedNotIn(vs ...int) predicate.Revision
- func Description(v string) predicate.Revision
- func DescriptionContains(v string) predicate.Revision
- func DescriptionContainsFold(v string) predicate.Revision
- func DescriptionEQ(v string) predicate.Revision
- func DescriptionEqualFold(v string) predicate.Revision
- func DescriptionGT(v string) predicate.Revision
- func DescriptionGTE(v string) predicate.Revision
- func DescriptionHasPrefix(v string) predicate.Revision
- func DescriptionHasSuffix(v string) predicate.Revision
- func DescriptionIn(vs ...string) predicate.Revision
- func DescriptionLT(v string) predicate.Revision
- func DescriptionLTE(v string) predicate.Revision
- func DescriptionNEQ(v string) predicate.Revision
- func DescriptionNotIn(vs ...string) predicate.Revision
- func Error(v string) predicate.Revision
- func ErrorContains(v string) predicate.Revision
- func ErrorContainsFold(v string) predicate.Revision
- func ErrorEQ(v string) predicate.Revision
- func ErrorEqualFold(v string) predicate.Revision
- func ErrorGT(v string) predicate.Revision
- func ErrorGTE(v string) predicate.Revision
- func ErrorHasPrefix(v string) predicate.Revision
- func ErrorHasSuffix(v string) predicate.Revision
- func ErrorIn(vs ...string) predicate.Revision
- func ErrorIsNil() predicate.Revision
- func ErrorLT(v string) predicate.Revision
- func ErrorLTE(v string) predicate.Revision
- func ErrorNEQ(v string) predicate.Revision
- func ErrorNotIn(vs ...string) predicate.Revision
- func ErrorNotNil() predicate.Revision
- func ErrorStmt(v string) predicate.Revision
- func ErrorStmtContains(v string) predicate.Revision
- func ErrorStmtContainsFold(v string) predicate.Revision
- func ErrorStmtEQ(v string) predicate.Revision
- func ErrorStmtEqualFold(v string) predicate.Revision
- func ErrorStmtGT(v string) predicate.Revision
- func ErrorStmtGTE(v string) predicate.Revision
- func ErrorStmtHasPrefix(v string) predicate.Revision
- func ErrorStmtHasSuffix(v string) predicate.Revision
- func ErrorStmtIn(vs ...string) predicate.Revision
- func ErrorStmtIsNil() predicate.Revision
- func ErrorStmtLT(v string) predicate.Revision
- func ErrorStmtLTE(v string) predicate.Revision
- func ErrorStmtNEQ(v string) predicate.Revision
- func ErrorStmtNotIn(vs ...string) predicate.Revision
- func ErrorStmtNotNil() predicate.Revision
- func ExecutedAt(v time.Time) predicate.Revision
- func ExecutedAtEQ(v time.Time) predicate.Revision
- func ExecutedAtGT(v time.Time) predicate.Revision
- func ExecutedAtGTE(v time.Time) predicate.Revision
- func ExecutedAtIn(vs ...time.Time) predicate.Revision
- func ExecutedAtLT(v time.Time) predicate.Revision
- func ExecutedAtLTE(v time.Time) predicate.Revision
- func ExecutedAtNEQ(v time.Time) predicate.Revision
- func ExecutedAtNotIn(vs ...time.Time) predicate.Revision
- func ExecutionTime(v time.Duration) predicate.Revision
- func ExecutionTimeEQ(v time.Duration) predicate.Revision
- func ExecutionTimeGT(v time.Duration) predicate.Revision
- func ExecutionTimeGTE(v time.Duration) predicate.Revision
- func ExecutionTimeIn(vs ...time.Duration) predicate.Revision
- func ExecutionTimeLT(v time.Duration) predicate.Revision
- func ExecutionTimeLTE(v time.Duration) predicate.Revision
- func ExecutionTimeNEQ(v time.Duration) predicate.Revision
- func ExecutionTimeNotIn(vs ...time.Duration) predicate.Revision
- func Hash(v string) predicate.Revision
- func HashContains(v string) predicate.Revision
- func HashContainsFold(v string) predicate.Revision
- func HashEQ(v string) predicate.Revision
- func HashEqualFold(v string) predicate.Revision
- func HashGT(v string) predicate.Revision
- func HashGTE(v string) predicate.Revision
- func HashHasPrefix(v string) predicate.Revision
- func HashHasSuffix(v string) predicate.Revision
- func HashIn(vs ...string) predicate.Revision
- func HashLT(v string) predicate.Revision
- func HashLTE(v string) predicate.Revision
- func HashNEQ(v string) predicate.Revision
- func HashNotIn(vs ...string) predicate.Revision
- func ID(id string) predicate.Revision
- func IDContainsFold(id string) predicate.Revision
- func IDEQ(id string) predicate.Revision
- func IDEqualFold(id string) predicate.Revision
- func IDGT(id string) predicate.Revision
- func IDGTE(id string) predicate.Revision
- func IDIn(ids ...string) predicate.Revision
- func IDLT(id string) predicate.Revision
- func IDLTE(id string) predicate.Revision
- func IDNEQ(id string) predicate.Revision
- func IDNotIn(ids ...string) predicate.Revision
- func Not(p predicate.Revision) predicate.Revision
- func OperatorVersion(v string) predicate.Revision
- func OperatorVersionContains(v string) predicate.Revision
- func OperatorVersionContainsFold(v string) predicate.Revision
- func OperatorVersionEQ(v string) predicate.Revision
- func OperatorVersionEqualFold(v string) predicate.Revision
- func OperatorVersionGT(v string) predicate.Revision
- func OperatorVersionGTE(v string) predicate.Revision
- func OperatorVersionHasPrefix(v string) predicate.Revision
- func OperatorVersionHasSuffix(v string) predicate.Revision
- func OperatorVersionIn(vs ...string) predicate.Revision
- func OperatorVersionLT(v string) predicate.Revision
- func OperatorVersionLTE(v string) predicate.Revision
- func OperatorVersionNEQ(v string) predicate.Revision
- func OperatorVersionNotIn(vs ...string) predicate.Revision
- func Or(predicates ...predicate.Revision) predicate.Revision
- func PartialHashesIsNil() predicate.Revision
- func PartialHashesNotNil() predicate.Revision
- func Total(v int) predicate.Revision
- func TotalEQ(v int) predicate.Revision
- func TotalGT(v int) predicate.Revision
- func TotalGTE(v int) predicate.Revision
- func TotalIn(vs ...int) predicate.Revision
- func TotalLT(v int) predicate.Revision
- func TotalLTE(v int) predicate.Revision
- func TotalNEQ(v int) predicate.Revision
- func TotalNotIn(vs ...int) predicate.Revision
- func Type(v migrate.RevisionType) predicate.Revision
- func TypeEQ(v migrate.RevisionType) predicate.Revision
- func TypeGT(v migrate.RevisionType) predicate.Revision
- func TypeGTE(v migrate.RevisionType) predicate.Revision
- func TypeIn(vs ...migrate.RevisionType) predicate.Revision
- func TypeLT(v migrate.RevisionType) predicate.Revision
- func TypeLTE(v migrate.RevisionType) predicate.Revision
- func TypeNEQ(v migrate.RevisionType) predicate.Revision
- func TypeNotIn(vs ...migrate.RevisionType) predicate.Revision
- func ValidColumn(column string) bool
- type OrderOption
- func ByApplied(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByError(opts ...sql.OrderTermOption) OrderOption
- func ByErrorStmt(opts ...sql.OrderTermOption) OrderOption
- func ByExecutedAt(opts ...sql.OrderTermOption) OrderOption
- func ByExecutionTime(opts ...sql.OrderTermOption) OrderOption
- func ByHash(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByOperatorVersion(opts ...sql.OrderTermOption) OrderOption
- func ByTotal(opts ...sql.OrderTermOption) OrderOption
- func ByType(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldDescription, FieldType, FieldApplied, FieldTotal, FieldExecutedAt, FieldExecutionTime, FieldError, FieldErrorStmt, FieldHash, FieldPartialHashes, FieldOperatorVersion, }
Columns holds all SQL columns for revision fields.
Functions ¶
func Applied ¶ added in v0.6.0
Applied applies equality check predicate on the "applied" field. It's identical to AppliedEQ.
func AppliedGTE ¶ added in v0.6.0
AppliedGTE applies the GTE predicate on the "applied" field.
func AppliedLTE ¶ added in v0.6.0
AppliedLTE applies the LTE predicate on the "applied" field.
func AppliedNEQ ¶ added in v0.6.0
AppliedNEQ applies the NEQ predicate on the "applied" field.
func AppliedNotIn ¶ added in v0.6.0
AppliedNotIn applies the NotIn predicate on the "applied" field.
func Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func Error ¶ added in v0.6.0
Error applies equality check predicate on the "error" field. It's identical to ErrorEQ.
func ErrorContains ¶ added in v0.6.0
ErrorContains applies the Contains predicate on the "error" field.
func ErrorContainsFold ¶ added in v0.6.0
ErrorContainsFold applies the ContainsFold predicate on the "error" field.
func ErrorEqualFold ¶ added in v0.6.0
ErrorEqualFold applies the EqualFold predicate on the "error" field.
func ErrorHasPrefix ¶ added in v0.6.0
ErrorHasPrefix applies the HasPrefix predicate on the "error" field.
func ErrorHasSuffix ¶ added in v0.6.0
ErrorHasSuffix applies the HasSuffix predicate on the "error" field.
func ErrorIsNil ¶ added in v0.6.0
ErrorIsNil applies the IsNil predicate on the "error" field.
func ErrorNotIn ¶ added in v0.6.0
ErrorNotIn applies the NotIn predicate on the "error" field.
func ErrorNotNil ¶ added in v0.6.0
ErrorNotNil applies the NotNil predicate on the "error" field.
func ErrorStmt ¶ added in v0.8.0
ErrorStmt applies equality check predicate on the "error_stmt" field. It's identical to ErrorStmtEQ.
func ErrorStmtContains ¶ added in v0.8.0
ErrorStmtContains applies the Contains predicate on the "error_stmt" field.
func ErrorStmtContainsFold ¶ added in v0.8.0
ErrorStmtContainsFold applies the ContainsFold predicate on the "error_stmt" field.
func ErrorStmtEQ ¶ added in v0.8.0
ErrorStmtEQ applies the EQ predicate on the "error_stmt" field.
func ErrorStmtEqualFold ¶ added in v0.8.0
ErrorStmtEqualFold applies the EqualFold predicate on the "error_stmt" field.
func ErrorStmtGT ¶ added in v0.8.0
ErrorStmtGT applies the GT predicate on the "error_stmt" field.
func ErrorStmtGTE ¶ added in v0.8.0
ErrorStmtGTE applies the GTE predicate on the "error_stmt" field.
func ErrorStmtHasPrefix ¶ added in v0.8.0
ErrorStmtHasPrefix applies the HasPrefix predicate on the "error_stmt" field.
func ErrorStmtHasSuffix ¶ added in v0.8.0
ErrorStmtHasSuffix applies the HasSuffix predicate on the "error_stmt" field.
func ErrorStmtIn ¶ added in v0.8.0
ErrorStmtIn applies the In predicate on the "error_stmt" field.
func ErrorStmtIsNil ¶ added in v0.8.0
ErrorStmtIsNil applies the IsNil predicate on the "error_stmt" field.
func ErrorStmtLT ¶ added in v0.8.0
ErrorStmtLT applies the LT predicate on the "error_stmt" field.
func ErrorStmtLTE ¶ added in v0.8.0
ErrorStmtLTE applies the LTE predicate on the "error_stmt" field.
func ErrorStmtNEQ ¶ added in v0.8.0
ErrorStmtNEQ applies the NEQ predicate on the "error_stmt" field.
func ErrorStmtNotIn ¶ added in v0.8.0
ErrorStmtNotIn applies the NotIn predicate on the "error_stmt" field.
func ErrorStmtNotNil ¶ added in v0.8.0
ErrorStmtNotNil applies the NotNil predicate on the "error_stmt" field.
func ExecutedAt ¶
ExecutedAt applies equality check predicate on the "executed_at" field. It's identical to ExecutedAtEQ.
func ExecutedAtEQ ¶
ExecutedAtEQ applies the EQ predicate on the "executed_at" field.
func ExecutedAtGT ¶
ExecutedAtGT applies the GT predicate on the "executed_at" field.
func ExecutedAtGTE ¶
ExecutedAtGTE applies the GTE predicate on the "executed_at" field.
func ExecutedAtIn ¶
ExecutedAtIn applies the In predicate on the "executed_at" field.
func ExecutedAtLT ¶
ExecutedAtLT applies the LT predicate on the "executed_at" field.
func ExecutedAtLTE ¶
ExecutedAtLTE applies the LTE predicate on the "executed_at" field.
func ExecutedAtNEQ ¶
ExecutedAtNEQ applies the NEQ predicate on the "executed_at" field.
func ExecutedAtNotIn ¶
ExecutedAtNotIn applies the NotIn predicate on the "executed_at" field.
func ExecutionTime ¶
ExecutionTime applies equality check predicate on the "execution_time" field. It's identical to ExecutionTimeEQ.
func ExecutionTimeEQ ¶
ExecutionTimeEQ applies the EQ predicate on the "execution_time" field.
func ExecutionTimeGT ¶
ExecutionTimeGT applies the GT predicate on the "execution_time" field.
func ExecutionTimeGTE ¶
ExecutionTimeGTE applies the GTE predicate on the "execution_time" field.
func ExecutionTimeIn ¶
ExecutionTimeIn applies the In predicate on the "execution_time" field.
func ExecutionTimeLT ¶
ExecutionTimeLT applies the LT predicate on the "execution_time" field.
func ExecutionTimeLTE ¶
ExecutionTimeLTE applies the LTE predicate on the "execution_time" field.
func ExecutionTimeNEQ ¶
ExecutionTimeNEQ applies the NEQ predicate on the "execution_time" field.
func ExecutionTimeNotIn ¶
ExecutionTimeNotIn applies the NotIn predicate on the "execution_time" field.
func HashContains ¶
HashContains applies the Contains predicate on the "hash" field.
func HashContainsFold ¶
HashContainsFold applies the ContainsFold predicate on the "hash" field.
func HashEqualFold ¶
HashEqualFold applies the EqualFold predicate on the "hash" field.
func HashHasPrefix ¶
HashHasPrefix applies the HasPrefix predicate on the "hash" field.
func HashHasSuffix ¶
HashHasSuffix applies the HasSuffix predicate on the "hash" field.
func IDContainsFold ¶ added in v0.11.0
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEqualFold ¶ added in v0.11.0
IDEqualFold applies the EqualFold predicate on the ID field.
func OperatorVersion ¶
OperatorVersion applies equality check predicate on the "operator_version" field. It's identical to OperatorVersionEQ.
func OperatorVersionContains ¶
OperatorVersionContains applies the Contains predicate on the "operator_version" field.
func OperatorVersionContainsFold ¶
OperatorVersionContainsFold applies the ContainsFold predicate on the "operator_version" field.
func OperatorVersionEQ ¶
OperatorVersionEQ applies the EQ predicate on the "operator_version" field.
func OperatorVersionEqualFold ¶
OperatorVersionEqualFold applies the EqualFold predicate on the "operator_version" field.
func OperatorVersionGT ¶
OperatorVersionGT applies the GT predicate on the "operator_version" field.
func OperatorVersionGTE ¶
OperatorVersionGTE applies the GTE predicate on the "operator_version" field.
func OperatorVersionHasPrefix ¶
OperatorVersionHasPrefix applies the HasPrefix predicate on the "operator_version" field.
func OperatorVersionHasSuffix ¶
OperatorVersionHasSuffix applies the HasSuffix predicate on the "operator_version" field.
func OperatorVersionIn ¶
OperatorVersionIn applies the In predicate on the "operator_version" field.
func OperatorVersionLT ¶
OperatorVersionLT applies the LT predicate on the "operator_version" field.
func OperatorVersionLTE ¶
OperatorVersionLTE applies the LTE predicate on the "operator_version" field.
func OperatorVersionNEQ ¶
OperatorVersionNEQ applies the NEQ predicate on the "operator_version" field.
func OperatorVersionNotIn ¶
OperatorVersionNotIn applies the NotIn predicate on the "operator_version" field.
func PartialHashesIsNil ¶ added in v0.6.0
PartialHashesIsNil applies the IsNil predicate on the "partial_hashes" field.
func PartialHashesNotNil ¶ added in v0.6.0
PartialHashesNotNil applies the NotNil predicate on the "partial_hashes" field.
func Total ¶ added in v0.6.0
Total applies equality check predicate on the "total" field. It's identical to TotalEQ.
func TotalNotIn ¶ added in v0.6.0
TotalNotIn applies the NotIn predicate on the "total" field.
func Type ¶ added in v0.6.0
func Type(v migrate.RevisionType) predicate.Revision
Type applies equality check predicate on the "type" field. It's identical to TypeEQ.
func TypeEQ ¶ added in v0.6.0
func TypeEQ(v migrate.RevisionType) predicate.Revision
TypeEQ applies the EQ predicate on the "type" field.
func TypeGT ¶ added in v0.6.0
func TypeGT(v migrate.RevisionType) predicate.Revision
TypeGT applies the GT predicate on the "type" field.
func TypeGTE ¶ added in v0.6.0
func TypeGTE(v migrate.RevisionType) predicate.Revision
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
func TypeLT(v migrate.RevisionType) predicate.Revision
TypeLT applies the LT predicate on the "type" field.
func TypeLTE ¶ added in v0.6.0
func TypeLTE(v migrate.RevisionType) predicate.Revision
TypeLTE applies the LTE predicate on the "type" field.
func TypeNEQ ¶ added in v0.6.0
func TypeNEQ(v migrate.RevisionType) predicate.Revision
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 ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶ added in v0.11.0
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.