Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.ShipmentStatusCode) predicate.ShipmentStatusCode
- func CreatedAt(v time.Time) predicate.ShipmentStatusCode
- func CreatedAtEQ(v time.Time) predicate.ShipmentStatusCode
- func CreatedAtGT(v time.Time) predicate.ShipmentStatusCode
- func CreatedAtGTE(v time.Time) predicate.ShipmentStatusCode
- func CreatedAtIn(vs ...time.Time) predicate.ShipmentStatusCode
- func CreatedAtLT(v time.Time) predicate.ShipmentStatusCode
- func CreatedAtLTE(v time.Time) predicate.ShipmentStatusCode
- func CreatedAtNEQ(v time.Time) predicate.ShipmentStatusCode
- func CreatedAtNotIn(vs ...time.Time) predicate.ShipmentStatusCode
- func ID(id int) predicate.ShipmentStatusCode
- func IDEQ(id int) predicate.ShipmentStatusCode
- func IDGT(id int) predicate.ShipmentStatusCode
- func IDGTE(id int) predicate.ShipmentStatusCode
- func IDIn(ids ...int) predicate.ShipmentStatusCode
- func IDLT(id int) predicate.ShipmentStatusCode
- func IDLTE(id int) predicate.ShipmentStatusCode
- func IDNEQ(id int) predicate.ShipmentStatusCode
- func IDNotIn(ids ...int) predicate.ShipmentStatusCode
- func Not(p predicate.ShipmentStatusCode) predicate.ShipmentStatusCode
- func Or(predicates ...predicate.ShipmentStatusCode) predicate.ShipmentStatusCode
- func ShipmentStatus(v string) predicate.ShipmentStatusCode
- func ShipmentStatusContains(v string) predicate.ShipmentStatusCode
- func ShipmentStatusContainsFold(v string) predicate.ShipmentStatusCode
- func ShipmentStatusEQ(v string) predicate.ShipmentStatusCode
- func ShipmentStatusEqualFold(v string) predicate.ShipmentStatusCode
- func ShipmentStatusGT(v string) predicate.ShipmentStatusCode
- func ShipmentStatusGTE(v string) predicate.ShipmentStatusCode
- func ShipmentStatusHasPrefix(v string) predicate.ShipmentStatusCode
- func ShipmentStatusHasSuffix(v string) predicate.ShipmentStatusCode
- func ShipmentStatusIn(vs ...string) predicate.ShipmentStatusCode
- func ShipmentStatusLT(v string) predicate.ShipmentStatusCode
- func ShipmentStatusLTE(v string) predicate.ShipmentStatusCode
- func ShipmentStatusNEQ(v string) predicate.ShipmentStatusCode
- func ShipmentStatusNotIn(vs ...string) predicate.ShipmentStatusCode
- func UpdatedAt(v time.Time) predicate.ShipmentStatusCode
- func UpdatedAtEQ(v time.Time) predicate.ShipmentStatusCode
- func UpdatedAtGT(v time.Time) predicate.ShipmentStatusCode
- func UpdatedAtGTE(v time.Time) predicate.ShipmentStatusCode
- func UpdatedAtIn(vs ...time.Time) predicate.ShipmentStatusCode
- func UpdatedAtLT(v time.Time) predicate.ShipmentStatusCode
- func UpdatedAtLTE(v time.Time) predicate.ShipmentStatusCode
- func UpdatedAtNEQ(v time.Time) predicate.ShipmentStatusCode
- func UpdatedAtNotIn(vs ...time.Time) predicate.ShipmentStatusCode
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the shipmentstatuscode type in the database. Label = "shipment_status_code" // 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" // FieldShipmentStatus holds the string denoting the shipment_status field in the database. FieldShipmentStatus = "shipment_status" // Table holds the table name of the shipmentstatuscode in the database. Table = "shipment_status_codes" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // ShipmentStatusValidator is a validator for the "shipment_status" field. It is called by the builders before save. ShipmentStatusValidator func(string) error // IDValidator is a validator for the "id" field. It is called by the builders before save. IDValidator func(int) error )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldShipmentStatus, }
Columns holds all SQL columns for shipmentstatuscode fields.
Functions ¶
func And ¶
func And(predicates ...predicate.ShipmentStatusCode) predicate.ShipmentStatusCode
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.ShipmentStatusCode
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.ShipmentStatusCode
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.ShipmentStatusCode
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.ShipmentStatusCode
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.ShipmentStatusCode
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.ShipmentStatusCode
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.ShipmentStatusCode
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.ShipmentStatusCode
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.ShipmentStatusCode
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func IDEQ ¶
func IDEQ(id int) predicate.ShipmentStatusCode
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.ShipmentStatusCode
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.ShipmentStatusCode
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.ShipmentStatusCode
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int) predicate.ShipmentStatusCode
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.ShipmentStatusCode
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.ShipmentStatusCode
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.ShipmentStatusCode
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.ShipmentStatusCode) predicate.ShipmentStatusCode
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.ShipmentStatusCode) predicate.ShipmentStatusCode
Or groups predicates with the OR operator between them.
func ShipmentStatus ¶
func ShipmentStatus(v string) predicate.ShipmentStatusCode
ShipmentStatus applies equality check predicate on the "shipment_status" field. It's identical to ShipmentStatusEQ.
func ShipmentStatusContains ¶
func ShipmentStatusContains(v string) predicate.ShipmentStatusCode
ShipmentStatusContains applies the Contains predicate on the "shipment_status" field.
func ShipmentStatusContainsFold ¶
func ShipmentStatusContainsFold(v string) predicate.ShipmentStatusCode
ShipmentStatusContainsFold applies the ContainsFold predicate on the "shipment_status" field.
func ShipmentStatusEQ ¶
func ShipmentStatusEQ(v string) predicate.ShipmentStatusCode
ShipmentStatusEQ applies the EQ predicate on the "shipment_status" field.
func ShipmentStatusEqualFold ¶
func ShipmentStatusEqualFold(v string) predicate.ShipmentStatusCode
ShipmentStatusEqualFold applies the EqualFold predicate on the "shipment_status" field.
func ShipmentStatusGT ¶
func ShipmentStatusGT(v string) predicate.ShipmentStatusCode
ShipmentStatusGT applies the GT predicate on the "shipment_status" field.
func ShipmentStatusGTE ¶
func ShipmentStatusGTE(v string) predicate.ShipmentStatusCode
ShipmentStatusGTE applies the GTE predicate on the "shipment_status" field.
func ShipmentStatusHasPrefix ¶
func ShipmentStatusHasPrefix(v string) predicate.ShipmentStatusCode
ShipmentStatusHasPrefix applies the HasPrefix predicate on the "shipment_status" field.
func ShipmentStatusHasSuffix ¶
func ShipmentStatusHasSuffix(v string) predicate.ShipmentStatusCode
ShipmentStatusHasSuffix applies the HasSuffix predicate on the "shipment_status" field.
func ShipmentStatusIn ¶
func ShipmentStatusIn(vs ...string) predicate.ShipmentStatusCode
ShipmentStatusIn applies the In predicate on the "shipment_status" field.
func ShipmentStatusLT ¶
func ShipmentStatusLT(v string) predicate.ShipmentStatusCode
ShipmentStatusLT applies the LT predicate on the "shipment_status" field.
func ShipmentStatusLTE ¶
func ShipmentStatusLTE(v string) predicate.ShipmentStatusCode
ShipmentStatusLTE applies the LTE predicate on the "shipment_status" field.
func ShipmentStatusNEQ ¶
func ShipmentStatusNEQ(v string) predicate.ShipmentStatusCode
ShipmentStatusNEQ applies the NEQ predicate on the "shipment_status" field.
func ShipmentStatusNotIn ¶
func ShipmentStatusNotIn(vs ...string) predicate.ShipmentStatusCode
ShipmentStatusNotIn applies the NotIn predicate on the "shipment_status" field.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.ShipmentStatusCode
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.ShipmentStatusCode
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.ShipmentStatusCode
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.ShipmentStatusCode
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.ShipmentStatusCode
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.ShipmentStatusCode
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.ShipmentStatusCode
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.ShipmentStatusCode
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.ShipmentStatusCode
UpdatedAtNotIn applies the NotIn 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 ShipmentStatusCode queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByShipmentStatus ¶
func ByShipmentStatus(opts ...sql.OrderTermOption) OrderOption
ByShipmentStatus orders the results by the shipment_status field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.