Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.StagingState) predicate.StagingState
- func Compression(v string) predicate.StagingState
- func CompressionContains(v string) predicate.StagingState
- func CompressionContainsFold(v string) predicate.StagingState
- func CompressionEQ(v string) predicate.StagingState
- func CompressionEqualFold(v string) predicate.StagingState
- func CompressionGT(v string) predicate.StagingState
- func CompressionGTE(v string) predicate.StagingState
- func CompressionHasPrefix(v string) predicate.StagingState
- func CompressionHasSuffix(v string) predicate.StagingState
- func CompressionIn(vs ...string) predicate.StagingState
- func CompressionLT(v string) predicate.StagingState
- func CompressionLTE(v string) predicate.StagingState
- func CompressionNEQ(v string) predicate.StagingState
- func CompressionNotIn(vs ...string) predicate.StagingState
- func CreatedAt(v time.Time) predicate.StagingState
- func CreatedAtEQ(v time.Time) predicate.StagingState
- func CreatedAtGT(v time.Time) predicate.StagingState
- func CreatedAtGTE(v time.Time) predicate.StagingState
- func CreatedAtIn(vs ...time.Time) predicate.StagingState
- func CreatedAtLT(v time.Time) predicate.StagingState
- func CreatedAtLTE(v time.Time) predicate.StagingState
- func CreatedAtNEQ(v time.Time) predicate.StagingState
- func CreatedAtNotIn(vs ...time.Time) predicate.StagingState
- func Hash(v string) predicate.StagingState
- func HashContains(v string) predicate.StagingState
- func HashContainsFold(v string) predicate.StagingState
- func HashEQ(v string) predicate.StagingState
- func HashEqualFold(v string) predicate.StagingState
- func HashGT(v string) predicate.StagingState
- func HashGTE(v string) predicate.StagingState
- func HashHasPrefix(v string) predicate.StagingState
- func HashHasSuffix(v string) predicate.StagingState
- func HashIn(vs ...string) predicate.StagingState
- func HashLT(v string) predicate.StagingState
- func HashLTE(v string) predicate.StagingState
- func HashNEQ(v string) predicate.StagingState
- func HashNotIn(vs ...string) predicate.StagingState
- func ID(id int) predicate.StagingState
- func IDEQ(id int) predicate.StagingState
- func IDGT(id int) predicate.StagingState
- func IDGTE(id int) predicate.StagingState
- func IDIn(ids ...int) predicate.StagingState
- func IDLT(id int) predicate.StagingState
- func IDLTE(id int) predicate.StagingState
- func IDNEQ(id int) predicate.StagingState
- func IDNotIn(ids ...int) predicate.StagingState
- func Not(p predicate.StagingState) predicate.StagingState
- func Or(predicates ...predicate.StagingState) predicate.StagingState
- func PartsAvailable(v int64) predicate.StagingState
- func PartsAvailableEQ(v int64) predicate.StagingState
- func PartsAvailableGT(v int64) predicate.StagingState
- func PartsAvailableGTE(v int64) predicate.StagingState
- func PartsAvailableIn(vs ...int64) predicate.StagingState
- func PartsAvailableLT(v int64) predicate.StagingState
- func PartsAvailableLTE(v int64) predicate.StagingState
- func PartsAvailableNEQ(v int64) predicate.StagingState
- func PartsAvailableNotIn(vs ...int64) predicate.StagingState
- func RequestedAt(v time.Time) predicate.StagingState
- func RequestedAtEQ(v time.Time) predicate.StagingState
- func RequestedAtGT(v time.Time) predicate.StagingState
- func RequestedAtGTE(v time.Time) predicate.StagingState
- func RequestedAtIn(vs ...time.Time) predicate.StagingState
- func RequestedAtIsNil() predicate.StagingState
- func RequestedAtLT(v time.Time) predicate.StagingState
- func RequestedAtLTE(v time.Time) predicate.StagingState
- func RequestedAtNEQ(v time.Time) predicate.StagingState
- func RequestedAtNotIn(vs ...time.Time) predicate.StagingState
- func RequestedAtNotNil() predicate.StagingState
- func Status(v string) predicate.StagingState
- func StatusContains(v string) predicate.StagingState
- func StatusContainsFold(v string) predicate.StagingState
- func StatusEQ(v string) predicate.StagingState
- func StatusEqualFold(v string) predicate.StagingState
- func StatusGT(v string) predicate.StagingState
- func StatusGTE(v string) predicate.StagingState
- func StatusHasPrefix(v string) predicate.StagingState
- func StatusHasSuffix(v string) predicate.StagingState
- func StatusIn(vs ...string) predicate.StagingState
- func StatusLT(v string) predicate.StagingState
- func StatusLTE(v string) predicate.StagingState
- func StatusNEQ(v string) predicate.StagingState
- func StatusNotIn(vs ...string) predicate.StagingState
- func UpdatedAt(v time.Time) predicate.StagingState
- func UpdatedAtEQ(v time.Time) predicate.StagingState
- func UpdatedAtGT(v time.Time) predicate.StagingState
- func UpdatedAtGTE(v time.Time) predicate.StagingState
- func UpdatedAtIn(vs ...time.Time) predicate.StagingState
- func UpdatedAtIsNil() predicate.StagingState
- func UpdatedAtLT(v time.Time) predicate.StagingState
- func UpdatedAtLTE(v time.Time) predicate.StagingState
- func UpdatedAtNEQ(v time.Time) predicate.StagingState
- func UpdatedAtNotIn(vs ...time.Time) predicate.StagingState
- func UpdatedAtNotNil() predicate.StagingState
- func ValidColumn(column string) bool
- type OrderOption
- func ByCompression(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByHash(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByPartsAvailable(opts ...sql.OrderTermOption) OrderOption
- func ByRequestedAt(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the stagingstate type in the database. Label = "staging_state" // 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" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldHash holds the string denoting the hash field in the database. FieldHash = "hash" // FieldRequestedAt holds the string denoting the requested_at field in the database. FieldRequestedAt = "requested_at" // FieldPartsAvailable holds the string denoting the parts_available field in the database. FieldPartsAvailable = "parts_available" // FieldCompression holds the string denoting the compression field in the database. FieldCompression = "compression" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // Table holds the table name of the stagingstate in the database. Table = "staging_states" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // HashValidator is a validator for the "hash" field. It is called by the builders before save. HashValidator func(string) error // DefaultPartsAvailable holds the default value on creation for the "parts_available" field. DefaultPartsAvailable int64 // DefaultCompression holds the default value on creation for the "compression" field. DefaultCompression string // DefaultStatus holds the default value on creation for the "status" field. DefaultStatus string )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldHash, FieldRequestedAt, FieldPartsAvailable, FieldCompression, FieldStatus, }
Columns holds all SQL columns for stagingstate fields.
Functions ¶
func And ¶
func And(predicates ...predicate.StagingState) predicate.StagingState
And groups predicates with the AND operator between them.
func Compression ¶
func Compression(v string) predicate.StagingState
Compression applies equality check predicate on the "compression" field. It's identical to CompressionEQ.
func CompressionContains ¶
func CompressionContains(v string) predicate.StagingState
CompressionContains applies the Contains predicate on the "compression" field.
func CompressionContainsFold ¶
func CompressionContainsFold(v string) predicate.StagingState
CompressionContainsFold applies the ContainsFold predicate on the "compression" field.
func CompressionEQ ¶
func CompressionEQ(v string) predicate.StagingState
CompressionEQ applies the EQ predicate on the "compression" field.
func CompressionEqualFold ¶
func CompressionEqualFold(v string) predicate.StagingState
CompressionEqualFold applies the EqualFold predicate on the "compression" field.
func CompressionGT ¶
func CompressionGT(v string) predicate.StagingState
CompressionGT applies the GT predicate on the "compression" field.
func CompressionGTE ¶
func CompressionGTE(v string) predicate.StagingState
CompressionGTE applies the GTE predicate on the "compression" field.
func CompressionHasPrefix ¶
func CompressionHasPrefix(v string) predicate.StagingState
CompressionHasPrefix applies the HasPrefix predicate on the "compression" field.
func CompressionHasSuffix ¶
func CompressionHasSuffix(v string) predicate.StagingState
CompressionHasSuffix applies the HasSuffix predicate on the "compression" field.
func CompressionIn ¶
func CompressionIn(vs ...string) predicate.StagingState
CompressionIn applies the In predicate on the "compression" field.
func CompressionLT ¶
func CompressionLT(v string) predicate.StagingState
CompressionLT applies the LT predicate on the "compression" field.
func CompressionLTE ¶
func CompressionLTE(v string) predicate.StagingState
CompressionLTE applies the LTE predicate on the "compression" field.
func CompressionNEQ ¶
func CompressionNEQ(v string) predicate.StagingState
CompressionNEQ applies the NEQ predicate on the "compression" field.
func CompressionNotIn ¶
func CompressionNotIn(vs ...string) predicate.StagingState
CompressionNotIn applies the NotIn predicate on the "compression" field.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.StagingState
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.StagingState
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.StagingState
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.StagingState
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.StagingState
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.StagingState
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.StagingState
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.StagingState
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.StagingState
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func Hash ¶
func Hash(v string) predicate.StagingState
Hash applies equality check predicate on the "hash" field. It's identical to HashEQ.
func HashContains ¶
func HashContains(v string) predicate.StagingState
HashContains applies the Contains predicate on the "hash" field.
func HashContainsFold ¶
func HashContainsFold(v string) predicate.StagingState
HashContainsFold applies the ContainsFold predicate on the "hash" field.
func HashEQ ¶
func HashEQ(v string) predicate.StagingState
HashEQ applies the EQ predicate on the "hash" field.
func HashEqualFold ¶
func HashEqualFold(v string) predicate.StagingState
HashEqualFold applies the EqualFold predicate on the "hash" field.
func HashGT ¶
func HashGT(v string) predicate.StagingState
HashGT applies the GT predicate on the "hash" field.
func HashGTE ¶
func HashGTE(v string) predicate.StagingState
HashGTE applies the GTE predicate on the "hash" field.
func HashHasPrefix ¶
func HashHasPrefix(v string) predicate.StagingState
HashHasPrefix applies the HasPrefix predicate on the "hash" field.
func HashHasSuffix ¶
func HashHasSuffix(v string) predicate.StagingState
HashHasSuffix applies the HasSuffix predicate on the "hash" field.
func HashIn ¶
func HashIn(vs ...string) predicate.StagingState
HashIn applies the In predicate on the "hash" field.
func HashLT ¶
func HashLT(v string) predicate.StagingState
HashLT applies the LT predicate on the "hash" field.
func HashLTE ¶
func HashLTE(v string) predicate.StagingState
HashLTE applies the LTE predicate on the "hash" field.
func HashNEQ ¶
func HashNEQ(v string) predicate.StagingState
HashNEQ applies the NEQ predicate on the "hash" field.
func HashNotIn ¶
func HashNotIn(vs ...string) predicate.StagingState
HashNotIn applies the NotIn predicate on the "hash" field.
func IDGTE ¶
func IDGTE(id int) predicate.StagingState
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.StagingState
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.StagingState
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.StagingState
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.StagingState
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.StagingState) predicate.StagingState
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.StagingState) predicate.StagingState
Or groups predicates with the OR operator between them.
func PartsAvailable ¶
func PartsAvailable(v int64) predicate.StagingState
PartsAvailable applies equality check predicate on the "parts_available" field. It's identical to PartsAvailableEQ.
func PartsAvailableEQ ¶
func PartsAvailableEQ(v int64) predicate.StagingState
PartsAvailableEQ applies the EQ predicate on the "parts_available" field.
func PartsAvailableGT ¶
func PartsAvailableGT(v int64) predicate.StagingState
PartsAvailableGT applies the GT predicate on the "parts_available" field.
func PartsAvailableGTE ¶
func PartsAvailableGTE(v int64) predicate.StagingState
PartsAvailableGTE applies the GTE predicate on the "parts_available" field.
func PartsAvailableIn ¶
func PartsAvailableIn(vs ...int64) predicate.StagingState
PartsAvailableIn applies the In predicate on the "parts_available" field.
func PartsAvailableLT ¶
func PartsAvailableLT(v int64) predicate.StagingState
PartsAvailableLT applies the LT predicate on the "parts_available" field.
func PartsAvailableLTE ¶
func PartsAvailableLTE(v int64) predicate.StagingState
PartsAvailableLTE applies the LTE predicate on the "parts_available" field.
func PartsAvailableNEQ ¶
func PartsAvailableNEQ(v int64) predicate.StagingState
PartsAvailableNEQ applies the NEQ predicate on the "parts_available" field.
func PartsAvailableNotIn ¶
func PartsAvailableNotIn(vs ...int64) predicate.StagingState
PartsAvailableNotIn applies the NotIn predicate on the "parts_available" field.
func RequestedAt ¶
func RequestedAt(v time.Time) predicate.StagingState
RequestedAt applies equality check predicate on the "requested_at" field. It's identical to RequestedAtEQ.
func RequestedAtEQ ¶
func RequestedAtEQ(v time.Time) predicate.StagingState
RequestedAtEQ applies the EQ predicate on the "requested_at" field.
func RequestedAtGT ¶
func RequestedAtGT(v time.Time) predicate.StagingState
RequestedAtGT applies the GT predicate on the "requested_at" field.
func RequestedAtGTE ¶
func RequestedAtGTE(v time.Time) predicate.StagingState
RequestedAtGTE applies the GTE predicate on the "requested_at" field.
func RequestedAtIn ¶
func RequestedAtIn(vs ...time.Time) predicate.StagingState
RequestedAtIn applies the In predicate on the "requested_at" field.
func RequestedAtIsNil ¶
func RequestedAtIsNil() predicate.StagingState
RequestedAtIsNil applies the IsNil predicate on the "requested_at" field.
func RequestedAtLT ¶
func RequestedAtLT(v time.Time) predicate.StagingState
RequestedAtLT applies the LT predicate on the "requested_at" field.
func RequestedAtLTE ¶
func RequestedAtLTE(v time.Time) predicate.StagingState
RequestedAtLTE applies the LTE predicate on the "requested_at" field.
func RequestedAtNEQ ¶
func RequestedAtNEQ(v time.Time) predicate.StagingState
RequestedAtNEQ applies the NEQ predicate on the "requested_at" field.
func RequestedAtNotIn ¶
func RequestedAtNotIn(vs ...time.Time) predicate.StagingState
RequestedAtNotIn applies the NotIn predicate on the "requested_at" field.
func RequestedAtNotNil ¶
func RequestedAtNotNil() predicate.StagingState
RequestedAtNotNil applies the NotNil predicate on the "requested_at" field.
func Status ¶
func Status(v string) predicate.StagingState
Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
func StatusContains ¶
func StatusContains(v string) predicate.StagingState
StatusContains applies the Contains predicate on the "status" field.
func StatusContainsFold ¶
func StatusContainsFold(v string) predicate.StagingState
StatusContainsFold applies the ContainsFold predicate on the "status" field.
func StatusEQ ¶
func StatusEQ(v string) predicate.StagingState
StatusEQ applies the EQ predicate on the "status" field.
func StatusEqualFold ¶
func StatusEqualFold(v string) predicate.StagingState
StatusEqualFold applies the EqualFold predicate on the "status" field.
func StatusGT ¶
func StatusGT(v string) predicate.StagingState
StatusGT applies the GT predicate on the "status" field.
func StatusGTE ¶
func StatusGTE(v string) predicate.StagingState
StatusGTE applies the GTE predicate on the "status" field.
func StatusHasPrefix ¶
func StatusHasPrefix(v string) predicate.StagingState
StatusHasPrefix applies the HasPrefix predicate on the "status" field.
func StatusHasSuffix ¶
func StatusHasSuffix(v string) predicate.StagingState
StatusHasSuffix applies the HasSuffix predicate on the "status" field.
func StatusIn ¶
func StatusIn(vs ...string) predicate.StagingState
StatusIn applies the In predicate on the "status" field.
func StatusLT ¶
func StatusLT(v string) predicate.StagingState
StatusLT applies the LT predicate on the "status" field.
func StatusLTE ¶
func StatusLTE(v string) predicate.StagingState
StatusLTE applies the LTE predicate on the "status" field.
func StatusNEQ ¶
func StatusNEQ(v string) predicate.StagingState
StatusNEQ applies the NEQ predicate on the "status" field.
func StatusNotIn ¶
func StatusNotIn(vs ...string) predicate.StagingState
StatusNotIn applies the NotIn predicate on the "status" field.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.StagingState
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.StagingState
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.StagingState
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.StagingState
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.StagingState
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtIsNil ¶
func UpdatedAtIsNil() predicate.StagingState
UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.StagingState
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.StagingState
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.StagingState
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.StagingState
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedAtNotNil ¶
func UpdatedAtNotNil() predicate.StagingState
UpdatedAtNotNil applies the NotNil predicate on the "updated_at" 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 StagingState queries.
func ByCompression ¶
func ByCompression(opts ...sql.OrderTermOption) OrderOption
ByCompression orders the results by the compression field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByHash ¶
func ByHash(opts ...sql.OrderTermOption) OrderOption
ByHash orders the results by the hash field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByPartsAvailable ¶
func ByPartsAvailable(opts ...sql.OrderTermOption) OrderOption
ByPartsAvailable orders the results by the parts_available field.
func ByRequestedAt ¶
func ByRequestedAt(opts ...sql.OrderTermOption) OrderOption
ByRequestedAt orders the results by the requested_at field.
func ByStatus ¶
func ByStatus(opts ...sql.OrderTermOption) OrderOption
ByStatus orders the results by the status field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.