Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Message) predicate.Message
- func Content(v []byte) predicate.Message
- func ContentEQ(v []byte) predicate.Message
- func ContentGT(v []byte) predicate.Message
- func ContentGTE(v []byte) predicate.Message
- func ContentIn(vs ...[]byte) predicate.Message
- func ContentLT(v []byte) predicate.Message
- func ContentLTE(v []byte) predicate.Message
- func ContentNEQ(v []byte) predicate.Message
- func ContentNotIn(vs ...[]byte) predicate.Message
- func CreatedAt(v time.Time) predicate.Message
- func CreatedAtEQ(v time.Time) predicate.Message
- func CreatedAtGT(v time.Time) predicate.Message
- func CreatedAtGTE(v time.Time) predicate.Message
- func CreatedAtIn(vs ...time.Time) predicate.Message
- func CreatedAtLT(v time.Time) predicate.Message
- func CreatedAtLTE(v time.Time) predicate.Message
- func CreatedAtNEQ(v time.Time) predicate.Message
- func CreatedAtNotIn(vs ...time.Time) predicate.Message
- func ID(id int) predicate.Message
- func IDEQ(id int) predicate.Message
- func IDGT(id int) predicate.Message
- func IDGTE(id int) predicate.Message
- func IDIn(ids ...int) predicate.Message
- func IDLT(id int) predicate.Message
- func IDLTE(id int) predicate.Message
- func IDNEQ(id int) predicate.Message
- func IDNotIn(ids ...int) predicate.Message
- func Mime(v types.MIME) predicate.Message
- func MimeContains(v types.MIME) predicate.Message
- func MimeContainsFold(v types.MIME) predicate.Message
- func MimeEQ(v types.MIME) predicate.Message
- func MimeEqualFold(v types.MIME) predicate.Message
- func MimeGT(v types.MIME) predicate.Message
- func MimeGTE(v types.MIME) predicate.Message
- func MimeHasPrefix(v types.MIME) predicate.Message
- func MimeHasSuffix(v types.MIME) predicate.Message
- func MimeIn(vs ...types.MIME) predicate.Message
- func MimeLT(v types.MIME) predicate.Message
- func MimeLTE(v types.MIME) predicate.Message
- func MimeNEQ(v types.MIME) predicate.Message
- func MimeNotIn(vs ...types.MIME) predicate.Message
- func Not(p predicate.Message) predicate.Message
- func Or(predicates ...predicate.Message) predicate.Message
- func Role(v types.Role) predicate.Message
- func RoleContains(v types.Role) predicate.Message
- func RoleContainsFold(v types.Role) predicate.Message
- func RoleEQ(v types.Role) predicate.Message
- func RoleEqualFold(v types.Role) predicate.Message
- func RoleGT(v types.Role) predicate.Message
- func RoleGTE(v types.Role) predicate.Message
- func RoleHasPrefix(v types.Role) predicate.Message
- func RoleHasSuffix(v types.Role) predicate.Message
- func RoleIn(vs ...types.Role) predicate.Message
- func RoleLT(v types.Role) predicate.Message
- func RoleLTE(v types.Role) predicate.Message
- func RoleNEQ(v types.Role) predicate.Message
- func RoleNotIn(vs ...types.Role) predicate.Message
- func Thread(v string) predicate.Message
- func ThreadContains(v string) predicate.Message
- func ThreadContainsFold(v string) predicate.Message
- func ThreadEQ(v string) predicate.Message
- func ThreadEqualFold(v string) predicate.Message
- func ThreadGT(v string) predicate.Message
- func ThreadGTE(v string) predicate.Message
- func ThreadHasPrefix(v string) predicate.Message
- func ThreadHasSuffix(v string) predicate.Message
- func ThreadIn(vs ...string) predicate.Message
- func ThreadLT(v string) predicate.Message
- func ThreadLTE(v string) predicate.Message
- func ThreadNEQ(v string) predicate.Message
- func ThreadNotIn(vs ...string) predicate.Message
- func ToolID(v string) predicate.Message
- func ToolIDContains(v string) predicate.Message
- func ToolIDContainsFold(v string) predicate.Message
- func ToolIDEQ(v string) predicate.Message
- func ToolIDEqualFold(v string) predicate.Message
- func ToolIDGT(v string) predicate.Message
- func ToolIDGTE(v string) predicate.Message
- func ToolIDHasPrefix(v string) predicate.Message
- func ToolIDHasSuffix(v string) predicate.Message
- func ToolIDIn(vs ...string) predicate.Message
- func ToolIDIsNil() predicate.Message
- func ToolIDLT(v string) predicate.Message
- func ToolIDLTE(v string) predicate.Message
- func ToolIDNEQ(v string) predicate.Message
- func ToolIDNotIn(vs ...string) predicate.Message
- func ToolIDNotNil() predicate.Message
- func ToolName(v string) predicate.Message
- func ToolNameContains(v string) predicate.Message
- func ToolNameContainsFold(v string) predicate.Message
- func ToolNameEQ(v string) predicate.Message
- func ToolNameEqualFold(v string) predicate.Message
- func ToolNameGT(v string) predicate.Message
- func ToolNameGTE(v string) predicate.Message
- func ToolNameHasPrefix(v string) predicate.Message
- func ToolNameHasSuffix(v string) predicate.Message
- func ToolNameIn(vs ...string) predicate.Message
- func ToolNameIsNil() predicate.Message
- func ToolNameLT(v string) predicate.Message
- func ToolNameLTE(v string) predicate.Message
- func ToolNameNEQ(v string) predicate.Message
- func ToolNameNotIn(vs ...string) predicate.Message
- func ToolNameNotNil() predicate.Message
- func UpdatedAt(v time.Time) predicate.Message
- func UpdatedAtEQ(v time.Time) predicate.Message
- func UpdatedAtGT(v time.Time) predicate.Message
- func UpdatedAtGTE(v time.Time) predicate.Message
- func UpdatedAtIn(vs ...time.Time) predicate.Message
- func UpdatedAtLT(v time.Time) predicate.Message
- func UpdatedAtLTE(v time.Time) predicate.Message
- func UpdatedAtNEQ(v time.Time) predicate.Message
- func UpdatedAtNotIn(vs ...time.Time) predicate.Message
- func User(v string) predicate.Message
- func UserContains(v string) predicate.Message
- func UserContainsFold(v string) predicate.Message
- func UserEQ(v string) predicate.Message
- func UserEqualFold(v string) predicate.Message
- func UserGT(v string) predicate.Message
- func UserGTE(v string) predicate.Message
- func UserHasPrefix(v string) predicate.Message
- func UserHasSuffix(v string) predicate.Message
- func UserIn(vs ...string) predicate.Message
- func UserIsNil() predicate.Message
- func UserLT(v string) predicate.Message
- func UserLTE(v string) predicate.Message
- func UserNEQ(v string) predicate.Message
- func UserNotIn(vs ...string) predicate.Message
- func UserNotNil() predicate.Message
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByMime(opts ...sql.OrderTermOption) OrderOption
- func ByRole(opts ...sql.OrderTermOption) OrderOption
- func ByThread(opts ...sql.OrderTermOption) OrderOption
- func ByToolID(opts ...sql.OrderTermOption) OrderOption
- func ByToolName(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUser(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the message type in the database. Label = "message" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldThread holds the string denoting the thread field in the database. FieldThread = "thread" // FieldToolName holds the string denoting the tool_name field in the database. FieldToolName = "tool_name" // FieldToolID holds the string denoting the tool_id field in the database. FieldToolID = "tool_id" // FieldRole holds the string denoting the role field in the database. FieldRole = "role" // FieldUser holds the string denoting the user field in the database. FieldUser = "user" // FieldMime holds the string denoting the mime field in the database. FieldMime = "mime" // FieldContent holds the string denoting the content field in the database. FieldContent = "content" // 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 message in the database. Table = "messages" )
Variables ¶
var ( // RoleValidator is a validator for the "role" field. It is called by the builders before save. RoleValidator func(string) error // DefaultMime holds the default value on creation for the "mime" field. DefaultMime types.MIME // MimeValidator is a validator for the "mime" field. It is called by the builders before save. MimeValidator func(string) error // 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, FieldThread, FieldToolName, FieldToolID, FieldRole, FieldUser, FieldMime, FieldContent, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for message fields.
Functions ¶
func Content ¶
Content applies equality check predicate on the "content" field. It's identical to ContentEQ.
func ContentGTE ¶
ContentGTE applies the GTE predicate on the "content" field.
func ContentLTE ¶
ContentLTE applies the LTE predicate on the "content" field.
func ContentNEQ ¶
ContentNEQ applies the NEQ predicate on the "content" field.
func ContentNotIn ¶
ContentNotIn applies the NotIn predicate on the "content" field.
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 MimeContains ¶
MimeContains applies the Contains predicate on the "mime" field.
func MimeContainsFold ¶
MimeContainsFold applies the ContainsFold predicate on the "mime" field.
func MimeEqualFold ¶
MimeEqualFold applies the EqualFold predicate on the "mime" field.
func MimeHasPrefix ¶
MimeHasPrefix applies the HasPrefix predicate on the "mime" field.
func MimeHasSuffix ¶
MimeHasSuffix applies the HasSuffix predicate on the "mime" field.
func RoleContains ¶
RoleContains applies the Contains predicate on the "role" field.
func RoleContainsFold ¶
RoleContainsFold applies the ContainsFold predicate on the "role" field.
func RoleEqualFold ¶
RoleEqualFold applies the EqualFold predicate on the "role" field.
func RoleHasPrefix ¶
RoleHasPrefix applies the HasPrefix predicate on the "role" field.
func RoleHasSuffix ¶
RoleHasSuffix applies the HasSuffix predicate on the "role" field.
func Thread ¶
Thread applies equality check predicate on the "thread" field. It's identical to ThreadEQ.
func ThreadContains ¶
ThreadContains applies the Contains predicate on the "thread" field.
func ThreadContainsFold ¶
ThreadContainsFold applies the ContainsFold predicate on the "thread" field.
func ThreadEqualFold ¶
ThreadEqualFold applies the EqualFold predicate on the "thread" field.
func ThreadHasPrefix ¶
ThreadHasPrefix applies the HasPrefix predicate on the "thread" field.
func ThreadHasSuffix ¶
ThreadHasSuffix applies the HasSuffix predicate on the "thread" field.
func ThreadNotIn ¶
ThreadNotIn applies the NotIn predicate on the "thread" field.
func ToolID ¶
ToolID applies equality check predicate on the "tool_id" field. It's identical to ToolIDEQ.
func ToolIDContains ¶
ToolIDContains applies the Contains predicate on the "tool_id" field.
func ToolIDContainsFold ¶
ToolIDContainsFold applies the ContainsFold predicate on the "tool_id" field.
func ToolIDEqualFold ¶
ToolIDEqualFold applies the EqualFold predicate on the "tool_id" field.
func ToolIDHasPrefix ¶
ToolIDHasPrefix applies the HasPrefix predicate on the "tool_id" field.
func ToolIDHasSuffix ¶
ToolIDHasSuffix applies the HasSuffix predicate on the "tool_id" field.
func ToolIDIsNil ¶
ToolIDIsNil applies the IsNil predicate on the "tool_id" field.
func ToolIDNotIn ¶
ToolIDNotIn applies the NotIn predicate on the "tool_id" field.
func ToolIDNotNil ¶
ToolIDNotNil applies the NotNil predicate on the "tool_id" field.
func ToolName ¶
ToolName applies equality check predicate on the "tool_name" field. It's identical to ToolNameEQ.
func ToolNameContains ¶
ToolNameContains applies the Contains predicate on the "tool_name" field.
func ToolNameContainsFold ¶
ToolNameContainsFold applies the ContainsFold predicate on the "tool_name" field.
func ToolNameEQ ¶
ToolNameEQ applies the EQ predicate on the "tool_name" field.
func ToolNameEqualFold ¶
ToolNameEqualFold applies the EqualFold predicate on the "tool_name" field.
func ToolNameGT ¶
ToolNameGT applies the GT predicate on the "tool_name" field.
func ToolNameGTE ¶
ToolNameGTE applies the GTE predicate on the "tool_name" field.
func ToolNameHasPrefix ¶
ToolNameHasPrefix applies the HasPrefix predicate on the "tool_name" field.
func ToolNameHasSuffix ¶
ToolNameHasSuffix applies the HasSuffix predicate on the "tool_name" field.
func ToolNameIn ¶
ToolNameIn applies the In predicate on the "tool_name" field.
func ToolNameIsNil ¶
ToolNameIsNil applies the IsNil predicate on the "tool_name" field.
func ToolNameLT ¶
ToolNameLT applies the LT predicate on the "tool_name" field.
func ToolNameLTE ¶
ToolNameLTE applies the LTE predicate on the "tool_name" field.
func ToolNameNEQ ¶
ToolNameNEQ applies the NEQ predicate on the "tool_name" field.
func ToolNameNotIn ¶
ToolNameNotIn applies the NotIn predicate on the "tool_name" field.
func ToolNameNotNil ¶
ToolNameNotNil applies the NotNil predicate on the "tool_name" 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 UserContains ¶
UserContains applies the Contains predicate on the "user" field.
func UserContainsFold ¶
UserContainsFold applies the ContainsFold predicate on the "user" field.
func UserEqualFold ¶
UserEqualFold applies the EqualFold predicate on the "user" field.
func UserHasPrefix ¶
UserHasPrefix applies the HasPrefix predicate on the "user" field.
func UserHasSuffix ¶
UserHasSuffix applies the HasSuffix predicate on the "user" field.
func UserNotNil ¶
UserNotNil applies the NotNil predicate on the "user" 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 Message 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 ByMime ¶
func ByMime(opts ...sql.OrderTermOption) OrderOption
ByMime orders the results by the mime field.
func ByRole ¶
func ByRole(opts ...sql.OrderTermOption) OrderOption
ByRole orders the results by the role field.
func ByThread ¶
func ByThread(opts ...sql.OrderTermOption) OrderOption
ByThread orders the results by the thread field.
func ByToolID ¶
func ByToolID(opts ...sql.OrderTermOption) OrderOption
ByToolID orders the results by the tool_id field.
func ByToolName ¶
func ByToolName(opts ...sql.OrderTermOption) OrderOption
ByToolName orders the results by the tool_name field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByUser ¶
func ByUser(opts ...sql.OrderTermOption) OrderOption
ByUser orders the results by the user field.