Documentation
¶
Index ¶
- Variables
- func DiscordSkuExists(ctx context.Context, exec boil.ContextExecutor, skuID int64) (bool, error)
- func DiscordSkuExistsG(ctx context.Context, skuID int64) (bool, error)
- func DiscordSkus(mods ...qm.QueryMod) discordSkuQuery
- func NewQuery(mods ...qm.QueryMod) *queries.Query
- func PatreonTierExists(ctx context.Context, exec boil.ContextExecutor, tierID int64) (bool, error)
- func PatreonTierExistsG(ctx context.Context, tierID int64) (bool, error)
- func PatreonTiers(mods ...qm.QueryMod) patreonTierQuery
- func PremiumCodeExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func PremiumCodeExistsG(ctx context.Context, iD int64) (bool, error)
- func PremiumCodes(mods ...qm.QueryMod) premiumCodeQuery
- func PremiumSlotExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func PremiumSlotExistsG(ctx context.Context, iD int64) (bool, error)
- func PremiumSlots(mods ...qm.QueryMod) premiumSlotQuery
- type DiscordSku
- func (o *DiscordSku) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *DiscordSku) DeleteG(ctx context.Context) (int64, error)
- func (o *DiscordSku) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *DiscordSku) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *DiscordSku) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *DiscordSku) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *DiscordSku) ReloadG(ctx context.Context) error
- func (o *DiscordSku) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *DiscordSku) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *DiscordSku) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *DiscordSku) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- type DiscordSkuSlice
- func (o DiscordSkuSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o DiscordSkuSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *DiscordSkuSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *DiscordSkuSlice) ReloadAllG(ctx context.Context) error
- func (o DiscordSkuSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o DiscordSkuSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type M
- type PatreonTier
- func (o *PatreonTier) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *PatreonTier) DeleteG(ctx context.Context) (int64, error)
- func (o *PatreonTier) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *PatreonTier) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *PatreonTier) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *PatreonTier) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *PatreonTier) ReloadG(ctx context.Context) error
- func (o *PatreonTier) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *PatreonTier) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *PatreonTier) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *PatreonTier) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- type PatreonTierSlice
- func (o PatreonTierSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o PatreonTierSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *PatreonTierSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *PatreonTierSlice) ReloadAllG(ctx context.Context) error
- func (o PatreonTierSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o PatreonTierSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type PremiumCode
- func (o *PremiumCode) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *PremiumCode) DeleteG(ctx context.Context) (int64, error)
- func (o *PremiumCode) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *PremiumCode) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *PremiumCode) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *PremiumCode) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *PremiumCode) ReloadG(ctx context.Context) error
- func (o *PremiumCode) RemoveSlot(ctx context.Context, exec boil.ContextExecutor, related *PremiumSlot) error
- func (o *PremiumCode) RemoveSlotG(ctx context.Context, related *PremiumSlot) error
- func (o *PremiumCode) SetSlot(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *PremiumCode) SetSlotG(ctx context.Context, insert bool, related *PremiumSlot) error
- func (o *PremiumCode) Slot(mods ...qm.QueryMod) premiumSlotQuery
- func (o *PremiumCode) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *PremiumCode) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *PremiumCode) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *PremiumCode) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- type PremiumCodeSlice
- func (o PremiumCodeSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o PremiumCodeSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *PremiumCodeSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *PremiumCodeSlice) ReloadAllG(ctx context.Context) error
- func (o PremiumCodeSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o PremiumCodeSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type PremiumSlot
- func (o *PremiumSlot) AddSlotPremiumCodes(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *PremiumSlot) AddSlotPremiumCodesG(ctx context.Context, insert bool, related ...*PremiumCode) error
- func (o *PremiumSlot) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *PremiumSlot) DeleteG(ctx context.Context) (int64, error)
- func (o *PremiumSlot) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *PremiumSlot) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *PremiumSlot) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *PremiumSlot) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *PremiumSlot) ReloadG(ctx context.Context) error
- func (o *PremiumSlot) RemoveSlotPremiumCodes(ctx context.Context, exec boil.ContextExecutor, related ...*PremiumCode) error
- func (o *PremiumSlot) RemoveSlotPremiumCodesG(ctx context.Context, related ...*PremiumCode) error
- func (o *PremiumSlot) SetSlotPremiumCodes(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *PremiumSlot) SetSlotPremiumCodesG(ctx context.Context, insert bool, related ...*PremiumCode) error
- func (o *PremiumSlot) SlotPremiumCodes(mods ...qm.QueryMod) premiumCodeQuery
- func (o *PremiumSlot) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *PremiumSlot) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *PremiumSlot) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *PremiumSlot) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- type PremiumSlotSlice
- func (o PremiumSlotSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o PremiumSlotSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *PremiumSlotSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *PremiumSlotSlice) ReloadAllG(ctx context.Context) error
- func (o PremiumSlotSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o PremiumSlotSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type UpsertOptionFunc
- type UpsertOptions
Constants ¶
This section is empty.
Variables ¶
var DiscordSkuColumns = struct { SkuID string Slots string }{ SkuID: "sku_id", Slots: "slots", }
var DiscordSkuRels = struct {
}{}
DiscordSkuRels is where relationship names are stored.
var DiscordSkuTableColumns = struct { SkuID string Slots string }{ SkuID: "discord_skus.sku_id", Slots: "discord_skus.slots", }
var DiscordSkuWhere = struct { SkuID whereHelperint64 Slots whereHelperint }{ SkuID: whereHelperint64{/* contains filtered or unexported fields */}, Slots: whereHelperint{/* contains filtered or unexported fields */}, }
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 PatreonTierColumns = struct { TierID string Slots string }{ TierID: "tier_id", Slots: "slots", }
var PatreonTierRels = struct {
}{}
PatreonTierRels is where relationship names are stored.
var PatreonTierTableColumns = struct { TierID string Slots string }{ TierID: "patreon_tiers.tier_id", Slots: "patreon_tiers.slots", }
var PatreonTierWhere = struct { TierID whereHelperint64 Slots whereHelperint }{ TierID: whereHelperint64{/* contains filtered or unexported fields */}, Slots: whereHelperint{/* contains filtered or unexported fields */}, }
var PremiumCodeColumns = struct { ID string Code string Message string CreatedAt string UsedAt string SlotID string UserID string GuildID string Permanent string Duration string }{ ID: "id", Code: "code", Message: "message", CreatedAt: "created_at", UsedAt: "used_at", SlotID: "slot_id", UserID: "user_id", GuildID: "guild_id", Permanent: "permanent", Duration: "duration", }
var PremiumCodeRels = struct { Slot string }{ Slot: "Slot", }
PremiumCodeRels is where relationship names are stored.
var PremiumCodeTableColumns = struct { ID string Code string Message string CreatedAt string UsedAt string SlotID string UserID string GuildID string Permanent string Duration string }{ ID: "premium_codes.id", Code: "premium_codes.code", Message: "premium_codes.message", CreatedAt: "premium_codes.created_at", UsedAt: "premium_codes.used_at", SlotID: "premium_codes.slot_id", UserID: "premium_codes.user_id", GuildID: "premium_codes.guild_id", Permanent: "premium_codes.permanent", Duration: "premium_codes.duration", }
var PremiumCodeWhere = struct { ID whereHelperint64 Code whereHelperstring Message whereHelperstring CreatedAt whereHelpertime_Time UsedAt whereHelpernull_Time SlotID whereHelpernull_Int64 UserID whereHelpernull_Int64 GuildID whereHelpernull_Int64 Permanent whereHelperbool Duration whereHelperint64 }{ ID: whereHelperint64{/* contains filtered or unexported fields */}, Code: whereHelperstring{/* contains filtered or unexported fields */}, Message: whereHelperstring{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, UsedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, SlotID: whereHelpernull_Int64{/* contains filtered or unexported fields */}, UserID: whereHelpernull_Int64{/* contains filtered or unexported fields */}, GuildID: whereHelpernull_Int64{/* contains filtered or unexported fields */}, Permanent: whereHelperbool{/* contains filtered or unexported fields */}, Duration: whereHelperint64{/* contains filtered or unexported fields */}, }
var PremiumSlotColumns = struct { ID string CreatedAt string AttachedAt string UserID string GuildID string Title string Message string Source string SourceID string FullDuration string Permanent string DurationRemaining string Tier string DeletesAt string }{ ID: "id", CreatedAt: "created_at", AttachedAt: "attached_at", UserID: "user_id", GuildID: "guild_id", Title: "title", Message: "message", Source: "source", SourceID: "source_id", FullDuration: "full_duration", Permanent: "permanent", DurationRemaining: "duration_remaining", Tier: "tier", DeletesAt: "deletes_at", }
var PremiumSlotRels = struct { SlotPremiumCodes string }{ SlotPremiumCodes: "SlotPremiumCodes", }
PremiumSlotRels is where relationship names are stored.
var PremiumSlotTableColumns = struct { ID string CreatedAt string AttachedAt string UserID string GuildID string Title string Message string Source string SourceID string FullDuration string Permanent string DurationRemaining string Tier string DeletesAt string }{ ID: "premium_slots.id", CreatedAt: "premium_slots.created_at", AttachedAt: "premium_slots.attached_at", UserID: "premium_slots.user_id", GuildID: "premium_slots.guild_id", Title: "premium_slots.title", Message: "premium_slots.message", Source: "premium_slots.source", SourceID: "premium_slots.source_id", FullDuration: "premium_slots.full_duration", Permanent: "premium_slots.permanent", DurationRemaining: "premium_slots.duration_remaining", Tier: "premium_slots.tier", DeletesAt: "premium_slots.deletes_at", }
var PremiumSlotWhere = struct { ID whereHelperint64 CreatedAt whereHelpertime_Time AttachedAt whereHelpernull_Time UserID whereHelperint64 GuildID whereHelpernull_Int64 Title whereHelperstring Message whereHelperstring Source whereHelperstring SourceID whereHelperint64 FullDuration whereHelperint64 Permanent whereHelperbool DurationRemaining whereHelperint64 Tier whereHelperint DeletesAt whereHelpernull_Time }{ ID: whereHelperint64{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, AttachedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, UserID: whereHelperint64{/* contains filtered or unexported fields */}, GuildID: whereHelpernull_Int64{/* contains filtered or unexported fields */}, Title: whereHelperstring{/* contains filtered or unexported fields */}, Message: whereHelperstring{/* contains filtered or unexported fields */}, Source: whereHelperstring{/* contains filtered or unexported fields */}, SourceID: whereHelperint64{/* contains filtered or unexported fields */}, FullDuration: whereHelperint64{/* contains filtered or unexported fields */}, Permanent: whereHelperbool{/* contains filtered or unexported fields */}, DurationRemaining: whereHelperint64{/* contains filtered or unexported fields */}, Tier: whereHelperint{/* contains filtered or unexported fields */}, DeletesAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, }
var TableNames = struct { DiscordSkus string PatreonTiers string PremiumCodes string PremiumSlots string }{ DiscordSkus: "discord_skus", PatreonTiers: "patreon_tiers", PremiumCodes: "premium_codes", PremiumSlots: "premium_slots", }
var ViewNames = struct {
}{}
Functions ¶
func DiscordSkuExists ¶ added in v2.57.0
DiscordSkuExists checks if the DiscordSku row exists.
func DiscordSkuExistsG ¶ added in v2.57.0
DiscordSkuExistsG checks if the DiscordSku row exists.
func DiscordSkus ¶ added in v2.57.0
DiscordSkus retrieves all the records using an executor.
func PatreonTierExists ¶ added in v2.57.0
PatreonTierExists checks if the PatreonTier row exists.
func PatreonTierExistsG ¶ added in v2.57.0
PatreonTierExistsG checks if the PatreonTier row exists.
func PatreonTiers ¶ added in v2.57.0
PatreonTiers retrieves all the records using an executor.
func PremiumCodeExists ¶
PremiumCodeExists checks if the PremiumCode row exists.
func PremiumCodeExistsG ¶
PremiumCodeExistsG checks if the PremiumCode row exists.
func PremiumCodes ¶
PremiumCodes retrieves all the records using an executor.
func PremiumSlotExists ¶
PremiumSlotExists checks if the PremiumSlot row exists.
func PremiumSlotExistsG ¶
PremiumSlotExistsG checks if the PremiumSlot row exists.
func PremiumSlots ¶
PremiumSlots retrieves all the records using an executor.
Types ¶
type DiscordSku ¶ added in v2.57.0
type DiscordSku struct { SkuID int64 `boil:"sku_id" json:"sku_id" toml:"sku_id" yaml:"sku_id"` Slots int `boil:"slots" json:"slots" toml:"slots" yaml:"slots"` R *discordSkuR `boil:"-" json:"-" toml:"-" yaml:"-"` L discordSkuL `boil:"-" json:"-" toml:"-" yaml:"-"` }
DiscordSku is an object representing the database table.
func FindDiscordSku ¶ added in v2.57.0
func FindDiscordSku(ctx context.Context, exec boil.ContextExecutor, skuID int64, selectCols ...string) (*DiscordSku, error)
FindDiscordSku retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindDiscordSkuG ¶ added in v2.57.0
FindDiscordSkuG retrieves a single record by ID.
func (*DiscordSku) Delete ¶ added in v2.57.0
func (o *DiscordSku) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single DiscordSku record with an executor. Delete will match against the primary key column to find the record to delete.
func (*DiscordSku) DeleteG ¶ added in v2.57.0
func (o *DiscordSku) DeleteG(ctx context.Context) (int64, error)
DeleteG deletes a single DiscordSku record. DeleteG will match against the primary key column to find the record to delete.
func (*DiscordSku) Exists ¶ added in v2.57.0
func (o *DiscordSku) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the DiscordSku row exists.
func (*DiscordSku) Insert ¶ added in v2.57.0
func (o *DiscordSku) 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 (*DiscordSku) InsertG ¶ added in v2.57.0
InsertG a single record. See Insert for whitelist behavior description.
func (*DiscordSku) Reload ¶ added in v2.57.0
func (o *DiscordSku) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*DiscordSku) ReloadG ¶ added in v2.57.0
func (o *DiscordSku) ReloadG(ctx context.Context) error
ReloadG refetches the object from the database using the primary keys.
func (*DiscordSku) Update ¶ added in v2.57.0
func (o *DiscordSku) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the DiscordSku. 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 (*DiscordSku) UpdateG ¶ added in v2.57.0
UpdateG a single DiscordSku record using the global executor. See Update for more documentation.
func (*DiscordSku) Upsert ¶ added in v2.57.0
func (o *DiscordSku) 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 DiscordSkuSlice ¶ added in v2.57.0
type DiscordSkuSlice []*DiscordSku
DiscordSkuSlice is an alias for a slice of pointers to DiscordSku. This should almost always be used instead of []DiscordSku.
func (DiscordSkuSlice) DeleteAll ¶ added in v2.57.0
func (o DiscordSkuSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (DiscordSkuSlice) DeleteAllG ¶ added in v2.57.0
func (o DiscordSkuSlice) DeleteAllG(ctx context.Context) (int64, error)
DeleteAllG deletes all rows in the slice.
func (*DiscordSkuSlice) ReloadAll ¶ added in v2.57.0
func (o *DiscordSkuSlice) 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 (*DiscordSkuSlice) ReloadAllG ¶ added in v2.57.0
func (o *DiscordSkuSlice) 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 (DiscordSkuSlice) UpdateAll ¶ added in v2.57.0
func (o DiscordSkuSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
func (DiscordSkuSlice) UpdateAllG ¶ added in v2.57.0
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 PatreonTier ¶ added in v2.57.0
type PatreonTier struct { TierID int64 `boil:"tier_id" json:"tier_id" toml:"tier_id" yaml:"tier_id"` Slots int `boil:"slots" json:"slots" toml:"slots" yaml:"slots"` R *patreonTierR `boil:"-" json:"-" toml:"-" yaml:"-"` L patreonTierL `boil:"-" json:"-" toml:"-" yaml:"-"` }
PatreonTier is an object representing the database table.
func FindPatreonTier ¶ added in v2.57.0
func FindPatreonTier(ctx context.Context, exec boil.ContextExecutor, tierID int64, selectCols ...string) (*PatreonTier, error)
FindPatreonTier retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindPatreonTierG ¶ added in v2.57.0
func FindPatreonTierG(ctx context.Context, tierID int64, selectCols ...string) (*PatreonTier, error)
FindPatreonTierG retrieves a single record by ID.
func (*PatreonTier) Delete ¶ added in v2.57.0
func (o *PatreonTier) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single PatreonTier record with an executor. Delete will match against the primary key column to find the record to delete.
func (*PatreonTier) DeleteG ¶ added in v2.57.0
func (o *PatreonTier) DeleteG(ctx context.Context) (int64, error)
DeleteG deletes a single PatreonTier record. DeleteG will match against the primary key column to find the record to delete.
func (*PatreonTier) Exists ¶ added in v2.57.0
func (o *PatreonTier) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the PatreonTier row exists.
func (*PatreonTier) Insert ¶ added in v2.57.0
func (o *PatreonTier) 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 (*PatreonTier) InsertG ¶ added in v2.57.0
InsertG a single record. See Insert for whitelist behavior description.
func (*PatreonTier) Reload ¶ added in v2.57.0
func (o *PatreonTier) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*PatreonTier) ReloadG ¶ added in v2.57.0
func (o *PatreonTier) ReloadG(ctx context.Context) error
ReloadG refetches the object from the database using the primary keys.
func (*PatreonTier) Update ¶ added in v2.57.0
func (o *PatreonTier) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the PatreonTier. 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 (*PatreonTier) UpdateG ¶ added in v2.57.0
UpdateG a single PatreonTier record using the global executor. See Update for more documentation.
func (*PatreonTier) Upsert ¶ added in v2.57.0
func (o *PatreonTier) 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 PatreonTierSlice ¶ added in v2.57.0
type PatreonTierSlice []*PatreonTier
PatreonTierSlice is an alias for a slice of pointers to PatreonTier. This should almost always be used instead of []PatreonTier.
func (PatreonTierSlice) DeleteAll ¶ added in v2.57.0
func (o PatreonTierSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (PatreonTierSlice) DeleteAllG ¶ added in v2.57.0
func (o PatreonTierSlice) DeleteAllG(ctx context.Context) (int64, error)
DeleteAllG deletes all rows in the slice.
func (*PatreonTierSlice) ReloadAll ¶ added in v2.57.0
func (o *PatreonTierSlice) 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 (*PatreonTierSlice) ReloadAllG ¶ added in v2.57.0
func (o *PatreonTierSlice) 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 (PatreonTierSlice) UpdateAll ¶ added in v2.57.0
func (o PatreonTierSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
func (PatreonTierSlice) UpdateAllG ¶ added in v2.57.0
UpdateAllG updates all rows with the specified column values.
type PremiumCode ¶
type PremiumCode struct { ID int64 `boil:"id" json:"id" toml:"id" yaml:"id"` Code string `boil:"code" json:"code" toml:"code" yaml:"code"` Message string `boil:"message" json:"message" toml:"message" yaml:"message"` CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"` UsedAt null.Time `boil:"used_at" json:"used_at,omitempty" toml:"used_at" yaml:"used_at,omitempty"` SlotID null.Int64 `boil:"slot_id" json:"slot_id,omitempty" toml:"slot_id" yaml:"slot_id,omitempty"` UserID null.Int64 `boil:"user_id" json:"user_id,omitempty" toml:"user_id" yaml:"user_id,omitempty"` GuildID null.Int64 `boil:"guild_id" json:"guild_id,omitempty" toml:"guild_id" yaml:"guild_id,omitempty"` Permanent bool `boil:"permanent" json:"permanent" toml:"permanent" yaml:"permanent"` Duration int64 `boil:"duration" json:"duration" toml:"duration" yaml:"duration"` R *premiumCodeR `boil:"-" json:"-" toml:"-" yaml:"-"` L premiumCodeL `boil:"-" json:"-" toml:"-" yaml:"-"` }
PremiumCode is an object representing the database table.
func FindPremiumCode ¶
func FindPremiumCode(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*PremiumCode, error)
FindPremiumCode retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindPremiumCodeG ¶
FindPremiumCodeG retrieves a single record by ID.
func (*PremiumCode) Delete ¶
func (o *PremiumCode) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single PremiumCode record with an executor. Delete will match against the primary key column to find the record to delete.
func (*PremiumCode) DeleteG ¶
func (o *PremiumCode) DeleteG(ctx context.Context) (int64, error)
DeleteG deletes a single PremiumCode record. DeleteG will match against the primary key column to find the record to delete.
func (*PremiumCode) Exists ¶ added in v2.36.0
func (o *PremiumCode) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the PremiumCode row exists.
func (*PremiumCode) Insert ¶
func (o *PremiumCode) 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 (*PremiumCode) InsertG ¶
InsertG a single record. See Insert for whitelist behavior description.
func (*PremiumCode) Reload ¶
func (o *PremiumCode) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*PremiumCode) ReloadG ¶
func (o *PremiumCode) ReloadG(ctx context.Context) error
ReloadG refetches the object from the database using the primary keys.
func (*PremiumCode) RemoveSlot ¶
func (o *PremiumCode) RemoveSlot(ctx context.Context, exec boil.ContextExecutor, related *PremiumSlot) error
RemoveSlot relationship. Sets o.R.Slot to nil. Removes o from all passed in related items' relationships struct.
func (*PremiumCode) RemoveSlotG ¶
func (o *PremiumCode) RemoveSlotG(ctx context.Context, related *PremiumSlot) error
RemoveSlotG relationship. Sets o.R.Slot to nil. Removes o from all passed in related items' relationships struct. Uses the global database handle.
func (*PremiumCode) SetSlot ¶
func (o *PremiumCode) SetSlot(ctx context.Context, exec boil.ContextExecutor, insert bool, related *PremiumSlot) error
SetSlot of the premiumCode to the related item. Sets o.R.Slot to related. Adds o to related.R.SlotPremiumCodes.
func (*PremiumCode) SetSlotG ¶
func (o *PremiumCode) SetSlotG(ctx context.Context, insert bool, related *PremiumSlot) error
SetSlotG of the premiumCode to the related item. Sets o.R.Slot to related. Adds o to related.R.SlotPremiumCodes. Uses the global database handle.
func (*PremiumCode) Slot ¶
func (o *PremiumCode) Slot(mods ...qm.QueryMod) premiumSlotQuery
Slot pointed to by the foreign key.
func (*PremiumCode) Update ¶
func (o *PremiumCode) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the PremiumCode. 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 (*PremiumCode) UpdateG ¶
UpdateG a single PremiumCode record using the global executor. See Update for more documentation.
func (*PremiumCode) Upsert ¶
func (o *PremiumCode) 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 PremiumCodeSlice ¶
type PremiumCodeSlice []*PremiumCode
PremiumCodeSlice is an alias for a slice of pointers to PremiumCode. This should almost always be used instead of []PremiumCode.
func (PremiumCodeSlice) DeleteAll ¶
func (o PremiumCodeSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (PremiumCodeSlice) DeleteAllG ¶
func (o PremiumCodeSlice) DeleteAllG(ctx context.Context) (int64, error)
DeleteAllG deletes all rows in the slice.
func (*PremiumCodeSlice) ReloadAll ¶
func (o *PremiumCodeSlice) 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 (*PremiumCodeSlice) ReloadAllG ¶
func (o *PremiumCodeSlice) 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 (PremiumCodeSlice) UpdateAll ¶
func (o PremiumCodeSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
func (PremiumCodeSlice) UpdateAllG ¶
UpdateAllG updates all rows with the specified column values.
type PremiumSlot ¶
type PremiumSlot struct { ID int64 `boil:"id" json:"id" toml:"id" yaml:"id"` CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"` AttachedAt null.Time `boil:"attached_at" json:"attached_at,omitempty" toml:"attached_at" yaml:"attached_at,omitempty"` UserID int64 `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"` GuildID null.Int64 `boil:"guild_id" json:"guild_id,omitempty" toml:"guild_id" yaml:"guild_id,omitempty"` Title string `boil:"title" json:"title" toml:"title" yaml:"title"` Message string `boil:"message" json:"message" toml:"message" yaml:"message"` Source string `boil:"source" json:"source" toml:"source" yaml:"source"` SourceID int64 `boil:"source_id" json:"source_id" toml:"source_id" yaml:"source_id"` FullDuration int64 `boil:"full_duration" json:"full_duration" toml:"full_duration" yaml:"full_duration"` Permanent bool `boil:"permanent" json:"permanent" toml:"permanent" yaml:"permanent"` DurationRemaining int64 `boil:"duration_remaining" json:"duration_remaining" toml:"duration_remaining" yaml:"duration_remaining"` Tier int `boil:"tier" json:"tier" toml:"tier" yaml:"tier"` DeletesAt null.Time `boil:"deletes_at" json:"deletes_at,omitempty" toml:"deletes_at" yaml:"deletes_at,omitempty"` R *premiumSlotR `boil:"-" json:"-" toml:"-" yaml:"-"` L premiumSlotL `boil:"-" json:"-" toml:"-" yaml:"-"` }
PremiumSlot is an object representing the database table.
func FindPremiumSlot ¶
func FindPremiumSlot(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*PremiumSlot, error)
FindPremiumSlot retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindPremiumSlotG ¶
FindPremiumSlotG retrieves a single record by ID.
func (*PremiumSlot) AddSlotPremiumCodes ¶
func (o *PremiumSlot) AddSlotPremiumCodes(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*PremiumCode) error
AddSlotPremiumCodes adds the given related objects to the existing relationships of the premium_slot, optionally inserting them as new records. Appends related to o.R.SlotPremiumCodes. Sets related.R.Slot appropriately.
func (*PremiumSlot) AddSlotPremiumCodesG ¶
func (o *PremiumSlot) AddSlotPremiumCodesG(ctx context.Context, insert bool, related ...*PremiumCode) error
AddSlotPremiumCodesG adds the given related objects to the existing relationships of the premium_slot, optionally inserting them as new records. Appends related to o.R.SlotPremiumCodes. Sets related.R.Slot appropriately. Uses the global database handle.
func (*PremiumSlot) Delete ¶
func (o *PremiumSlot) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single PremiumSlot record with an executor. Delete will match against the primary key column to find the record to delete.
func (*PremiumSlot) DeleteG ¶
func (o *PremiumSlot) DeleteG(ctx context.Context) (int64, error)
DeleteG deletes a single PremiumSlot record. DeleteG will match against the primary key column to find the record to delete.
func (*PremiumSlot) Exists ¶ added in v2.36.0
func (o *PremiumSlot) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the PremiumSlot row exists.
func (*PremiumSlot) Insert ¶
func (o *PremiumSlot) 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 (*PremiumSlot) InsertG ¶
InsertG a single record. See Insert for whitelist behavior description.
func (*PremiumSlot) Reload ¶
func (o *PremiumSlot) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*PremiumSlot) ReloadG ¶
func (o *PremiumSlot) ReloadG(ctx context.Context) error
ReloadG refetches the object from the database using the primary keys.
func (*PremiumSlot) RemoveSlotPremiumCodes ¶
func (o *PremiumSlot) RemoveSlotPremiumCodes(ctx context.Context, exec boil.ContextExecutor, related ...*PremiumCode) error
RemoveSlotPremiumCodes relationships from objects passed in. Removes related items from R.SlotPremiumCodes (uses pointer comparison, removal does not keep order) Sets related.R.Slot.
func (*PremiumSlot) RemoveSlotPremiumCodesG ¶
func (o *PremiumSlot) RemoveSlotPremiumCodesG(ctx context.Context, related ...*PremiumCode) error
RemoveSlotPremiumCodesG relationships from objects passed in. Removes related items from R.SlotPremiumCodes (uses pointer comparison, removal does not keep order) Sets related.R.Slot. Uses the global database handle.
func (*PremiumSlot) SetSlotPremiumCodes ¶
func (o *PremiumSlot) SetSlotPremiumCodes(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*PremiumCode) error
SetSlotPremiumCodes removes all previously related items of the premium_slot replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Slot's SlotPremiumCodes accordingly. Replaces o.R.SlotPremiumCodes with related. Sets related.R.Slot's SlotPremiumCodes accordingly.
func (*PremiumSlot) SetSlotPremiumCodesG ¶
func (o *PremiumSlot) SetSlotPremiumCodesG(ctx context.Context, insert bool, related ...*PremiumCode) error
SetSlotPremiumCodesG removes all previously related items of the premium_slot replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Slot's SlotPremiumCodes accordingly. Replaces o.R.SlotPremiumCodes with related. Sets related.R.Slot's SlotPremiumCodes accordingly. Uses the global database handle.
func (*PremiumSlot) SlotPremiumCodes ¶
func (o *PremiumSlot) SlotPremiumCodes(mods ...qm.QueryMod) premiumCodeQuery
SlotPremiumCodes retrieves all the premium_code's PremiumCodes with an executor via slot_id column.
func (*PremiumSlot) Update ¶
func (o *PremiumSlot) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the PremiumSlot. 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 (*PremiumSlot) UpdateG ¶
UpdateG a single PremiumSlot record using the global executor. See Update for more documentation.
func (*PremiumSlot) Upsert ¶
func (o *PremiumSlot) 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 PremiumSlotSlice ¶
type PremiumSlotSlice []*PremiumSlot
PremiumSlotSlice is an alias for a slice of pointers to PremiumSlot. This should almost always be used instead of []PremiumSlot.
func (PremiumSlotSlice) DeleteAll ¶
func (o PremiumSlotSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (PremiumSlotSlice) DeleteAllG ¶
func (o PremiumSlotSlice) DeleteAllG(ctx context.Context) (int64, error)
DeleteAllG deletes all rows in the slice.
func (*PremiumSlotSlice) ReloadAll ¶
func (o *PremiumSlotSlice) 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 (*PremiumSlotSlice) ReloadAllG ¶
func (o *PremiumSlotSlice) 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 (PremiumSlotSlice) UpdateAll ¶
func (o PremiumSlotSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
func (PremiumSlotSlice) UpdateAllG ¶
UpdateAllG updates all rows with the specified column values.
type UpsertOptionFunc ¶ added in v2.36.0
type UpsertOptionFunc func(o *UpsertOptions)
func UpsertConflictTarget ¶ added in v2.36.0
func UpsertConflictTarget(conflictTarget string) UpsertOptionFunc
func UpsertUpdateSet ¶ added in v2.36.0
func UpsertUpdateSet(updateSet string) UpsertOptionFunc
type UpsertOptions ¶ added in v2.36.0
type UpsertOptions struct {
// contains filtered or unexported fields
}