Documentation ¶
Index ¶
- Variables
- func GuildLoggingConfigExists(ctx context.Context, exec boil.ContextExecutor, guildID int64) (bool, error)
- func GuildLoggingConfigExistsG(ctx context.Context, guildID int64) (bool, error)
- func GuildLoggingConfigs(mods ...qm.QueryMod) guildLoggingConfigQuery
- func MessageExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)
- func MessageExistsG(ctx context.Context, iD int) (bool, error)
- func MessageLogExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)
- func MessageLogExistsG(ctx context.Context, iD int) (bool, error)
- func MessageLogs(mods ...qm.QueryMod) messageLogQuery
- func Messages(mods ...qm.QueryMod) messageQuery
- func NewQuery(mods ...qm.QueryMod) *queries.Query
- func NicknameListingExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)
- func NicknameListingExistsG(ctx context.Context, iD int) (bool, error)
- func NicknameListings(mods ...qm.QueryMod) nicknameListingQuery
- func UsernameListingExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)
- func UsernameListingExistsG(ctx context.Context, iD int) (bool, error)
- func UsernameListings(mods ...qm.QueryMod) usernameListingQuery
- type GuildLoggingConfig
- func (o *GuildLoggingConfig) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *GuildLoggingConfig) DeleteG(ctx context.Context) (int64, error)
- func (o *GuildLoggingConfig) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *GuildLoggingConfig) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *GuildLoggingConfig) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *GuildLoggingConfig) ReloadG(ctx context.Context) error
- func (o *GuildLoggingConfig) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *GuildLoggingConfig) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *GuildLoggingConfig) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *GuildLoggingConfig) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- type GuildLoggingConfigSlice
- func (o GuildLoggingConfigSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o GuildLoggingConfigSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *GuildLoggingConfigSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *GuildLoggingConfigSlice) ReloadAllG(ctx context.Context) error
- func (o GuildLoggingConfigSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o GuildLoggingConfigSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type M
- type Message
- func (o *Message) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Message) DeleteG(ctx context.Context) (int64, error)
- func (o *Message) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Message) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *Message) MessageLog(mods ...qm.QueryMod) messageLogQuery
- func (o *Message) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Message) ReloadG(ctx context.Context) error
- func (o *Message) RemoveMessageLog(ctx context.Context, exec boil.ContextExecutor, related *MessageLog) error
- func (o *Message) RemoveMessageLogG(ctx context.Context, related *MessageLog) error
- func (o *Message) SetMessageLog(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Message) SetMessageLogG(ctx context.Context, insert bool, related *MessageLog) error
- func (o *Message) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Message) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *Message) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *Message) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- type MessageLog
- func (o *MessageLog) AddMessages(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *MessageLog) AddMessagesG(ctx context.Context, insert bool, related ...*Message) error
- func (o *MessageLog) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *MessageLog) DeleteG(ctx context.Context) (int64, error)
- func (o *MessageLog) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *MessageLog) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *MessageLog) Messages(mods ...qm.QueryMod) messageQuery
- func (o *MessageLog) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *MessageLog) ReloadG(ctx context.Context) error
- func (o *MessageLog) RemoveMessages(ctx context.Context, exec boil.ContextExecutor, related ...*Message) error
- func (o *MessageLog) RemoveMessagesG(ctx context.Context, related ...*Message) error
- func (o *MessageLog) SetMessages(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *MessageLog) SetMessagesG(ctx context.Context, insert bool, related ...*Message) error
- func (o *MessageLog) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *MessageLog) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *MessageLog) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *MessageLog) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- type MessageLogSlice
- func (o MessageLogSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o MessageLogSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *MessageLogSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *MessageLogSlice) ReloadAllG(ctx context.Context) error
- func (o MessageLogSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o MessageLogSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type MessageSlice
- func (o MessageSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o MessageSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *MessageSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *MessageSlice) ReloadAllG(ctx context.Context) error
- func (o MessageSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o MessageSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type NicknameListing
- func (o *NicknameListing) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *NicknameListing) DeleteG(ctx context.Context) (int64, error)
- func (o *NicknameListing) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *NicknameListing) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *NicknameListing) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *NicknameListing) ReloadG(ctx context.Context) error
- func (o *NicknameListing) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *NicknameListing) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *NicknameListing) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *NicknameListing) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- type NicknameListingSlice
- func (o NicknameListingSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o NicknameListingSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *NicknameListingSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *NicknameListingSlice) ReloadAllG(ctx context.Context) error
- func (o NicknameListingSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o NicknameListingSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type UsernameListing
- func (o *UsernameListing) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *UsernameListing) DeleteG(ctx context.Context) (int64, error)
- func (o *UsernameListing) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *UsernameListing) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *UsernameListing) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *UsernameListing) ReloadG(ctx context.Context) error
- func (o *UsernameListing) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *UsernameListing) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *UsernameListing) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *UsernameListing) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- type UsernameListingSlice
- func (o UsernameListingSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o UsernameListingSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *UsernameListingSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *UsernameListingSlice) ReloadAllG(ctx context.Context) error
- func (o UsernameListingSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o UsernameListingSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
Constants ¶
This section is empty.
Variables ¶
var ErrSyncFail = errors.New("models: failed to synchronize data after insert")
ErrSyncFail occurs during insert when the record could not be retrieved in order to populate default value information. This usually happens when LastInsertId fails or there was a primary key configuration that was not resolvable.
var GuildLoggingConfigColumns = struct { GuildID string CreatedAt string UpdatedAt string UsernameLoggingEnabled string NicknameLoggingEnabled string BlacklistedChannels string ManageMessagesCanViewDeleted string EveryoneCanViewDeleted string MessageLogsAllowedRoles string }{ GuildID: "guild_id", CreatedAt: "created_at", UpdatedAt: "updated_at", UsernameLoggingEnabled: "username_logging_enabled", NicknameLoggingEnabled: "nickname_logging_enabled", BlacklistedChannels: "blacklisted_channels", ManageMessagesCanViewDeleted: "manage_messages_can_view_deleted", EveryoneCanViewDeleted: "everyone_can_view_deleted", MessageLogsAllowedRoles: "message_logs_allowed_roles", }
var GuildLoggingConfigRels = struct {
}{}
GuildLoggingConfigRels is where relationship names are stored.
var GuildLoggingConfigWhere = struct { GuildID whereHelperint64 CreatedAt whereHelpernull_Time UpdatedAt whereHelpernull_Time UsernameLoggingEnabled whereHelpernull_Bool NicknameLoggingEnabled whereHelpernull_Bool BlacklistedChannels whereHelpernull_String ManageMessagesCanViewDeleted whereHelpernull_Bool EveryoneCanViewDeleted whereHelpernull_Bool MessageLogsAllowedRoles whereHelpertypes_Int64Array }{ GuildID: whereHelperint64{/* contains filtered or unexported fields */}, CreatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, UsernameLoggingEnabled: whereHelpernull_Bool{/* contains filtered or unexported fields */}, NicknameLoggingEnabled: whereHelpernull_Bool{/* contains filtered or unexported fields */}, BlacklistedChannels: whereHelpernull_String{/* contains filtered or unexported fields */}, ManageMessagesCanViewDeleted: whereHelpernull_Bool{/* contains filtered or unexported fields */}, EveryoneCanViewDeleted: whereHelpernull_Bool{/* contains filtered or unexported fields */}, MessageLogsAllowedRoles: whereHelpertypes_Int64Array{/* contains filtered or unexported fields */}, }
var MessageColumns = struct { ID string CreatedAt string UpdatedAt string MessageLogID string MessageID string AuthorUsername string AuthorDiscrim string AuthorID string Deleted string Content string Timestamp string }{ ID: "id", CreatedAt: "created_at", UpdatedAt: "updated_at", MessageLogID: "message_log_id", MessageID: "message_id", AuthorUsername: "author_username", AuthorDiscrim: "author_discrim", AuthorID: "author_id", Deleted: "deleted", Content: "content", Timestamp: "timestamp", }
var MessageLogColumns = struct { ID string CreatedAt string UpdatedAt string DeletedAt string ChannelName string ChannelID string GuildID string Author string AuthorID string }{ ID: "id", CreatedAt: "created_at", UpdatedAt: "updated_at", DeletedAt: "deleted_at", ChannelName: "channel_name", ChannelID: "channel_id", GuildID: "guild_id", Author: "author", AuthorID: "author_id", }
var MessageLogRels = struct { Messages string }{ Messages: "Messages", }
MessageLogRels is where relationship names are stored.
var MessageLogWhere = struct { ID whereHelperint CreatedAt whereHelpernull_Time UpdatedAt whereHelpernull_Time DeletedAt whereHelpernull_Time ChannelName whereHelpernull_String ChannelID whereHelpernull_String GuildID whereHelpernull_String Author whereHelpernull_String AuthorID whereHelpernull_String }{ ID: whereHelperint{/* contains filtered or unexported fields */}, CreatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, DeletedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, ChannelName: whereHelpernull_String{/* contains filtered or unexported fields */}, ChannelID: whereHelpernull_String{/* contains filtered or unexported fields */}, GuildID: whereHelpernull_String{/* contains filtered or unexported fields */}, Author: whereHelpernull_String{/* contains filtered or unexported fields */}, AuthorID: whereHelpernull_String{/* contains filtered or unexported fields */}, }
var MessageRels = struct { MessageLog string }{ MessageLog: "MessageLog", }
MessageRels is where relationship names are stored.
var MessageWhere = struct { ID whereHelperint CreatedAt whereHelpernull_Time UpdatedAt whereHelpernull_Time MessageLogID whereHelpernull_Int MessageID whereHelpernull_String AuthorUsername whereHelpernull_String AuthorDiscrim whereHelpernull_String AuthorID whereHelpernull_String Deleted whereHelpernull_Bool Content whereHelpernull_String Timestamp whereHelpernull_String }{ ID: whereHelperint{/* contains filtered or unexported fields */}, CreatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, MessageLogID: whereHelpernull_Int{/* contains filtered or unexported fields */}, MessageID: whereHelpernull_String{/* contains filtered or unexported fields */}, AuthorUsername: whereHelpernull_String{/* contains filtered or unexported fields */}, AuthorDiscrim: whereHelpernull_String{/* contains filtered or unexported fields */}, AuthorID: whereHelpernull_String{/* contains filtered or unexported fields */}, Deleted: whereHelpernull_Bool{/* contains filtered or unexported fields */}, Content: whereHelpernull_String{/* contains filtered or unexported fields */}, Timestamp: whereHelpernull_String{/* contains filtered or unexported fields */}, }
var NicknameListingColumns = struct { ID string CreatedAt string UpdatedAt string DeletedAt string UserID string GuildID string Nickname string }{ ID: "id", CreatedAt: "created_at", UpdatedAt: "updated_at", DeletedAt: "deleted_at", UserID: "user_id", GuildID: "guild_id", Nickname: "nickname", }
var NicknameListingRels = struct {
}{}
NicknameListingRels is where relationship names are stored.
var NicknameListingWhere = struct { ID whereHelperint CreatedAt whereHelpernull_Time UpdatedAt whereHelpernull_Time DeletedAt whereHelpernull_Time UserID whereHelpernull_Int64 GuildID whereHelpernull_String Nickname whereHelpernull_String }{ ID: whereHelperint{/* contains filtered or unexported fields */}, CreatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, DeletedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, UserID: whereHelpernull_Int64{/* contains filtered or unexported fields */}, GuildID: whereHelpernull_String{/* contains filtered or unexported fields */}, Nickname: whereHelpernull_String{/* contains filtered or unexported fields */}, }
var TableNames = struct { GuildLoggingConfigs string MessageLogs string Messages string NicknameListings string UsernameListings string }{ GuildLoggingConfigs: "guild_logging_configs", MessageLogs: "message_logs", Messages: "messages", NicknameListings: "nickname_listings", UsernameListings: "username_listings", }
var UsernameListingColumns = struct { ID string CreatedAt string UpdatedAt string DeletedAt string UserID string Username string }{ ID: "id", CreatedAt: "created_at", UpdatedAt: "updated_at", DeletedAt: "deleted_at", UserID: "user_id", Username: "username", }
var UsernameListingRels = struct {
}{}
UsernameListingRels is where relationship names are stored.
var UsernameListingWhere = struct { ID whereHelperint CreatedAt whereHelpernull_Time UpdatedAt whereHelpernull_Time DeletedAt whereHelpernull_Time UserID whereHelpernull_Int64 Username whereHelpernull_String }{ ID: whereHelperint{/* contains filtered or unexported fields */}, CreatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, DeletedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, UserID: whereHelpernull_Int64{/* contains filtered or unexported fields */}, Username: whereHelpernull_String{/* contains filtered or unexported fields */}, }
Functions ¶
func GuildLoggingConfigExists ¶
func GuildLoggingConfigExists(ctx context.Context, exec boil.ContextExecutor, guildID int64) (bool, error)
GuildLoggingConfigExists checks if the GuildLoggingConfig row exists.
func GuildLoggingConfigExistsG ¶
GuildLoggingConfigExistsG checks if the GuildLoggingConfig row exists.
func GuildLoggingConfigs ¶
GuildLoggingConfigs retrieves all the records using an executor.
func MessageExists ¶
MessageExists checks if the Message row exists.
func MessageExistsG ¶
MessageExistsG checks if the Message row exists.
func MessageLogExists ¶
MessageLogExists checks if the MessageLog row exists.
func MessageLogExistsG ¶
MessageLogExistsG checks if the MessageLog row exists.
func MessageLogs ¶
MessageLogs retrieves all the records using an executor.
func NicknameListingExists ¶
NicknameListingExists checks if the NicknameListing row exists.
func NicknameListingExistsG ¶
NicknameListingExistsG checks if the NicknameListing row exists.
func NicknameListings ¶
NicknameListings retrieves all the records using an executor.
func UsernameListingExists ¶
UsernameListingExists checks if the UsernameListing row exists.
func UsernameListingExistsG ¶
UsernameListingExistsG checks if the UsernameListing row exists.
func UsernameListings ¶
UsernameListings retrieves all the records using an executor.
Types ¶
type GuildLoggingConfig ¶
type GuildLoggingConfig struct { GuildID int64 `boil:"guild_id" json:"guild_id" toml:"guild_id" yaml:"guild_id"` CreatedAt null.Time `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"` UpdatedAt null.Time `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"` UsernameLoggingEnabled null.Bool `` /* 147-byte string literal not displayed */ NicknameLoggingEnabled null.Bool `` /* 147-byte string literal not displayed */ BlacklistedChannels null.String `` /* 131-byte string literal not displayed */ ManageMessagesCanViewDeleted null.Bool `` /* 179-byte string literal not displayed */ EveryoneCanViewDeleted null.Bool `` /* 151-byte string literal not displayed */ MessageLogsAllowedRoles types.Int64Array `` /* 155-byte string literal not displayed */ R *guildLoggingConfigR `boil:"-" json:"-" toml:"-" yaml:"-"` L guildLoggingConfigL `boil:"-" json:"-" toml:"-" yaml:"-"` }
GuildLoggingConfig is an object representing the database table.
func FindGuildLoggingConfig ¶
func FindGuildLoggingConfig(ctx context.Context, exec boil.ContextExecutor, guildID int64, selectCols ...string) (*GuildLoggingConfig, error)
FindGuildLoggingConfig retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindGuildLoggingConfigG ¶
func FindGuildLoggingConfigG(ctx context.Context, guildID int64, selectCols ...string) (*GuildLoggingConfig, error)
FindGuildLoggingConfigG retrieves a single record by ID.
func (*GuildLoggingConfig) Delete ¶
func (o *GuildLoggingConfig) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single GuildLoggingConfig record with an executor. Delete will match against the primary key column to find the record to delete.
func (*GuildLoggingConfig) DeleteG ¶
func (o *GuildLoggingConfig) DeleteG(ctx context.Context) (int64, error)
DeleteG deletes a single GuildLoggingConfig record. DeleteG will match against the primary key column to find the record to delete.
func (*GuildLoggingConfig) Insert ¶
func (o *GuildLoggingConfig) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*GuildLoggingConfig) InsertG ¶
InsertG a single record. See Insert for whitelist behavior description.
func (*GuildLoggingConfig) Reload ¶
func (o *GuildLoggingConfig) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*GuildLoggingConfig) ReloadG ¶
func (o *GuildLoggingConfig) ReloadG(ctx context.Context) error
ReloadG refetches the object from the database using the primary keys.
func (*GuildLoggingConfig) Update ¶
func (o *GuildLoggingConfig) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the GuildLoggingConfig. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*GuildLoggingConfig) UpdateG ¶
UpdateG a single GuildLoggingConfig record using the global executor. See Update for more documentation.
func (*GuildLoggingConfig) Upsert ¶
func (o *GuildLoggingConfig) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type GuildLoggingConfigSlice ¶
type GuildLoggingConfigSlice []*GuildLoggingConfig
GuildLoggingConfigSlice is an alias for a slice of pointers to GuildLoggingConfig. This should generally be used opposed to []GuildLoggingConfig.
func (GuildLoggingConfigSlice) DeleteAll ¶
func (o GuildLoggingConfigSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (GuildLoggingConfigSlice) DeleteAllG ¶
func (o GuildLoggingConfigSlice) DeleteAllG(ctx context.Context) (int64, error)
DeleteAllG deletes all rows in the slice.
func (*GuildLoggingConfigSlice) ReloadAll ¶
func (o *GuildLoggingConfigSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (*GuildLoggingConfigSlice) ReloadAllG ¶
func (o *GuildLoggingConfigSlice) ReloadAllG(ctx context.Context) error
ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (GuildLoggingConfigSlice) UpdateAll ¶
func (o GuildLoggingConfigSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
func (GuildLoggingConfigSlice) UpdateAllG ¶
UpdateAllG updates all rows with the specified column values.
type M ¶
type M map[string]interface{}
M type is for providing columns and column values to UpdateAll.
type Message ¶
type Message struct { ID int `boil:"id" json:"id" toml:"id" yaml:"id"` CreatedAt null.Time `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"` UpdatedAt null.Time `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"` MessageLogID null.Int `boil:"message_log_id" json:"message_log_id,omitempty" toml:"message_log_id" yaml:"message_log_id,omitempty"` MessageID null.String `boil:"message_id" json:"message_id,omitempty" toml:"message_id" yaml:"message_id,omitempty"` AuthorUsername null.String `boil:"author_username" json:"author_username,omitempty" toml:"author_username" yaml:"author_username,omitempty"` AuthorDiscrim null.String `boil:"author_discrim" json:"author_discrim,omitempty" toml:"author_discrim" yaml:"author_discrim,omitempty"` AuthorID null.String `boil:"author_id" json:"author_id,omitempty" toml:"author_id" yaml:"author_id,omitempty"` Deleted null.Bool `boil:"deleted" json:"deleted,omitempty" toml:"deleted" yaml:"deleted,omitempty"` Content null.String `boil:"content" json:"content,omitempty" toml:"content" yaml:"content,omitempty"` Timestamp null.String `boil:"timestamp" json:"timestamp,omitempty" toml:"timestamp" yaml:"timestamp,omitempty"` R *messageR `boil:"-" json:"-" toml:"-" yaml:"-"` L messageL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Message is an object representing the database table.
func FindMessage ¶
func FindMessage(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*Message, error)
FindMessage retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindMessageG ¶
FindMessageG retrieves a single record by ID.
func (*Message) Delete ¶
Delete deletes a single Message record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Message) DeleteG ¶
DeleteG deletes a single Message record. DeleteG will match against the primary key column to find the record to delete.
func (*Message) Insert ¶
func (o *Message) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*Message) MessageLog ¶
MessageLog pointed to by the foreign key.
func (*Message) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Message) RemoveMessageLog ¶
func (o *Message) RemoveMessageLog(ctx context.Context, exec boil.ContextExecutor, related *MessageLog) error
RemoveMessageLog relationship. Sets o.R.MessageLog to nil. Removes o from all passed in related items' relationships struct (Optional).
func (*Message) RemoveMessageLogG ¶
func (o *Message) RemoveMessageLogG(ctx context.Context, related *MessageLog) error
RemoveMessageLogG relationship. Sets o.R.MessageLog to nil. Removes o from all passed in related items' relationships struct (Optional). Uses the global database handle.
func (*Message) SetMessageLog ¶
func (o *Message) SetMessageLog(ctx context.Context, exec boil.ContextExecutor, insert bool, related *MessageLog) error
SetMessageLog of the message to the related item. Sets o.R.MessageLog to related. Adds o to related.R.Messages.
func (*Message) SetMessageLogG ¶
SetMessageLogG of the message to the related item. Sets o.R.MessageLog to related. Adds o to related.R.Messages. Uses the global database handle.
func (*Message) Update ¶
func (o *Message) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Message. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*Message) UpdateG ¶
UpdateG a single Message record using the global executor. See Update for more documentation.
func (*Message) Upsert ¶
func (o *Message) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type MessageLog ¶
type MessageLog struct { ID int `boil:"id" json:"id" toml:"id" yaml:"id"` CreatedAt null.Time `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"` UpdatedAt null.Time `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"` DeletedAt null.Time `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"` ChannelName null.String `boil:"channel_name" json:"channel_name,omitempty" toml:"channel_name" yaml:"channel_name,omitempty"` ChannelID null.String `boil:"channel_id" json:"channel_id,omitempty" toml:"channel_id" yaml:"channel_id,omitempty"` GuildID null.String `boil:"guild_id" json:"guild_id,omitempty" toml:"guild_id" yaml:"guild_id,omitempty"` Author null.String `boil:"author" json:"author,omitempty" toml:"author" yaml:"author,omitempty"` AuthorID null.String `boil:"author_id" json:"author_id,omitempty" toml:"author_id" yaml:"author_id,omitempty"` R *messageLogR `boil:"-" json:"-" toml:"-" yaml:"-"` L messageLogL `boil:"-" json:"-" toml:"-" yaml:"-"` }
MessageLog is an object representing the database table.
func FindMessageLog ¶
func FindMessageLog(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*MessageLog, error)
FindMessageLog retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindMessageLogG ¶
FindMessageLogG retrieves a single record by ID.
func (*MessageLog) AddMessages ¶
func (o *MessageLog) AddMessages(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Message) error
AddMessages adds the given related objects to the existing relationships of the message_log, optionally inserting them as new records. Appends related to o.R.Messages. Sets related.R.MessageLog appropriately.
func (*MessageLog) AddMessagesG ¶
AddMessagesG adds the given related objects to the existing relationships of the message_log, optionally inserting them as new records. Appends related to o.R.Messages. Sets related.R.MessageLog appropriately. Uses the global database handle.
func (*MessageLog) Delete ¶
func (o *MessageLog) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single MessageLog record with an executor. Delete will match against the primary key column to find the record to delete.
func (*MessageLog) DeleteG ¶
func (o *MessageLog) DeleteG(ctx context.Context) (int64, error)
DeleteG deletes a single MessageLog record. DeleteG will match against the primary key column to find the record to delete.
func (*MessageLog) Insert ¶
func (o *MessageLog) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*MessageLog) InsertG ¶
InsertG a single record. See Insert for whitelist behavior description.
func (*MessageLog) Messages ¶
func (o *MessageLog) Messages(mods ...qm.QueryMod) messageQuery
Messages retrieves all the message's Messages with an executor.
func (*MessageLog) Reload ¶
func (o *MessageLog) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*MessageLog) ReloadG ¶
func (o *MessageLog) ReloadG(ctx context.Context) error
ReloadG refetches the object from the database using the primary keys.
func (*MessageLog) RemoveMessages ¶
func (o *MessageLog) RemoveMessages(ctx context.Context, exec boil.ContextExecutor, related ...*Message) error
RemoveMessages relationships from objects passed in. Removes related items from R.Messages (uses pointer comparison, removal does not keep order) Sets related.R.MessageLog.
func (*MessageLog) RemoveMessagesG ¶
func (o *MessageLog) RemoveMessagesG(ctx context.Context, related ...*Message) error
RemoveMessagesG relationships from objects passed in. Removes related items from R.Messages (uses pointer comparison, removal does not keep order) Sets related.R.MessageLog. Uses the global database handle.
func (*MessageLog) SetMessages ¶
func (o *MessageLog) SetMessages(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Message) error
SetMessages removes all previously related items of the message_log replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.MessageLog's Messages accordingly. Replaces o.R.Messages with related. Sets related.R.MessageLog's Messages accordingly.
func (*MessageLog) SetMessagesG ¶
SetMessagesG removes all previously related items of the message_log replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.MessageLog's Messages accordingly. Replaces o.R.Messages with related. Sets related.R.MessageLog's Messages accordingly. Uses the global database handle.
func (*MessageLog) Update ¶
func (o *MessageLog) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the MessageLog. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*MessageLog) UpdateG ¶
UpdateG a single MessageLog record using the global executor. See Update for more documentation.
func (*MessageLog) Upsert ¶
func (o *MessageLog) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type MessageLogSlice ¶
type MessageLogSlice []*MessageLog
MessageLogSlice is an alias for a slice of pointers to MessageLog. This should generally be used opposed to []MessageLog.
func (MessageLogSlice) DeleteAll ¶
func (o MessageLogSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (MessageLogSlice) DeleteAllG ¶
func (o MessageLogSlice) DeleteAllG(ctx context.Context) (int64, error)
DeleteAllG deletes all rows in the slice.
func (*MessageLogSlice) ReloadAll ¶
func (o *MessageLogSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (*MessageLogSlice) ReloadAllG ¶
func (o *MessageLogSlice) ReloadAllG(ctx context.Context) error
ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (MessageLogSlice) UpdateAll ¶
func (o MessageLogSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
func (MessageLogSlice) UpdateAllG ¶
UpdateAllG updates all rows with the specified column values.
type MessageSlice ¶
type MessageSlice []*Message
MessageSlice is an alias for a slice of pointers to Message. This should generally be used opposed to []Message.
func (MessageSlice) DeleteAll ¶
func (o MessageSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (MessageSlice) DeleteAllG ¶
func (o MessageSlice) DeleteAllG(ctx context.Context) (int64, error)
DeleteAllG deletes all rows in the slice.
func (*MessageSlice) ReloadAll ¶
func (o *MessageSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (*MessageSlice) ReloadAllG ¶
func (o *MessageSlice) ReloadAllG(ctx context.Context) error
ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (MessageSlice) UpdateAll ¶
func (o MessageSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
func (MessageSlice) UpdateAllG ¶
UpdateAllG updates all rows with the specified column values.
type NicknameListing ¶
type NicknameListing struct { ID int `boil:"id" json:"id" toml:"id" yaml:"id"` CreatedAt null.Time `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"` UpdatedAt null.Time `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"` DeletedAt null.Time `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"` UserID null.Int64 `boil:"user_id" json:"user_id,omitempty" toml:"user_id" yaml:"user_id,omitempty"` GuildID null.String `boil:"guild_id" json:"guild_id,omitempty" toml:"guild_id" yaml:"guild_id,omitempty"` Nickname null.String `boil:"nickname" json:"nickname,omitempty" toml:"nickname" yaml:"nickname,omitempty"` R *nicknameListingR `boil:"-" json:"-" toml:"-" yaml:"-"` L nicknameListingL `boil:"-" json:"-" toml:"-" yaml:"-"` }
NicknameListing is an object representing the database table.
func FindNicknameListing ¶
func FindNicknameListing(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*NicknameListing, error)
FindNicknameListing retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindNicknameListingG ¶
func FindNicknameListingG(ctx context.Context, iD int, selectCols ...string) (*NicknameListing, error)
FindNicknameListingG retrieves a single record by ID.
func (*NicknameListing) Delete ¶
func (o *NicknameListing) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single NicknameListing record with an executor. Delete will match against the primary key column to find the record to delete.
func (*NicknameListing) DeleteG ¶
func (o *NicknameListing) DeleteG(ctx context.Context) (int64, error)
DeleteG deletes a single NicknameListing record. DeleteG will match against the primary key column to find the record to delete.
func (*NicknameListing) Insert ¶
func (o *NicknameListing) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*NicknameListing) InsertG ¶
InsertG a single record. See Insert for whitelist behavior description.
func (*NicknameListing) Reload ¶
func (o *NicknameListing) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*NicknameListing) ReloadG ¶
func (o *NicknameListing) ReloadG(ctx context.Context) error
ReloadG refetches the object from the database using the primary keys.
func (*NicknameListing) Update ¶
func (o *NicknameListing) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the NicknameListing. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*NicknameListing) UpdateG ¶
UpdateG a single NicknameListing record using the global executor. See Update for more documentation.
func (*NicknameListing) Upsert ¶
func (o *NicknameListing) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type NicknameListingSlice ¶
type NicknameListingSlice []*NicknameListing
NicknameListingSlice is an alias for a slice of pointers to NicknameListing. This should generally be used opposed to []NicknameListing.
func (NicknameListingSlice) DeleteAll ¶
func (o NicknameListingSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (NicknameListingSlice) DeleteAllG ¶
func (o NicknameListingSlice) DeleteAllG(ctx context.Context) (int64, error)
DeleteAllG deletes all rows in the slice.
func (*NicknameListingSlice) ReloadAll ¶
func (o *NicknameListingSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (*NicknameListingSlice) ReloadAllG ¶
func (o *NicknameListingSlice) ReloadAllG(ctx context.Context) error
ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (NicknameListingSlice) UpdateAll ¶
func (o NicknameListingSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
func (NicknameListingSlice) UpdateAllG ¶
UpdateAllG updates all rows with the specified column values.
type UsernameListing ¶
type UsernameListing struct { ID int `boil:"id" json:"id" toml:"id" yaml:"id"` CreatedAt null.Time `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"` UpdatedAt null.Time `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"` DeletedAt null.Time `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"` UserID null.Int64 `boil:"user_id" json:"user_id,omitempty" toml:"user_id" yaml:"user_id,omitempty"` Username null.String `boil:"username" json:"username,omitempty" toml:"username" yaml:"username,omitempty"` R *usernameListingR `boil:"-" json:"-" toml:"-" yaml:"-"` L usernameListingL `boil:"-" json:"-" toml:"-" yaml:"-"` }
UsernameListing is an object representing the database table.
func FindUsernameListing ¶
func FindUsernameListing(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*UsernameListing, error)
FindUsernameListing retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindUsernameListingG ¶
func FindUsernameListingG(ctx context.Context, iD int, selectCols ...string) (*UsernameListing, error)
FindUsernameListingG retrieves a single record by ID.
func (*UsernameListing) Delete ¶
func (o *UsernameListing) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single UsernameListing record with an executor. Delete will match against the primary key column to find the record to delete.
func (*UsernameListing) DeleteG ¶
func (o *UsernameListing) DeleteG(ctx context.Context) (int64, error)
DeleteG deletes a single UsernameListing record. DeleteG will match against the primary key column to find the record to delete.
func (*UsernameListing) Insert ¶
func (o *UsernameListing) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*UsernameListing) InsertG ¶
InsertG a single record. See Insert for whitelist behavior description.
func (*UsernameListing) Reload ¶
func (o *UsernameListing) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*UsernameListing) ReloadG ¶
func (o *UsernameListing) ReloadG(ctx context.Context) error
ReloadG refetches the object from the database using the primary keys.
func (*UsernameListing) Update ¶
func (o *UsernameListing) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the UsernameListing. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*UsernameListing) UpdateG ¶
UpdateG a single UsernameListing record using the global executor. See Update for more documentation.
func (*UsernameListing) Upsert ¶
func (o *UsernameListing) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type UsernameListingSlice ¶
type UsernameListingSlice []*UsernameListing
UsernameListingSlice is an alias for a slice of pointers to UsernameListing. This should generally be used opposed to []UsernameListing.
func (UsernameListingSlice) DeleteAll ¶
func (o UsernameListingSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (UsernameListingSlice) DeleteAllG ¶
func (o UsernameListingSlice) DeleteAllG(ctx context.Context) (int64, error)
DeleteAllG deletes all rows in the slice.
func (*UsernameListingSlice) ReloadAll ¶
func (o *UsernameListingSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (*UsernameListingSlice) ReloadAllG ¶
func (o *UsernameListingSlice) ReloadAllG(ctx context.Context) error
ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (UsernameListingSlice) UpdateAll ¶
func (o UsernameListingSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
func (UsernameListingSlice) UpdateAllG ¶
UpdateAllG updates all rows with the specified column values.