Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Agent) predicate.Agent
- func CreatedAt(v time.Time) predicate.Agent
- func CreatedAtEQ(v time.Time) predicate.Agent
- func CreatedAtGT(v time.Time) predicate.Agent
- func CreatedAtGTE(v time.Time) predicate.Agent
- func CreatedAtIn(vs ...time.Time) predicate.Agent
- func CreatedAtLT(v time.Time) predicate.Agent
- func CreatedAtLTE(v time.Time) predicate.Agent
- func CreatedAtNEQ(v time.Time) predicate.Agent
- func CreatedAtNotIn(vs ...time.Time) predicate.Agent
- func Description(v string) predicate.Agent
- func DescriptionContains(v string) predicate.Agent
- func DescriptionContainsFold(v string) predicate.Agent
- func DescriptionEQ(v string) predicate.Agent
- func DescriptionEqualFold(v string) predicate.Agent
- func DescriptionGT(v string) predicate.Agent
- func DescriptionGTE(v string) predicate.Agent
- func DescriptionHasPrefix(v string) predicate.Agent
- func DescriptionHasSuffix(v string) predicate.Agent
- func DescriptionIn(vs ...string) predicate.Agent
- func DescriptionIsNil() predicate.Agent
- func DescriptionLT(v string) predicate.Agent
- func DescriptionLTE(v string) predicate.Agent
- func DescriptionNEQ(v string) predicate.Agent
- func DescriptionNotIn(vs ...string) predicate.Agent
- func DescriptionNotNil() predicate.Agent
- func Emoji(v string) predicate.Agent
- func EmojiContains(v string) predicate.Agent
- func EmojiContainsFold(v string) predicate.Agent
- func EmojiEQ(v string) predicate.Agent
- func EmojiEqualFold(v string) predicate.Agent
- func EmojiGT(v string) predicate.Agent
- func EmojiGTE(v string) predicate.Agent
- func EmojiHasPrefix(v string) predicate.Agent
- func EmojiHasSuffix(v string) predicate.Agent
- func EmojiIn(vs ...string) predicate.Agent
- func EmojiIsNil() predicate.Agent
- func EmojiLT(v string) predicate.Agent
- func EmojiLTE(v string) predicate.Agent
- func EmojiNEQ(v string) predicate.Agent
- func EmojiNotIn(vs ...string) predicate.Agent
- func EmojiNotNil() predicate.Agent
- func ID(id int) predicate.Agent
- func IDEQ(id int) predicate.Agent
- func IDGT(id int) predicate.Agent
- func IDGTE(id int) predicate.Agent
- func IDIn(ids ...int) predicate.Agent
- func IDLT(id int) predicate.Agent
- func IDLTE(id int) predicate.Agent
- func IDNEQ(id int) predicate.Agent
- func IDNotIn(ids ...int) predicate.Agent
- func Name(v string) predicate.Agent
- func NameContains(v string) predicate.Agent
- func NameContainsFold(v string) predicate.Agent
- func NameEQ(v string) predicate.Agent
- func NameEqualFold(v string) predicate.Agent
- func NameGT(v string) predicate.Agent
- func NameGTE(v string) predicate.Agent
- func NameHasPrefix(v string) predicate.Agent
- func NameHasSuffix(v string) predicate.Agent
- func NameIn(vs ...string) predicate.Agent
- func NameLT(v string) predicate.Agent
- func NameLTE(v string) predicate.Agent
- func NameNEQ(v string) predicate.Agent
- func NameNotIn(vs ...string) predicate.Agent
- func Not(p predicate.Agent) predicate.Agent
- func Or(predicates ...predicate.Agent) predicate.Agent
- func ValidColumn(column string) bool
- func Voice(v string) predicate.Agent
- func VoiceContains(v string) predicate.Agent
- func VoiceContainsFold(v string) predicate.Agent
- func VoiceEQ(v string) predicate.Agent
- func VoiceEqualFold(v string) predicate.Agent
- func VoiceGT(v string) predicate.Agent
- func VoiceGTE(v string) predicate.Agent
- func VoiceHasPrefix(v string) predicate.Agent
- func VoiceHasSuffix(v string) predicate.Agent
- func VoiceIn(vs ...string) predicate.Agent
- func VoiceIsNil() predicate.Agent
- func VoiceLT(v string) predicate.Agent
- func VoiceLTE(v string) predicate.Agent
- func VoiceNEQ(v string) predicate.Agent
- func VoiceNotIn(vs ...string) predicate.Agent
- func VoiceNotNil() predicate.Agent
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByEmoji(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByVoice(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the agent type in the database. Label = "agent" // 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" // FieldVoice holds the string denoting the voice field in the database. FieldVoice = "voice" // FieldEmoji holds the string denoting the emoji field in the database. FieldEmoji = "emoji" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // Table holds the table name of the agent in the database. Table = "agents" )
Variables ¶
var ( // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time )
var Columns = []string{ FieldID, FieldName, FieldVoice, FieldEmoji, FieldDescription, FieldCreatedAt, }
Columns holds all SQL columns for agent 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 Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionIsNil ¶
DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotNil ¶
DescriptionNotNil applies the NotNil predicate on the "description" field.
func Emoji ¶
Emoji applies equality check predicate on the "emoji" field. It's identical to EmojiEQ.
func EmojiContains ¶
EmojiContains applies the Contains predicate on the "emoji" field.
func EmojiContainsFold ¶
EmojiContainsFold applies the ContainsFold predicate on the "emoji" field.
func EmojiEqualFold ¶
EmojiEqualFold applies the EqualFold predicate on the "emoji" field.
func EmojiHasPrefix ¶
EmojiHasPrefix applies the HasPrefix predicate on the "emoji" field.
func EmojiHasSuffix ¶
EmojiHasSuffix applies the HasSuffix predicate on the "emoji" field.
func EmojiIsNil ¶
EmojiIsNil applies the IsNil predicate on the "emoji" field.
func EmojiNotIn ¶
EmojiNotIn applies the NotIn predicate on the "emoji" field.
func EmojiNotNil ¶
EmojiNotNil applies the NotNil predicate on the "emoji" 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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func Voice ¶
Voice applies equality check predicate on the "voice" field. It's identical to VoiceEQ.
func VoiceContains ¶
VoiceContains applies the Contains predicate on the "voice" field.
func VoiceContainsFold ¶
VoiceContainsFold applies the ContainsFold predicate on the "voice" field.
func VoiceEqualFold ¶
VoiceEqualFold applies the EqualFold predicate on the "voice" field.
func VoiceHasPrefix ¶
VoiceHasPrefix applies the HasPrefix predicate on the "voice" field.
func VoiceHasSuffix ¶
VoiceHasSuffix applies the HasSuffix predicate on the "voice" field.
func VoiceIsNil ¶
VoiceIsNil applies the IsNil predicate on the "voice" field.
func VoiceNotIn ¶
VoiceNotIn applies the NotIn predicate on the "voice" field.
func VoiceNotNil ¶
VoiceNotNil applies the NotNil predicate on the "voice" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Agent queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDescription ¶
func ByDescription(opts ...sql.OrderTermOption) OrderOption
ByDescription orders the results by the description field.
func ByEmoji ¶
func ByEmoji(opts ...sql.OrderTermOption) OrderOption
ByEmoji orders the results by the emoji 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 ByVoice ¶
func ByVoice(opts ...sql.OrderTermOption) OrderOption
ByVoice orders the results by the voice field.