Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Voucher) predicate.Voucher
- func CreatedAt(v time.Time) predicate.Voucher
- func CreatedAtEQ(v time.Time) predicate.Voucher
- func CreatedAtGT(v time.Time) predicate.Voucher
- func CreatedAtGTE(v time.Time) predicate.Voucher
- func CreatedAtIn(vs ...time.Time) predicate.Voucher
- func CreatedAtLT(v time.Time) predicate.Voucher
- func CreatedAtLTE(v time.Time) predicate.Voucher
- func CreatedAtNEQ(v time.Time) predicate.Voucher
- func CreatedAtNotIn(vs ...time.Time) predicate.Voucher
- func ID(id int) predicate.Voucher
- func IDEQ(id int) predicate.Voucher
- func IDGT(id int) predicate.Voucher
- func IDGTE(id int) predicate.Voucher
- func IDIn(ids ...int) predicate.Voucher
- func IDLT(id int) predicate.Voucher
- func IDLTE(id int) predicate.Voucher
- func IDNEQ(id int) predicate.Voucher
- func IDNotIn(ids ...int) predicate.Voucher
- func Name(v string) predicate.Voucher
- func NameContains(v string) predicate.Voucher
- func NameContainsFold(v string) predicate.Voucher
- func NameEQ(v string) predicate.Voucher
- func NameEqualFold(v string) predicate.Voucher
- func NameGT(v string) predicate.Voucher
- func NameGTE(v string) predicate.Voucher
- func NameHasPrefix(v string) predicate.Voucher
- func NameHasSuffix(v string) predicate.Voucher
- func NameIn(vs ...string) predicate.Voucher
- func NameLT(v string) predicate.Voucher
- func NameLTE(v string) predicate.Voucher
- func NameNEQ(v string) predicate.Voucher
- func NameNotIn(vs ...string) predicate.Voucher
- func Not(p predicate.Voucher) predicate.Voucher
- func Or(predicates ...predicate.Voucher) predicate.Voucher
- func Type(v string) predicate.Voucher
- func TypeContains(v string) predicate.Voucher
- func TypeContainsFold(v string) predicate.Voucher
- func TypeEQ(v string) predicate.Voucher
- func TypeEqualFold(v string) predicate.Voucher
- func TypeGT(v string) predicate.Voucher
- func TypeGTE(v string) predicate.Voucher
- func TypeHasPrefix(v string) predicate.Voucher
- func TypeHasSuffix(v string) predicate.Voucher
- func TypeIn(vs ...string) predicate.Voucher
- func TypeLT(v string) predicate.Voucher
- func TypeLTE(v string) predicate.Voucher
- func TypeNEQ(v string) predicate.Voucher
- func TypeNotIn(vs ...string) predicate.Voucher
- func UpdatedAt(v time.Time) predicate.Voucher
- func UpdatedAtEQ(v time.Time) predicate.Voucher
- func UpdatedAtGT(v time.Time) predicate.Voucher
- func UpdatedAtGTE(v time.Time) predicate.Voucher
- func UpdatedAtIn(vs ...time.Time) predicate.Voucher
- func UpdatedAtLT(v time.Time) predicate.Voucher
- func UpdatedAtLTE(v time.Time) predicate.Voucher
- func UpdatedAtNEQ(v time.Time) predicate.Voucher
- func UpdatedAtNotIn(vs ...time.Time) predicate.Voucher
- func ValidColumn(column string) bool
- func Value(v float64) predicate.Voucher
- func ValueEQ(v float64) predicate.Voucher
- func ValueGT(v float64) predicate.Voucher
- func ValueGTE(v float64) predicate.Voucher
- func ValueIn(vs ...float64) predicate.Voucher
- func ValueLT(v float64) predicate.Voucher
- func ValueLTE(v float64) predicate.Voucher
- func ValueNEQ(v float64) predicate.Voucher
- func ValueNotIn(vs ...float64) predicate.Voucher
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByType(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByValue(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the voucher type in the database. Label = "voucher" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldType holds the string denoting the type field in the database. FieldType = "type" // FieldValue holds the string denoting the value field in the database. FieldValue = "value" // 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 voucher in the database. Table = "vouchers" )
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 )
var Columns = []string{ FieldID, FieldName, FieldType, FieldValue, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for voucher 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 NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func TypeContains ¶
TypeContains applies the Contains predicate on the "type" field.
func TypeContainsFold ¶
TypeContainsFold applies the ContainsFold predicate on the "type" field.
func TypeEqualFold ¶
TypeEqualFold applies the EqualFold predicate on the "type" field.
func TypeHasPrefix ¶
TypeHasPrefix applies the HasPrefix predicate on the "type" field.
func TypeHasSuffix ¶
TypeHasSuffix applies the HasSuffix predicate on the "type" 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).
func Value ¶
Value applies equality check predicate on the "value" field. It's identical to ValueEQ.
func ValueNotIn ¶
ValueNotIn applies the NotIn predicate on the "value" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Voucher 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 ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByType ¶
func ByType(opts ...sql.OrderTermOption) OrderOption
ByType orders the results by the type field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByValue ¶
func ByValue(opts ...sql.OrderTermOption) OrderOption
ByValue orders the results by the value field.