Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Module) predicate.Module
- func Enabled(v bool) predicate.Module
- func EnabledEQ(v bool) predicate.Module
- func EnabledNEQ(v bool) predicate.Module
- func ID(id string) predicate.Module
- func IDContainsFold(id string) predicate.Module
- func IDEQ(id string) predicate.Module
- func IDEqualFold(id string) predicate.Module
- func IDGT(id string) predicate.Module
- func IDGTE(id string) predicate.Module
- func IDIn(ids ...string) predicate.Module
- func IDLT(id string) predicate.Module
- func IDLTE(id string) predicate.Module
- func IDNEQ(id string) predicate.Module
- func IDNotIn(ids ...string) predicate.Module
- func Not(p predicate.Module) predicate.Module
- func Or(predicates ...predicate.Module) predicate.Module
- func UpdatedAt(v time.Time) predicate.Module
- func UpdatedAtEQ(v time.Time) predicate.Module
- func UpdatedAtGT(v time.Time) predicate.Module
- func UpdatedAtGTE(v time.Time) predicate.Module
- func UpdatedAtIn(vs ...time.Time) predicate.Module
- func UpdatedAtLT(v time.Time) predicate.Module
- func UpdatedAtLTE(v time.Time) predicate.Module
- func UpdatedAtNEQ(v time.Time) predicate.Module
- func UpdatedAtNotIn(vs ...time.Time) predicate.Module
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the module type in the database. Label = "module" // FieldID holds the string denoting the id field in the database. FieldID = "name" // FieldEnabled holds the string denoting the enabled field in the database. FieldEnabled = "enabled" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // Table holds the table name of the module in the database. Table = "modules" )
Variables ¶
var ( // DefaultEnabled holds the default value on creation for the "enabled" field. DefaultEnabled bool // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // IDValidator is a validator for the "id" field. It is called by the builders before save. IDValidator func(string) error )
var Columns = []string{ FieldID, FieldEnabled, FieldUpdatedAt, }
Columns holds all SQL columns for module fields.
Functions ¶
func Enabled ¶
Enabled applies equality check predicate on the "enabled" field. It's identical to EnabledEQ.
func EnabledNEQ ¶
EnabledNEQ applies the NEQ predicate on the "enabled" field.
func IDContainsFold ¶
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEqualFold ¶
IDEqualFold applies the EqualFold predicate on the ID 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 ¶
type OrderOption ¶
OrderOption defines the ordering options for the Module queries.
func ByEnabled ¶
func ByEnabled(opts ...sql.OrderTermOption) OrderOption
ByEnabled orders the results by the enabled field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.