Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.BannedWords) predicate.BannedWords
- func CreatedAt(v time.Time) predicate.BannedWords
- func CreatedAtEQ(v time.Time) predicate.BannedWords
- func CreatedAtGT(v time.Time) predicate.BannedWords
- func CreatedAtGTE(v time.Time) predicate.BannedWords
- func CreatedAtIn(vs ...time.Time) predicate.BannedWords
- func CreatedAtLT(v time.Time) predicate.BannedWords
- func CreatedAtLTE(v time.Time) predicate.BannedWords
- func CreatedAtNEQ(v time.Time) predicate.BannedWords
- func CreatedAtNotIn(vs ...time.Time) predicate.BannedWords
- func ID(id uuid.UUID) predicate.BannedWords
- func IDEQ(id uuid.UUID) predicate.BannedWords
- func IDGT(id uuid.UUID) predicate.BannedWords
- func IDGTE(id uuid.UUID) predicate.BannedWords
- func IDIn(ids ...uuid.UUID) predicate.BannedWords
- func IDLT(id uuid.UUID) predicate.BannedWords
- func IDLTE(id uuid.UUID) predicate.BannedWords
- func IDNEQ(id uuid.UUID) predicate.BannedWords
- func IDNotIn(ids ...uuid.UUID) predicate.BannedWords
- func Not(p predicate.BannedWords) predicate.BannedWords
- func Or(predicates ...predicate.BannedWords) predicate.BannedWords
- func Reason(v string) predicate.BannedWords
- func ReasonContains(v string) predicate.BannedWords
- func ReasonContainsFold(v string) predicate.BannedWords
- func ReasonEQ(v string) predicate.BannedWords
- func ReasonEqualFold(v string) predicate.BannedWords
- func ReasonGT(v string) predicate.BannedWords
- func ReasonGTE(v string) predicate.BannedWords
- func ReasonHasPrefix(v string) predicate.BannedWords
- func ReasonHasSuffix(v string) predicate.BannedWords
- func ReasonIn(vs ...string) predicate.BannedWords
- func ReasonLT(v string) predicate.BannedWords
- func ReasonLTE(v string) predicate.BannedWords
- func ReasonNEQ(v string) predicate.BannedWords
- func ReasonNotIn(vs ...string) predicate.BannedWords
- func SplitMatch(v bool) predicate.BannedWords
- func SplitMatchEQ(v bool) predicate.BannedWords
- func SplitMatchNEQ(v bool) predicate.BannedWords
- func UpdatedAt(v time.Time) predicate.BannedWords
- func UpdatedAtEQ(v time.Time) predicate.BannedWords
- func UpdatedAtGT(v time.Time) predicate.BannedWords
- func UpdatedAtGTE(v time.Time) predicate.BannedWords
- func UpdatedAtIn(vs ...time.Time) predicate.BannedWords
- func UpdatedAtLT(v time.Time) predicate.BannedWords
- func UpdatedAtLTE(v time.Time) predicate.BannedWords
- func UpdatedAtNEQ(v time.Time) predicate.BannedWords
- func UpdatedAtNotIn(vs ...time.Time) predicate.BannedWords
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the bannedwords type in the database. Label = "banned_words" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldWords holds the string denoting the words field in the database. FieldWords = "words" // FieldReason holds the string denoting the reason field in the database. FieldReason = "reason" // FieldSplitMatch holds the string denoting the split_match field in the database. FieldSplitMatch = "split_match" // 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 bannedwords in the database. Table = "banned_words" )
Variables ¶
var ( // DefaultSplitMatch holds the default value on creation for the "split_match" field. DefaultSplitMatch bool // 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 // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldWords, FieldReason, FieldSplitMatch, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for bannedwords fields.
Functions ¶
func And ¶
func And(predicates ...predicate.BannedWords) predicate.BannedWords
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.BannedWords
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.BannedWords
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.BannedWords
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.BannedWords
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.BannedWords
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.BannedWords
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.BannedWords
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.BannedWords
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.BannedWords
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.BannedWords
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.BannedWords
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.BannedWords
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.BannedWords
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.BannedWords
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.BannedWords
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.BannedWords
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.BannedWords
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.BannedWords) predicate.BannedWords
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.BannedWords) predicate.BannedWords
Or groups predicates with the OR operator between them.
func Reason ¶
func Reason(v string) predicate.BannedWords
Reason applies equality check predicate on the "reason" field. It's identical to ReasonEQ.
func ReasonContains ¶
func ReasonContains(v string) predicate.BannedWords
ReasonContains applies the Contains predicate on the "reason" field.
func ReasonContainsFold ¶
func ReasonContainsFold(v string) predicate.BannedWords
ReasonContainsFold applies the ContainsFold predicate on the "reason" field.
func ReasonEQ ¶
func ReasonEQ(v string) predicate.BannedWords
ReasonEQ applies the EQ predicate on the "reason" field.
func ReasonEqualFold ¶
func ReasonEqualFold(v string) predicate.BannedWords
ReasonEqualFold applies the EqualFold predicate on the "reason" field.
func ReasonGT ¶
func ReasonGT(v string) predicate.BannedWords
ReasonGT applies the GT predicate on the "reason" field.
func ReasonGTE ¶
func ReasonGTE(v string) predicate.BannedWords
ReasonGTE applies the GTE predicate on the "reason" field.
func ReasonHasPrefix ¶
func ReasonHasPrefix(v string) predicate.BannedWords
ReasonHasPrefix applies the HasPrefix predicate on the "reason" field.
func ReasonHasSuffix ¶
func ReasonHasSuffix(v string) predicate.BannedWords
ReasonHasSuffix applies the HasSuffix predicate on the "reason" field.
func ReasonIn ¶
func ReasonIn(vs ...string) predicate.BannedWords
ReasonIn applies the In predicate on the "reason" field.
func ReasonLT ¶
func ReasonLT(v string) predicate.BannedWords
ReasonLT applies the LT predicate on the "reason" field.
func ReasonLTE ¶
func ReasonLTE(v string) predicate.BannedWords
ReasonLTE applies the LTE predicate on the "reason" field.
func ReasonNEQ ¶
func ReasonNEQ(v string) predicate.BannedWords
ReasonNEQ applies the NEQ predicate on the "reason" field.
func ReasonNotIn ¶
func ReasonNotIn(vs ...string) predicate.BannedWords
ReasonNotIn applies the NotIn predicate on the "reason" field.
func SplitMatch ¶
func SplitMatch(v bool) predicate.BannedWords
SplitMatch applies equality check predicate on the "split_match" field. It's identical to SplitMatchEQ.
func SplitMatchEQ ¶
func SplitMatchEQ(v bool) predicate.BannedWords
SplitMatchEQ applies the EQ predicate on the "split_match" field.
func SplitMatchNEQ ¶
func SplitMatchNEQ(v bool) predicate.BannedWords
SplitMatchNEQ applies the NEQ predicate on the "split_match" field.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.BannedWords
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.BannedWords
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.BannedWords
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.BannedWords
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.BannedWords
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.BannedWords
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.BannedWords
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.BannedWords
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.BannedWords
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 BannedWords 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 ByReason ¶
func ByReason(opts ...sql.OrderTermOption) OrderOption
ByReason orders the results by the reason field.
func BySplitMatch ¶
func BySplitMatch(opts ...sql.OrderTermOption) OrderOption
BySplitMatch orders the results by the split_match field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.