Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Order) predicate.Order
- func CreatedAt(v time.Time) predicate.Order
- func CreatedAtEQ(v time.Time) predicate.Order
- func CreatedAtGT(v time.Time) predicate.Order
- func CreatedAtGTE(v time.Time) predicate.Order
- func CreatedAtIn(vs ...time.Time) predicate.Order
- func CreatedAtLT(v time.Time) predicate.Order
- func CreatedAtLTE(v time.Time) predicate.Order
- func CreatedAtNEQ(v time.Time) predicate.Order
- func CreatedAtNotIn(vs ...time.Time) predicate.Order
- func Gid(v int64) predicate.Order
- func GidEQ(v int64) predicate.Order
- func GidGT(v int64) predicate.Order
- func GidGTE(v int64) predicate.Order
- func GidIn(vs ...int64) predicate.Order
- func GidLT(v int64) predicate.Order
- func GidLTE(v int64) predicate.Order
- func GidNEQ(v int64) predicate.Order
- func GidNotIn(vs ...int64) predicate.Order
- func ID(id int64) predicate.Order
- func IDEQ(id int64) predicate.Order
- func IDGT(id int64) predicate.Order
- func IDGTE(id int64) predicate.Order
- func IDIn(ids ...int64) predicate.Order
- func IDLT(id int64) predicate.Order
- func IDLTE(id int64) predicate.Order
- func IDNEQ(id int64) predicate.Order
- func IDNotIn(ids ...int64) predicate.Order
- func Not(p predicate.Order) predicate.Order
- func Or(predicates ...predicate.Order) predicate.Order
- func Sn(v string) predicate.Order
- func SnContains(v string) predicate.Order
- func SnContainsFold(v string) predicate.Order
- func SnEQ(v string) predicate.Order
- func SnEqualFold(v string) predicate.Order
- func SnGT(v string) predicate.Order
- func SnGTE(v string) predicate.Order
- func SnHasPrefix(v string) predicate.Order
- func SnHasSuffix(v string) predicate.Order
- func SnIn(vs ...string) predicate.Order
- func SnLT(v string) predicate.Order
- func SnLTE(v string) predicate.Order
- func SnNEQ(v string) predicate.Order
- func SnNotIn(vs ...string) predicate.Order
- func UID(v int64) predicate.Order
- func UIDEQ(v int64) predicate.Order
- func UIDGT(v int64) predicate.Order
- func UIDGTE(v int64) predicate.Order
- func UIDIn(vs ...int64) predicate.Order
- func UIDLT(v int64) predicate.Order
- func UIDLTE(v int64) predicate.Order
- func UIDNEQ(v int64) predicate.Order
- func UIDNotIn(vs ...int64) predicate.Order
- func UpdatedAt(v time.Time) predicate.Order
- func UpdatedAtEQ(v time.Time) predicate.Order
- func UpdatedAtGT(v time.Time) predicate.Order
- func UpdatedAtGTE(v time.Time) predicate.Order
- func UpdatedAtIn(vs ...time.Time) predicate.Order
- func UpdatedAtLT(v time.Time) predicate.Order
- func UpdatedAtLTE(v time.Time) predicate.Order
- func UpdatedAtNEQ(v time.Time) predicate.Order
- func UpdatedAtNotIn(vs ...time.Time) predicate.Order
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the order type in the database. Label = "order" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldSn holds the string denoting the sn field in the database. FieldSn = "sn" // FieldGid holds the string denoting the gid field in the database. FieldGid = "gid" // FieldUID holds the string denoting the uid field in the database. FieldUID = "uid" // 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" // Table holds the table name of the order in the database. Table = "orders" )
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 )
var Columns = []string{ FieldID, FieldSn, FieldGid, FieldUID, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for order fields.
Functions ¶
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 SnContains ¶
SnContains applies the Contains predicate on the "sn" field.
func SnContainsFold ¶
SnContainsFold applies the ContainsFold predicate on the "sn" field.
func SnEqualFold ¶
SnEqualFold applies the EqualFold predicate on the "sn" field.
func SnHasPrefix ¶
SnHasPrefix applies the HasPrefix predicate on the "sn" field.
func SnHasSuffix ¶
SnHasSuffix applies the HasSuffix predicate on the "sn" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
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 ¶
This section is empty.