Documentation ¶
Index ¶
- Variables
- func NewQuery(mods ...qm.QueryMod) *queries.Query
- func ReputationConfigExists(ctx context.Context, exec boil.ContextExecutor, guildID int64) (bool, error)
- func ReputationConfigExistsG(ctx context.Context, guildID int64) (bool, error)
- func ReputationConfigs(mods ...qm.QueryMod) reputationConfigQuery
- func ReputationLogExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func ReputationLogExistsG(ctx context.Context, iD int64) (bool, error)
- func ReputationLogs(mods ...qm.QueryMod) reputationLogQuery
- func ReputationUserExists(ctx context.Context, exec boil.ContextExecutor, guildID int64, userID int64) (bool, error)
- func ReputationUserExistsG(ctx context.Context, guildID int64, userID int64) (bool, error)
- func ReputationUsers(mods ...qm.QueryMod) reputationUserQuery
- type M
- type ReputationConfig
- func (o *ReputationConfig) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *ReputationConfig) DeleteG(ctx context.Context) (int64, error)
- func (o *ReputationConfig) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *ReputationConfig) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *ReputationConfig) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *ReputationConfig) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *ReputationConfig) ReloadG(ctx context.Context) error
- func (o *ReputationConfig) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *ReputationConfig) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *ReputationConfig) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *ReputationConfig) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- type ReputationConfigSlice
- func (o ReputationConfigSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o ReputationConfigSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *ReputationConfigSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *ReputationConfigSlice) ReloadAllG(ctx context.Context) error
- func (o ReputationConfigSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o ReputationConfigSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type ReputationLog
- func (o *ReputationLog) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *ReputationLog) DeleteG(ctx context.Context) (int64, error)
- func (o *ReputationLog) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *ReputationLog) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *ReputationLog) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *ReputationLog) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *ReputationLog) ReloadG(ctx context.Context) error
- func (o *ReputationLog) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *ReputationLog) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *ReputationLog) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *ReputationLog) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- type ReputationLogSlice
- func (o ReputationLogSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o ReputationLogSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *ReputationLogSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *ReputationLogSlice) ReloadAllG(ctx context.Context) error
- func (o ReputationLogSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o ReputationLogSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type ReputationUser
- func (o *ReputationUser) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *ReputationUser) DeleteG(ctx context.Context) (int64, error)
- func (o *ReputationUser) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *ReputationUser) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *ReputationUser) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *ReputationUser) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *ReputationUser) ReloadG(ctx context.Context) error
- func (o *ReputationUser) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *ReputationUser) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *ReputationUser) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *ReputationUser) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- type ReputationUserSlice
- func (o ReputationUserSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o ReputationUserSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *ReputationUserSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *ReputationUserSlice) ReloadAllG(ctx context.Context) error
- func (o ReputationUserSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o ReputationUserSlice) 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 ReputationConfigColumns = struct { GuildID string PointsName string Enabled string Cooldown string MaxGiveAmount string RequiredGiveRole string RequiredReceiveRole string BlacklistedGiveRole string BlacklistedReceiveRole string AdminRole string DisableThanksDetection string WhitelistedThanksChannels string BlacklistedThanksChannels string MaxRemoveAmount string AdminRoles string RequiredGiveRoles string RequiredReceiveRoles string BlacklistedGiveRoles string BlacklistedReceiveRoles string }{ GuildID: "guild_id", PointsName: "points_name", Enabled: "enabled", Cooldown: "cooldown", MaxGiveAmount: "max_give_amount", RequiredGiveRole: "required_give_role", RequiredReceiveRole: "required_receive_role", BlacklistedGiveRole: "blacklisted_give_role", BlacklistedReceiveRole: "blacklisted_receive_role", AdminRole: "admin_role", DisableThanksDetection: "disable_thanks_detection", WhitelistedThanksChannels: "whitelisted_thanks_channels", BlacklistedThanksChannels: "blacklisted_thanks_channels", MaxRemoveAmount: "max_remove_amount", AdminRoles: "admin_roles", RequiredGiveRoles: "required_give_roles", RequiredReceiveRoles: "required_receive_roles", BlacklistedGiveRoles: "blacklisted_give_roles", BlacklistedReceiveRoles: "blacklisted_receive_roles", }
var ReputationConfigRels = struct {
}{}
ReputationConfigRels is where relationship names are stored.
var ReputationConfigTableColumns = struct { GuildID string PointsName string Enabled string Cooldown string MaxGiveAmount string RequiredGiveRole string RequiredReceiveRole string BlacklistedGiveRole string BlacklistedReceiveRole string AdminRole string DisableThanksDetection string WhitelistedThanksChannels string BlacklistedThanksChannels string MaxRemoveAmount string AdminRoles string RequiredGiveRoles string RequiredReceiveRoles string BlacklistedGiveRoles string BlacklistedReceiveRoles string }{ GuildID: "reputation_configs.guild_id", PointsName: "reputation_configs.points_name", Enabled: "reputation_configs.enabled", Cooldown: "reputation_configs.cooldown", MaxGiveAmount: "reputation_configs.max_give_amount", RequiredGiveRole: "reputation_configs.required_give_role", RequiredReceiveRole: "reputation_configs.required_receive_role", BlacklistedGiveRole: "reputation_configs.blacklisted_give_role", BlacklistedReceiveRole: "reputation_configs.blacklisted_receive_role", AdminRole: "reputation_configs.admin_role", DisableThanksDetection: "reputation_configs.disable_thanks_detection", WhitelistedThanksChannels: "reputation_configs.whitelisted_thanks_channels", BlacklistedThanksChannels: "reputation_configs.blacklisted_thanks_channels", MaxRemoveAmount: "reputation_configs.max_remove_amount", AdminRoles: "reputation_configs.admin_roles", RequiredGiveRoles: "reputation_configs.required_give_roles", RequiredReceiveRoles: "reputation_configs.required_receive_roles", BlacklistedGiveRoles: "reputation_configs.blacklisted_give_roles", BlacklistedReceiveRoles: "reputation_configs.blacklisted_receive_roles", }
var ReputationConfigWhere = struct { GuildID whereHelperint64 PointsName whereHelperstring Enabled whereHelperbool Cooldown whereHelperint MaxGiveAmount whereHelperint64 RequiredGiveRole whereHelpernull_String RequiredReceiveRole whereHelpernull_String BlacklistedGiveRole whereHelpernull_String BlacklistedReceiveRole whereHelpernull_String AdminRole whereHelpernull_String DisableThanksDetection whereHelperbool WhitelistedThanksChannels whereHelpertypes_Int64Array BlacklistedThanksChannels whereHelpertypes_Int64Array MaxRemoveAmount whereHelperint64 AdminRoles whereHelpertypes_Int64Array RequiredGiveRoles whereHelpertypes_Int64Array RequiredReceiveRoles whereHelpertypes_Int64Array BlacklistedGiveRoles whereHelpertypes_Int64Array BlacklistedReceiveRoles whereHelpertypes_Int64Array }{ GuildID: whereHelperint64{/* contains filtered or unexported fields */}, PointsName: whereHelperstring{/* contains filtered or unexported fields */}, Enabled: whereHelperbool{/* contains filtered or unexported fields */}, Cooldown: whereHelperint{/* contains filtered or unexported fields */}, MaxGiveAmount: whereHelperint64{/* contains filtered or unexported fields */}, RequiredGiveRole: whereHelpernull_String{/* contains filtered or unexported fields */}, RequiredReceiveRole: whereHelpernull_String{/* contains filtered or unexported fields */}, BlacklistedGiveRole: whereHelpernull_String{/* contains filtered or unexported fields */}, BlacklistedReceiveRole: whereHelpernull_String{/* contains filtered or unexported fields */}, AdminRole: whereHelpernull_String{/* contains filtered or unexported fields */}, DisableThanksDetection: whereHelperbool{/* contains filtered or unexported fields */}, WhitelistedThanksChannels: whereHelpertypes_Int64Array{/* contains filtered or unexported fields */}, BlacklistedThanksChannels: whereHelpertypes_Int64Array{/* contains filtered or unexported fields */}, MaxRemoveAmount: whereHelperint64{/* contains filtered or unexported fields */}, AdminRoles: whereHelpertypes_Int64Array{/* contains filtered or unexported fields */}, RequiredGiveRoles: whereHelpertypes_Int64Array{/* contains filtered or unexported fields */}, RequiredReceiveRoles: whereHelpertypes_Int64Array{/* contains filtered or unexported fields */}, BlacklistedGiveRoles: whereHelpertypes_Int64Array{/* contains filtered or unexported fields */}, BlacklistedReceiveRoles: whereHelpertypes_Int64Array{/* contains filtered or unexported fields */}, }
var ReputationLogColumns = struct { ID string CreatedAt string GuildID string SenderID string ReceiverID string SetFixedAmount string Amount string ReceiverUsername string SenderUsername string }{ ID: "id", CreatedAt: "created_at", GuildID: "guild_id", SenderID: "sender_id", ReceiverID: "receiver_id", SetFixedAmount: "set_fixed_amount", Amount: "amount", ReceiverUsername: "receiver_username", SenderUsername: "sender_username", }
var ReputationLogRels = struct {
}{}
ReputationLogRels is where relationship names are stored.
var ReputationLogTableColumns = struct { ID string CreatedAt string GuildID string SenderID string ReceiverID string SetFixedAmount string Amount string ReceiverUsername string SenderUsername string }{ ID: "reputation_log.id", CreatedAt: "reputation_log.created_at", GuildID: "reputation_log.guild_id", SenderID: "reputation_log.sender_id", ReceiverID: "reputation_log.receiver_id", SetFixedAmount: "reputation_log.set_fixed_amount", Amount: "reputation_log.amount", ReceiverUsername: "reputation_log.receiver_username", SenderUsername: "reputation_log.sender_username", }
var ReputationLogWhere = struct { ID whereHelperint64 CreatedAt whereHelpertime_Time GuildID whereHelperint64 SenderID whereHelperint64 ReceiverID whereHelperint64 SetFixedAmount whereHelperbool Amount whereHelperint64 ReceiverUsername whereHelperstring SenderUsername whereHelperstring }{ ID: whereHelperint64{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, GuildID: whereHelperint64{/* contains filtered or unexported fields */}, SenderID: whereHelperint64{/* contains filtered or unexported fields */}, ReceiverID: whereHelperint64{/* contains filtered or unexported fields */}, SetFixedAmount: whereHelperbool{/* contains filtered or unexported fields */}, Amount: whereHelperint64{/* contains filtered or unexported fields */}, ReceiverUsername: whereHelperstring{/* contains filtered or unexported fields */}, SenderUsername: whereHelperstring{/* contains filtered or unexported fields */}, }
var ReputationUserColumns = struct { UserID string GuildID string CreatedAt string Points string }{ UserID: "user_id", GuildID: "guild_id", CreatedAt: "created_at", Points: "points", }
var ReputationUserRels = struct {
}{}
ReputationUserRels is where relationship names are stored.
var ReputationUserTableColumns = struct { UserID string GuildID string CreatedAt string Points string }{ UserID: "reputation_users.user_id", GuildID: "reputation_users.guild_id", CreatedAt: "reputation_users.created_at", Points: "reputation_users.points", }
var ReputationUserWhere = struct { UserID whereHelperint64 GuildID whereHelperint64 CreatedAt whereHelpertime_Time Points whereHelperint64 }{ UserID: whereHelperint64{/* contains filtered or unexported fields */}, GuildID: whereHelperint64{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, Points: whereHelperint64{/* contains filtered or unexported fields */}, }
var TableNames = struct { ReputationConfigs string ReputationLog string ReputationUsers string }{ ReputationConfigs: "reputation_configs", ReputationLog: "reputation_log", ReputationUsers: "reputation_users", }
Functions ¶
func ReputationConfigExists ¶
func ReputationConfigExists(ctx context.Context, exec boil.ContextExecutor, guildID int64) (bool, error)
ReputationConfigExists checks if the ReputationConfig row exists.
func ReputationConfigExistsG ¶
ReputationConfigExistsG checks if the ReputationConfig row exists.
func ReputationConfigs ¶
ReputationConfigs retrieves all the records using an executor.
func ReputationLogExists ¶
ReputationLogExists checks if the ReputationLog row exists.
func ReputationLogExistsG ¶
ReputationLogExistsG checks if the ReputationLog row exists.
func ReputationLogs ¶
ReputationLogs retrieves all the records using an executor.
func ReputationUserExists ¶
func ReputationUserExists(ctx context.Context, exec boil.ContextExecutor, guildID int64, userID int64) (bool, error)
ReputationUserExists checks if the ReputationUser row exists.
func ReputationUserExistsG ¶
ReputationUserExistsG checks if the ReputationUser row exists.
func ReputationUsers ¶
ReputationUsers 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 ReputationConfig ¶
type ReputationConfig struct { GuildID int64 `boil:"guild_id" json:"guild_id" toml:"guild_id" yaml:"guild_id"` PointsName string `boil:"points_name" json:"points_name" toml:"points_name" yaml:"points_name"` Enabled bool `boil:"enabled" json:"enabled" toml:"enabled" yaml:"enabled"` Cooldown int `boil:"cooldown" json:"cooldown" toml:"cooldown" yaml:"cooldown"` MaxGiveAmount int64 `boil:"max_give_amount" json:"max_give_amount" toml:"max_give_amount" yaml:"max_give_amount"` RequiredGiveRole null.String `boil:"required_give_role" json:"required_give_role,omitempty" toml:"required_give_role" yaml:"required_give_role,omitempty"` RequiredReceiveRole null.String `` /* 135-byte string literal not displayed */ BlacklistedGiveRole null.String `` /* 135-byte string literal not displayed */ BlacklistedReceiveRole null.String `` /* 147-byte string literal not displayed */ AdminRole null.String `boil:"admin_role" json:"admin_role,omitempty" toml:"admin_role" yaml:"admin_role,omitempty"` DisableThanksDetection bool `` /* 127-byte string literal not displayed */ WhitelistedThanksChannels types.Int64Array `` /* 159-byte string literal not displayed */ BlacklistedThanksChannels types.Int64Array `` /* 159-byte string literal not displayed */ MaxRemoveAmount int64 `boil:"max_remove_amount" json:"max_remove_amount" toml:"max_remove_amount" yaml:"max_remove_amount"` AdminRoles types.Int64Array `boil:"admin_roles" json:"admin_roles,omitempty" toml:"admin_roles" yaml:"admin_roles,omitempty"` RequiredGiveRoles types.Int64Array `` /* 127-byte string literal not displayed */ RequiredReceiveRoles types.Int64Array `` /* 139-byte string literal not displayed */ BlacklistedGiveRoles types.Int64Array `` /* 139-byte string literal not displayed */ BlacklistedReceiveRoles types.Int64Array `` /* 151-byte string literal not displayed */ R *reputationConfigR `boil:"-" json:"-" toml:"-" yaml:"-"` L reputationConfigL `boil:"-" json:"-" toml:"-" yaml:"-"` }
ReputationConfig is an object representing the database table.
func FindReputationConfig ¶
func FindReputationConfig(ctx context.Context, exec boil.ContextExecutor, guildID int64, selectCols ...string) (*ReputationConfig, error)
FindReputationConfig retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindReputationConfigG ¶
func FindReputationConfigG(ctx context.Context, guildID int64, selectCols ...string) (*ReputationConfig, error)
FindReputationConfigG retrieves a single record by ID.
func (*ReputationConfig) Delete ¶
func (o *ReputationConfig) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single ReputationConfig record with an executor. Delete will match against the primary key column to find the record to delete.
func (*ReputationConfig) DeleteG ¶
func (o *ReputationConfig) DeleteG(ctx context.Context) (int64, error)
DeleteG deletes a single ReputationConfig record. DeleteG will match against the primary key column to find the record to delete.
func (*ReputationConfig) Exists ¶ added in v2.36.0
func (o *ReputationConfig) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the ReputationConfig row exists.
func (*ReputationConfig) Insert ¶
func (o *ReputationConfig) 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 (*ReputationConfig) InsertG ¶
InsertG a single record. See Insert for whitelist behavior description.
func (*ReputationConfig) Reload ¶
func (o *ReputationConfig) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*ReputationConfig) ReloadG ¶
func (o *ReputationConfig) ReloadG(ctx context.Context) error
ReloadG refetches the object from the database using the primary keys.
func (*ReputationConfig) Update ¶
func (o *ReputationConfig) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the ReputationConfig. 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 (*ReputationConfig) UpdateG ¶
UpdateG a single ReputationConfig record using the global executor. See Update for more documentation.
func (*ReputationConfig) Upsert ¶
func (o *ReputationConfig) 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 ReputationConfigSlice ¶
type ReputationConfigSlice []*ReputationConfig
ReputationConfigSlice is an alias for a slice of pointers to ReputationConfig. This should almost always be used instead of []ReputationConfig.
func (ReputationConfigSlice) DeleteAll ¶
func (o ReputationConfigSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (ReputationConfigSlice) DeleteAllG ¶
func (o ReputationConfigSlice) DeleteAllG(ctx context.Context) (int64, error)
DeleteAllG deletes all rows in the slice.
func (*ReputationConfigSlice) ReloadAll ¶
func (o *ReputationConfigSlice) 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 (*ReputationConfigSlice) ReloadAllG ¶
func (o *ReputationConfigSlice) 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 (ReputationConfigSlice) UpdateAll ¶
func (o ReputationConfigSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
func (ReputationConfigSlice) UpdateAllG ¶
UpdateAllG updates all rows with the specified column values.
type ReputationLog ¶
type ReputationLog 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"` GuildID int64 `boil:"guild_id" json:"guild_id" toml:"guild_id" yaml:"guild_id"` SenderID int64 `boil:"sender_id" json:"sender_id" toml:"sender_id" yaml:"sender_id"` ReceiverID int64 `boil:"receiver_id" json:"receiver_id" toml:"receiver_id" yaml:"receiver_id"` SetFixedAmount bool `boil:"set_fixed_amount" json:"set_fixed_amount" toml:"set_fixed_amount" yaml:"set_fixed_amount"` Amount int64 `boil:"amount" json:"amount" toml:"amount" yaml:"amount"` ReceiverUsername string `boil:"receiver_username" json:"receiver_username" toml:"receiver_username" yaml:"receiver_username"` SenderUsername string `boil:"sender_username" json:"sender_username" toml:"sender_username" yaml:"sender_username"` R *reputationLogR `boil:"-" json:"-" toml:"-" yaml:"-"` L reputationLogL `boil:"-" json:"-" toml:"-" yaml:"-"` }
ReputationLog is an object representing the database table.
func FindReputationLog ¶
func FindReputationLog(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*ReputationLog, error)
FindReputationLog retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindReputationLogG ¶
func FindReputationLogG(ctx context.Context, iD int64, selectCols ...string) (*ReputationLog, error)
FindReputationLogG retrieves a single record by ID.
func (*ReputationLog) Delete ¶
func (o *ReputationLog) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single ReputationLog record with an executor. Delete will match against the primary key column to find the record to delete.
func (*ReputationLog) DeleteG ¶
func (o *ReputationLog) DeleteG(ctx context.Context) (int64, error)
DeleteG deletes a single ReputationLog record. DeleteG will match against the primary key column to find the record to delete.
func (*ReputationLog) Exists ¶ added in v2.36.0
func (o *ReputationLog) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the ReputationLog row exists.
func (*ReputationLog) Insert ¶
func (o *ReputationLog) 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 (*ReputationLog) InsertG ¶
InsertG a single record. See Insert for whitelist behavior description.
func (*ReputationLog) Reload ¶
func (o *ReputationLog) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*ReputationLog) ReloadG ¶
func (o *ReputationLog) ReloadG(ctx context.Context) error
ReloadG refetches the object from the database using the primary keys.
func (*ReputationLog) Update ¶
func (o *ReputationLog) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the ReputationLog. 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 (*ReputationLog) UpdateG ¶
UpdateG a single ReputationLog record using the global executor. See Update for more documentation.
func (*ReputationLog) Upsert ¶
func (o *ReputationLog) 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 ReputationLogSlice ¶
type ReputationLogSlice []*ReputationLog
ReputationLogSlice is an alias for a slice of pointers to ReputationLog. This should almost always be used instead of []ReputationLog.
func (ReputationLogSlice) DeleteAll ¶
func (o ReputationLogSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (ReputationLogSlice) DeleteAllG ¶
func (o ReputationLogSlice) DeleteAllG(ctx context.Context) (int64, error)
DeleteAllG deletes all rows in the slice.
func (*ReputationLogSlice) ReloadAll ¶
func (o *ReputationLogSlice) 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 (*ReputationLogSlice) ReloadAllG ¶
func (o *ReputationLogSlice) 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 (ReputationLogSlice) UpdateAll ¶
func (o ReputationLogSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
func (ReputationLogSlice) UpdateAllG ¶
UpdateAllG updates all rows with the specified column values.
type ReputationUser ¶
type ReputationUser struct { UserID int64 `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"` GuildID int64 `boil:"guild_id" json:"guild_id" toml:"guild_id" yaml:"guild_id"` CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"` Points int64 `boil:"points" json:"points" toml:"points" yaml:"points"` R *reputationUserR `boil:"-" json:"-" toml:"-" yaml:"-"` L reputationUserL `boil:"-" json:"-" toml:"-" yaml:"-"` }
ReputationUser is an object representing the database table.
func FindReputationUser ¶
func FindReputationUser(ctx context.Context, exec boil.ContextExecutor, guildID int64, userID int64, selectCols ...string) (*ReputationUser, error)
FindReputationUser retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindReputationUserG ¶
func FindReputationUserG(ctx context.Context, guildID int64, userID int64, selectCols ...string) (*ReputationUser, error)
FindReputationUserG retrieves a single record by ID.
func (*ReputationUser) Delete ¶
func (o *ReputationUser) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single ReputationUser record with an executor. Delete will match against the primary key column to find the record to delete.
func (*ReputationUser) DeleteG ¶
func (o *ReputationUser) DeleteG(ctx context.Context) (int64, error)
DeleteG deletes a single ReputationUser record. DeleteG will match against the primary key column to find the record to delete.
func (*ReputationUser) Exists ¶ added in v2.36.0
func (o *ReputationUser) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the ReputationUser row exists.
func (*ReputationUser) Insert ¶
func (o *ReputationUser) 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 (*ReputationUser) InsertG ¶
InsertG a single record. See Insert for whitelist behavior description.
func (*ReputationUser) Reload ¶
func (o *ReputationUser) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*ReputationUser) ReloadG ¶
func (o *ReputationUser) ReloadG(ctx context.Context) error
ReloadG refetches the object from the database using the primary keys.
func (*ReputationUser) Update ¶
func (o *ReputationUser) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the ReputationUser. 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 (*ReputationUser) UpdateG ¶
UpdateG a single ReputationUser record using the global executor. See Update for more documentation.
func (*ReputationUser) Upsert ¶
func (o *ReputationUser) 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 ReputationUserSlice ¶
type ReputationUserSlice []*ReputationUser
ReputationUserSlice is an alias for a slice of pointers to ReputationUser. This should almost always be used instead of []ReputationUser.
func (ReputationUserSlice) DeleteAll ¶
func (o ReputationUserSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (ReputationUserSlice) DeleteAllG ¶
func (o ReputationUserSlice) DeleteAllG(ctx context.Context) (int64, error)
DeleteAllG deletes all rows in the slice.
func (*ReputationUserSlice) ReloadAll ¶
func (o *ReputationUserSlice) 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 (*ReputationUserSlice) ReloadAllG ¶
func (o *ReputationUserSlice) 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 (ReputationUserSlice) UpdateAll ¶
func (o ReputationUserSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
func (ReputationUserSlice) 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
}