Documentation
¶
Index ¶
- Variables
- func NewQuery(mods ...qm.QueryMod) *queries.Query
- func TwitchAnnouncementExists(ctx context.Context, exec boil.ContextExecutor, guildID int64) (bool, error)
- func TwitchAnnouncementExistsG(ctx context.Context, guildID int64) (bool, error)
- func TwitchAnnouncements(mods ...qm.QueryMod) twitchAnnouncementQuery
- func TwitchChannelSubscriptionExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)
- func TwitchChannelSubscriptionExistsG(ctx context.Context, iD int) (bool, error)
- func TwitchChannelSubscriptions(mods ...qm.QueryMod) twitchChannelSubscriptionQuery
- type M
- type TwitchAnnouncement
- func (o *TwitchAnnouncement) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *TwitchAnnouncement) DeleteG(ctx context.Context) (int64, error)
- func (o *TwitchAnnouncement) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *TwitchAnnouncement) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *TwitchAnnouncement) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *TwitchAnnouncement) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *TwitchAnnouncement) ReloadG(ctx context.Context) error
- func (o *TwitchAnnouncement) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *TwitchAnnouncement) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *TwitchAnnouncement) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *TwitchAnnouncement) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- type TwitchAnnouncementSlice
- func (o TwitchAnnouncementSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o TwitchAnnouncementSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *TwitchAnnouncementSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *TwitchAnnouncementSlice) ReloadAllG(ctx context.Context) error
- func (o TwitchAnnouncementSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o TwitchAnnouncementSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type TwitchChannelSubscription
- func (o *TwitchChannelSubscription) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *TwitchChannelSubscription) DeleteG(ctx context.Context) (int64, error)
- func (o *TwitchChannelSubscription) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *TwitchChannelSubscription) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *TwitchChannelSubscription) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *TwitchChannelSubscription) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *TwitchChannelSubscription) ReloadG(ctx context.Context) error
- func (o *TwitchChannelSubscription) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *TwitchChannelSubscription) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *TwitchChannelSubscription) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *TwitchChannelSubscription) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- type TwitchChannelSubscriptionSlice
- func (o TwitchChannelSubscriptionSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o TwitchChannelSubscriptionSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *TwitchChannelSubscriptionSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *TwitchChannelSubscriptionSlice) ReloadAllG(ctx context.Context) error
- func (o TwitchChannelSubscriptionSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o TwitchChannelSubscriptionSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type UpsertOptionFunc
- type UpsertOptions
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 TableNames = struct { TwitchAnnouncements string TwitchChannelSubscriptions string }{ TwitchAnnouncements: "twitch_announcements", TwitchChannelSubscriptions: "twitch_channel_subscriptions", }
var TwitchAnnouncementColumns = struct { GuildID string Message string Enabled string }{ GuildID: "guild_id", Message: "message", Enabled: "enabled", }
var TwitchAnnouncementRels = struct {
}{}
TwitchAnnouncementRels is where relationship names are stored.
var TwitchAnnouncementTableColumns = struct { GuildID string Message string Enabled string }{ GuildID: "twitch_announcements.guild_id", Message: "twitch_announcements.message", Enabled: "twitch_announcements.enabled", }
var TwitchAnnouncementWhere = struct { GuildID whereHelperint64 Message whereHelperstring Enabled whereHelperbool }{ GuildID: whereHelperint64{/* contains filtered or unexported fields */}, Message: whereHelperstring{/* contains filtered or unexported fields */}, Enabled: whereHelperbool{/* contains filtered or unexported fields */}, }
var TwitchChannelSubscriptionColumns = struct { ID string CreatedAt string UpdatedAt string GuildID string ChannelID string TwitchUserID string TwitchUsername string MentionEveryone string MentionRoles string PublishVod string Enabled string }{ ID: "id", CreatedAt: "created_at", UpdatedAt: "updated_at", GuildID: "guild_id", ChannelID: "channel_id", TwitchUserID: "twitch_user_id", TwitchUsername: "twitch_username", MentionEveryone: "mention_everyone", MentionRoles: "mention_roles", PublishVod: "publish_vod", Enabled: "enabled", }
var TwitchChannelSubscriptionRels = struct {
}{}
TwitchChannelSubscriptionRels is where relationship names are stored.
var TwitchChannelSubscriptionTableColumns = struct { ID string CreatedAt string UpdatedAt string GuildID string ChannelID string TwitchUserID string TwitchUsername string MentionEveryone string MentionRoles string PublishVod string Enabled string }{ ID: "twitch_channel_subscriptions.id", CreatedAt: "twitch_channel_subscriptions.created_at", UpdatedAt: "twitch_channel_subscriptions.updated_at", GuildID: "twitch_channel_subscriptions.guild_id", ChannelID: "twitch_channel_subscriptions.channel_id", TwitchUserID: "twitch_channel_subscriptions.twitch_user_id", TwitchUsername: "twitch_channel_subscriptions.twitch_username", MentionEveryone: "twitch_channel_subscriptions.mention_everyone", MentionRoles: "twitch_channel_subscriptions.mention_roles", PublishVod: "twitch_channel_subscriptions.publish_vod", Enabled: "twitch_channel_subscriptions.enabled", }
var TwitchChannelSubscriptionWhere = struct { ID whereHelperint CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time GuildID whereHelperstring ChannelID whereHelperstring TwitchUserID whereHelperstring TwitchUsername whereHelperstring MentionEveryone whereHelperbool MentionRoles whereHelpertypes_Int64Array PublishVod whereHelperbool Enabled whereHelperbool }{ ID: whereHelperint{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, GuildID: whereHelperstring{/* contains filtered or unexported fields */}, ChannelID: whereHelperstring{/* contains filtered or unexported fields */}, TwitchUserID: whereHelperstring{/* contains filtered or unexported fields */}, TwitchUsername: whereHelperstring{/* contains filtered or unexported fields */}, MentionEveryone: whereHelperbool{/* contains filtered or unexported fields */}, MentionRoles: whereHelpertypes_Int64Array{/* contains filtered or unexported fields */}, PublishVod: whereHelperbool{/* contains filtered or unexported fields */}, Enabled: whereHelperbool{/* contains filtered or unexported fields */}, }
var ViewNames = struct {
}{}
Functions ¶
func TwitchAnnouncementExists ¶
func TwitchAnnouncementExists(ctx context.Context, exec boil.ContextExecutor, guildID int64) (bool, error)
TwitchAnnouncementExists checks if the TwitchAnnouncement row exists.
func TwitchAnnouncementExistsG ¶
TwitchAnnouncementExistsG checks if the TwitchAnnouncement row exists.
func TwitchAnnouncements ¶
TwitchAnnouncements retrieves all the records using an executor.
func TwitchChannelSubscriptionExists ¶
func TwitchChannelSubscriptionExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)
TwitchChannelSubscriptionExists checks if the TwitchChannelSubscription row exists.
func TwitchChannelSubscriptionExistsG ¶
TwitchChannelSubscriptionExistsG checks if the TwitchChannelSubscription row exists.
func TwitchChannelSubscriptions ¶
TwitchChannelSubscriptions retrieves all the records using an executor.
Types ¶
type M ¶
type M map[string]interface{}
M type is for providing columns and column values to UpdateAll.
type TwitchAnnouncement ¶
type TwitchAnnouncement struct {
GuildID int64 `boil:"guild_id" json:"guild_id" toml:"guild_id" yaml:"guild_id"`
Message string `boil:"message" json:"message" toml:"message" yaml:"message"`
Enabled bool `boil:"enabled" json:"enabled" toml:"enabled" yaml:"enabled"`
R *twitchAnnouncementR `boil:"-" json:"-" toml:"-" yaml:"-"`
L twitchAnnouncementL `boil:"-" json:"-" toml:"-" yaml:"-"`
}
TwitchAnnouncement is an object representing the database table.
func FindTwitchAnnouncement ¶
func FindTwitchAnnouncement(ctx context.Context, exec boil.ContextExecutor, guildID int64, selectCols ...string) (*TwitchAnnouncement, error)
FindTwitchAnnouncement retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindTwitchAnnouncementG ¶
func FindTwitchAnnouncementG(ctx context.Context, guildID int64, selectCols ...string) (*TwitchAnnouncement, error)
FindTwitchAnnouncementG retrieves a single record by ID.
func (*TwitchAnnouncement) Delete ¶
func (o *TwitchAnnouncement) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single TwitchAnnouncement record with an executor. Delete will match against the primary key column to find the record to delete.
func (*TwitchAnnouncement) DeleteG ¶
func (o *TwitchAnnouncement) DeleteG(ctx context.Context) (int64, error)
DeleteG deletes a single TwitchAnnouncement record. DeleteG will match against the primary key column to find the record to delete.
func (*TwitchAnnouncement) Exists ¶
func (o *TwitchAnnouncement) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the TwitchAnnouncement row exists.
func (*TwitchAnnouncement) Insert ¶
func (o *TwitchAnnouncement) 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 (*TwitchAnnouncement) InsertG ¶
InsertG a single record. See Insert for whitelist behavior description.
func (*TwitchAnnouncement) Reload ¶
func (o *TwitchAnnouncement) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*TwitchAnnouncement) ReloadG ¶
func (o *TwitchAnnouncement) ReloadG(ctx context.Context) error
ReloadG refetches the object from the database using the primary keys.
func (*TwitchAnnouncement) Update ¶
func (o *TwitchAnnouncement) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the TwitchAnnouncement. 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 (*TwitchAnnouncement) UpdateG ¶
UpdateG a single TwitchAnnouncement record using the global executor. See Update for more documentation.
func (*TwitchAnnouncement) Upsert ¶
func (o *TwitchAnnouncement) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) 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 TwitchAnnouncementSlice ¶
type TwitchAnnouncementSlice []*TwitchAnnouncement
TwitchAnnouncementSlice is an alias for a slice of pointers to TwitchAnnouncement. This should almost always be used instead of []TwitchAnnouncement.
func (TwitchAnnouncementSlice) DeleteAll ¶
func (o TwitchAnnouncementSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (TwitchAnnouncementSlice) DeleteAllG ¶
func (o TwitchAnnouncementSlice) DeleteAllG(ctx context.Context) (int64, error)
DeleteAllG deletes all rows in the slice.
func (*TwitchAnnouncementSlice) ReloadAll ¶
func (o *TwitchAnnouncementSlice) 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 (*TwitchAnnouncementSlice) ReloadAllG ¶
func (o *TwitchAnnouncementSlice) 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 (TwitchAnnouncementSlice) UpdateAll ¶
func (o TwitchAnnouncementSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
func (TwitchAnnouncementSlice) UpdateAllG ¶
UpdateAllG updates all rows with the specified column values.
type TwitchChannelSubscription ¶
type TwitchChannelSubscription struct {
ID int `boil:"id" json:"id" toml:"id" yaml:"id"`
CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
GuildID string `boil:"guild_id" json:"guild_id" toml:"guild_id" yaml:"guild_id"`
ChannelID string `boil:"channel_id" json:"channel_id" toml:"channel_id" yaml:"channel_id"`
TwitchUserID string `boil:"twitch_user_id" json:"twitch_user_id" toml:"twitch_user_id" yaml:"twitch_user_id"`
TwitchUsername string `boil:"twitch_username" json:"twitch_username" toml:"twitch_username" yaml:"twitch_username"`
MentionEveryone bool `boil:"mention_everyone" json:"mention_everyone" toml:"mention_everyone" yaml:"mention_everyone"`
MentionRoles types.Int64Array `boil:"mention_roles" json:"mention_roles,omitempty" toml:"mention_roles" yaml:"mention_roles,omitempty"`
PublishVod bool `boil:"publish_vod" json:"publish_vod" toml:"publish_vod" yaml:"publish_vod"`
Enabled bool `boil:"enabled" json:"enabled" toml:"enabled" yaml:"enabled"`
R *twitchChannelSubscriptionR `boil:"-" json:"-" toml:"-" yaml:"-"`
L twitchChannelSubscriptionL `boil:"-" json:"-" toml:"-" yaml:"-"`
}
TwitchChannelSubscription is an object representing the database table.
func FindTwitchChannelSubscription ¶
func FindTwitchChannelSubscription(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*TwitchChannelSubscription, error)
FindTwitchChannelSubscription retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindTwitchChannelSubscriptionG ¶
func FindTwitchChannelSubscriptionG(ctx context.Context, iD int, selectCols ...string) (*TwitchChannelSubscription, error)
FindTwitchChannelSubscriptionG retrieves a single record by ID.
func (*TwitchChannelSubscription) Delete ¶
func (o *TwitchChannelSubscription) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single TwitchChannelSubscription record with an executor. Delete will match against the primary key column to find the record to delete.
func (*TwitchChannelSubscription) DeleteG ¶
func (o *TwitchChannelSubscription) DeleteG(ctx context.Context) (int64, error)
DeleteG deletes a single TwitchChannelSubscription record. DeleteG will match against the primary key column to find the record to delete.
func (*TwitchChannelSubscription) Exists ¶
func (o *TwitchChannelSubscription) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the TwitchChannelSubscription row exists.
func (*TwitchChannelSubscription) Insert ¶
func (o *TwitchChannelSubscription) 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 (*TwitchChannelSubscription) InsertG ¶
InsertG a single record. See Insert for whitelist behavior description.
func (*TwitchChannelSubscription) Reload ¶
func (o *TwitchChannelSubscription) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*TwitchChannelSubscription) ReloadG ¶
func (o *TwitchChannelSubscription) ReloadG(ctx context.Context) error
ReloadG refetches the object from the database using the primary keys.
func (*TwitchChannelSubscription) Update ¶
func (o *TwitchChannelSubscription) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the TwitchChannelSubscription. 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 (*TwitchChannelSubscription) UpdateG ¶
func (o *TwitchChannelSubscription) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
UpdateG a single TwitchChannelSubscription record using the global executor. See Update for more documentation.
func (*TwitchChannelSubscription) Upsert ¶
func (o *TwitchChannelSubscription) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) 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.
func (*TwitchChannelSubscription) UpsertG ¶
func (o *TwitchChannelSubscription) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error
UpsertG attempts an insert, and does an update or ignore on conflict.
type TwitchChannelSubscriptionSlice ¶
type TwitchChannelSubscriptionSlice []*TwitchChannelSubscription
TwitchChannelSubscriptionSlice is an alias for a slice of pointers to TwitchChannelSubscription. This should almost always be used instead of []TwitchChannelSubscription.
func (TwitchChannelSubscriptionSlice) DeleteAll ¶
func (o TwitchChannelSubscriptionSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (TwitchChannelSubscriptionSlice) DeleteAllG ¶
func (o TwitchChannelSubscriptionSlice) DeleteAllG(ctx context.Context) (int64, error)
DeleteAllG deletes all rows in the slice.
func (*TwitchChannelSubscriptionSlice) ReloadAll ¶
func (o *TwitchChannelSubscriptionSlice) 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 (*TwitchChannelSubscriptionSlice) ReloadAllG ¶
func (o *TwitchChannelSubscriptionSlice) 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 (TwitchChannelSubscriptionSlice) UpdateAll ¶
func (o TwitchChannelSubscriptionSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
func (TwitchChannelSubscriptionSlice) UpdateAllG ¶
UpdateAllG updates all rows with the specified column values.
type UpsertOptionFunc ¶
type UpsertOptionFunc func(o *UpsertOptions)
func UpsertConflictTarget ¶
func UpsertConflictTarget(conflictTarget string) UpsertOptionFunc
func UpsertUpdateSet ¶
func UpsertUpdateSet(updateSet string) UpsertOptionFunc
type UpsertOptions ¶
type UpsertOptions struct {
// contains filtered or unexported fields
}