Documentation ¶
Index ¶
- Variables
- func NewQuery(exec boil.Executor, mods ...qm.QueryMod) *queries.Query
- func NewQueryG(mods ...qm.QueryMod) *queries.Query
- func ReputationConfigExists(exec boil.Executor, guildID int64) (bool, error)
- func ReputationConfigExistsG(guildID int64) (bool, error)
- func ReputationConfigExistsGP(guildID int64) bool
- func ReputationConfigExistsP(exec boil.Executor, guildID int64) bool
- func ReputationConfigs(exec boil.Executor, mods ...qm.QueryMod) reputationConfigQuery
- func ReputationConfigsG(mods ...qm.QueryMod) reputationConfigQuery
- func ReputationLogExists(exec boil.Executor, id int64) (bool, error)
- func ReputationLogExistsG(id int64) (bool, error)
- func ReputationLogExistsGP(id int64) bool
- func ReputationLogExistsP(exec boil.Executor, id int64) bool
- func ReputationLogs(exec boil.Executor, mods ...qm.QueryMod) reputationLogQuery
- func ReputationLogsG(mods ...qm.QueryMod) reputationLogQuery
- func ReputationUserExists(exec boil.Executor, guildID int64, userID int64) (bool, error)
- func ReputationUserExistsG(guildID int64, userID int64) (bool, error)
- func ReputationUserExistsGP(guildID int64, userID int64) bool
- func ReputationUserExistsP(exec boil.Executor, guildID int64, userID int64) bool
- func ReputationUsers(exec boil.Executor, mods ...qm.QueryMod) reputationUserQuery
- func ReputationUsersG(mods ...qm.QueryMod) reputationUserQuery
- type M
- type ReputationConfig
- func FindReputationConfig(exec boil.Executor, guildID int64, selectCols ...string) (*ReputationConfig, error)
- func FindReputationConfigG(guildID int64, selectCols ...string) (*ReputationConfig, error)
- func FindReputationConfigGP(guildID int64, selectCols ...string) *ReputationConfig
- func FindReputationConfigP(exec boil.Executor, guildID int64, selectCols ...string) *ReputationConfig
- func (o *ReputationConfig) Delete(exec boil.Executor) error
- func (o *ReputationConfig) DeleteG() error
- func (o *ReputationConfig) DeleteGP()
- func (o *ReputationConfig) DeleteP(exec boil.Executor)
- func (o *ReputationConfig) Insert(exec boil.Executor, whitelist ...string) error
- func (o *ReputationConfig) InsertG(whitelist ...string) error
- func (o *ReputationConfig) InsertGP(whitelist ...string)
- func (o *ReputationConfig) InsertP(exec boil.Executor, whitelist ...string)
- func (o *ReputationConfig) Reload(exec boil.Executor) error
- func (o *ReputationConfig) ReloadG() error
- func (o *ReputationConfig) ReloadGP()
- func (o *ReputationConfig) ReloadP(exec boil.Executor)
- func (o *ReputationConfig) Update(exec boil.Executor, whitelist ...string) error
- func (o *ReputationConfig) UpdateG(whitelist ...string) error
- func (o *ReputationConfig) UpdateGP(whitelist ...string)
- func (o *ReputationConfig) UpdateP(exec boil.Executor, whitelist ...string)
- func (o *ReputationConfig) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, ...) error
- func (o *ReputationConfig) UpsertG(updateOnConflict bool, conflictColumns []string, updateColumns []string, ...) error
- func (o *ReputationConfig) UpsertGP(updateOnConflict bool, conflictColumns []string, updateColumns []string, ...)
- func (o *ReputationConfig) UpsertP(exec boil.Executor, updateOnConflict bool, conflictColumns []string, ...)
- type ReputationConfigSlice
- func (o ReputationConfigSlice) DeleteAll(exec boil.Executor) error
- func (o ReputationConfigSlice) DeleteAllG() error
- func (o ReputationConfigSlice) DeleteAllGP()
- func (o ReputationConfigSlice) DeleteAllP(exec boil.Executor)
- func (o *ReputationConfigSlice) ReloadAll(exec boil.Executor) error
- func (o *ReputationConfigSlice) ReloadAllG() error
- func (o *ReputationConfigSlice) ReloadAllGP()
- func (o *ReputationConfigSlice) ReloadAllP(exec boil.Executor)
- func (o ReputationConfigSlice) UpdateAll(exec boil.Executor, cols M) error
- func (o ReputationConfigSlice) UpdateAllG(cols M) error
- func (o ReputationConfigSlice) UpdateAllGP(cols M)
- func (o ReputationConfigSlice) UpdateAllP(exec boil.Executor, cols M)
- type ReputationLog
- func FindReputationLog(exec boil.Executor, id int64, selectCols ...string) (*ReputationLog, error)
- func FindReputationLogG(id int64, selectCols ...string) (*ReputationLog, error)
- func FindReputationLogGP(id int64, selectCols ...string) *ReputationLog
- func FindReputationLogP(exec boil.Executor, id int64, selectCols ...string) *ReputationLog
- func (o *ReputationLog) Delete(exec boil.Executor) error
- func (o *ReputationLog) DeleteG() error
- func (o *ReputationLog) DeleteGP()
- func (o *ReputationLog) DeleteP(exec boil.Executor)
- func (o *ReputationLog) Insert(exec boil.Executor, whitelist ...string) error
- func (o *ReputationLog) InsertG(whitelist ...string) error
- func (o *ReputationLog) InsertGP(whitelist ...string)
- func (o *ReputationLog) InsertP(exec boil.Executor, whitelist ...string)
- func (o *ReputationLog) Reload(exec boil.Executor) error
- func (o *ReputationLog) ReloadG() error
- func (o *ReputationLog) ReloadGP()
- func (o *ReputationLog) ReloadP(exec boil.Executor)
- func (o *ReputationLog) Update(exec boil.Executor, whitelist ...string) error
- func (o *ReputationLog) UpdateG(whitelist ...string) error
- func (o *ReputationLog) UpdateGP(whitelist ...string)
- func (o *ReputationLog) UpdateP(exec boil.Executor, whitelist ...string)
- func (o *ReputationLog) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, ...) error
- func (o *ReputationLog) UpsertG(updateOnConflict bool, conflictColumns []string, updateColumns []string, ...) error
- func (o *ReputationLog) UpsertGP(updateOnConflict bool, conflictColumns []string, updateColumns []string, ...)
- func (o *ReputationLog) UpsertP(exec boil.Executor, updateOnConflict bool, conflictColumns []string, ...)
- type ReputationLogSlice
- func (o ReputationLogSlice) DeleteAll(exec boil.Executor) error
- func (o ReputationLogSlice) DeleteAllG() error
- func (o ReputationLogSlice) DeleteAllGP()
- func (o ReputationLogSlice) DeleteAllP(exec boil.Executor)
- func (o *ReputationLogSlice) ReloadAll(exec boil.Executor) error
- func (o *ReputationLogSlice) ReloadAllG() error
- func (o *ReputationLogSlice) ReloadAllGP()
- func (o *ReputationLogSlice) ReloadAllP(exec boil.Executor)
- func (o ReputationLogSlice) UpdateAll(exec boil.Executor, cols M) error
- func (o ReputationLogSlice) UpdateAllG(cols M) error
- func (o ReputationLogSlice) UpdateAllGP(cols M)
- func (o ReputationLogSlice) UpdateAllP(exec boil.Executor, cols M)
- type ReputationUser
- func FindReputationUser(exec boil.Executor, guildID int64, userID int64, selectCols ...string) (*ReputationUser, error)
- func FindReputationUserG(guildID int64, userID int64, selectCols ...string) (*ReputationUser, error)
- func FindReputationUserGP(guildID int64, userID int64, selectCols ...string) *ReputationUser
- func FindReputationUserP(exec boil.Executor, guildID int64, userID int64, selectCols ...string) *ReputationUser
- func (o *ReputationUser) Delete(exec boil.Executor) error
- func (o *ReputationUser) DeleteG() error
- func (o *ReputationUser) DeleteGP()
- func (o *ReputationUser) DeleteP(exec boil.Executor)
- func (o *ReputationUser) Insert(exec boil.Executor, whitelist ...string) error
- func (o *ReputationUser) InsertG(whitelist ...string) error
- func (o *ReputationUser) InsertGP(whitelist ...string)
- func (o *ReputationUser) InsertP(exec boil.Executor, whitelist ...string)
- func (o *ReputationUser) Reload(exec boil.Executor) error
- func (o *ReputationUser) ReloadG() error
- func (o *ReputationUser) ReloadGP()
- func (o *ReputationUser) ReloadP(exec boil.Executor)
- func (o *ReputationUser) Update(exec boil.Executor, whitelist ...string) error
- func (o *ReputationUser) UpdateG(whitelist ...string) error
- func (o *ReputationUser) UpdateGP(whitelist ...string)
- func (o *ReputationUser) UpdateP(exec boil.Executor, whitelist ...string)
- func (o *ReputationUser) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, ...) error
- func (o *ReputationUser) UpsertG(updateOnConflict bool, conflictColumns []string, updateColumns []string, ...) error
- func (o *ReputationUser) UpsertGP(updateOnConflict bool, conflictColumns []string, updateColumns []string, ...)
- func (o *ReputationUser) UpsertP(exec boil.Executor, updateOnConflict bool, conflictColumns []string, ...)
- type ReputationUserSlice
- func (o ReputationUserSlice) DeleteAll(exec boil.Executor) error
- func (o ReputationUserSlice) DeleteAllG() error
- func (o ReputationUserSlice) DeleteAllGP()
- func (o ReputationUserSlice) DeleteAllP(exec boil.Executor)
- func (o *ReputationUserSlice) ReloadAll(exec boil.Executor) error
- func (o *ReputationUserSlice) ReloadAllG() error
- func (o *ReputationUserSlice) ReloadAllGP()
- func (o *ReputationUserSlice) ReloadAllP(exec boil.Executor)
- func (o ReputationUserSlice) UpdateAll(exec boil.Executor, cols M) error
- func (o ReputationUserSlice) UpdateAllG(cols M) error
- func (o ReputationUserSlice) UpdateAllGP(cols M)
- func (o ReputationUserSlice) UpdateAllP(exec boil.Executor, cols M)
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 }{ 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", }
var ReputationLogColumns = struct { ID string CreatedAt string GuildID string SenderID string ReceiverID string SetFixedAmount string Amount string }{ ID: "id", CreatedAt: "created_at", GuildID: "guild_id", SenderID: "sender_id", ReceiverID: "receiver_id", SetFixedAmount: "set_fixed_amount", Amount: "amount", }
var ReputationUserColumns = struct { UserID string GuildID string CreatedAt string Points string }{ UserID: "user_id", GuildID: "guild_id", CreatedAt: "created_at", Points: "points", }
var TableNames = struct { ReputationConfigs string ReputationLog string ReputationUsers string }{ ReputationConfigs: "reputation_configs", ReputationLog: "reputation_log", ReputationUsers: "reputation_users", }
Functions ¶
func ReputationConfigExists ¶
ReputationConfigExists checks if the ReputationConfig row exists.
func ReputationConfigExistsG ¶
ReputationConfigExistsG checks if the ReputationConfig row exists.
func ReputationConfigExistsGP ¶
ReputationConfigExistsGP checks if the ReputationConfig row exists. Panics on error.
func ReputationConfigExistsP ¶
ReputationConfigExistsP checks if the ReputationConfig row exists. Panics on error.
func ReputationConfigs ¶
ReputationConfigs retrieves all the records using an executor.
func ReputationConfigsG ¶
ReputationConfigsG retrieves all records.
func ReputationLogExists ¶
ReputationLogExists checks if the ReputationLog row exists.
func ReputationLogExistsG ¶
ReputationLogExistsG checks if the ReputationLog row exists.
func ReputationLogExistsGP ¶
ReputationLogExistsGP checks if the ReputationLog row exists. Panics on error.
func ReputationLogExistsP ¶
ReputationLogExistsP checks if the ReputationLog row exists. Panics on error.
func ReputationLogs ¶
ReputationLogs retrieves all the records using an executor.
func ReputationLogsG ¶
ReputationLogsG retrieves all records.
func ReputationUserExists ¶
ReputationUserExists checks if the ReputationUser row exists.
func ReputationUserExistsG ¶
ReputationUserExistsG checks if the ReputationUser row exists.
func ReputationUserExistsGP ¶
ReputationUserExistsGP checks if the ReputationUser row exists. Panics on error.
func ReputationUserExistsP ¶
ReputationUserExistsP checks if the ReputationUser row exists. Panics on error.
func ReputationUsers ¶
ReputationUsers retrieves all the records using an executor.
func ReputationUsersG ¶
ReputationUsersG retrieves all records.
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"` R *reputationConfigR `boil:"-" json:"-" toml:"-" yaml:"-"` L reputationConfigL `boil:"-" json:"-" toml:"-" yaml:"-"` }
ReputationConfig is an object representing the database table.
func FindReputationConfig ¶
func FindReputationConfig(exec boil.Executor, 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(guildID int64, selectCols ...string) (*ReputationConfig, error)
FindReputationConfigG retrieves a single record by ID.
func FindReputationConfigGP ¶
func FindReputationConfigGP(guildID int64, selectCols ...string) *ReputationConfig
FindReputationConfigGP retrieves a single record by ID, and panics on error.
func FindReputationConfigP ¶
func FindReputationConfigP(exec boil.Executor, guildID int64, selectCols ...string) *ReputationConfig
FindReputationConfigP retrieves a single record by ID with an executor, and panics on error.
func (*ReputationConfig) Delete ¶
func (o *ReputationConfig) Delete(exec boil.Executor) 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() error
DeleteG deletes a single ReputationConfig record. DeleteG will match against the primary key column to find the record to delete.
func (*ReputationConfig) DeleteGP ¶
func (o *ReputationConfig) DeleteGP()
DeleteGP deletes a single ReputationConfig record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.
func (*ReputationConfig) DeleteP ¶
func (o *ReputationConfig) DeleteP(exec boil.Executor)
DeleteP deletes a single ReputationConfig record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.
func (*ReputationConfig) Insert ¶
func (o *ReputationConfig) Insert(exec boil.Executor, whitelist ...string) error
Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)
func (*ReputationConfig) InsertG ¶
func (o *ReputationConfig) InsertG(whitelist ...string) error
InsertG a single record. See Insert for whitelist behavior description.
func (*ReputationConfig) InsertGP ¶
func (o *ReputationConfig) InsertGP(whitelist ...string)
InsertGP a single record, and panics on error. See Insert for whitelist behavior description.
func (*ReputationConfig) InsertP ¶
func (o *ReputationConfig) InsertP(exec boil.Executor, whitelist ...string)
InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.
func (*ReputationConfig) Reload ¶
func (o *ReputationConfig) Reload(exec boil.Executor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*ReputationConfig) ReloadG ¶
func (o *ReputationConfig) ReloadG() error
ReloadG refetches the object from the database using the primary keys.
func (*ReputationConfig) ReloadGP ¶
func (o *ReputationConfig) ReloadGP()
ReloadGP refetches the object from the database and panics on error.
func (*ReputationConfig) ReloadP ¶
func (o *ReputationConfig) ReloadP(exec boil.Executor)
ReloadP refetches the object from the database with an executor. Panics on error.
func (*ReputationConfig) Update ¶
func (o *ReputationConfig) Update(exec boil.Executor, whitelist ...string) error
Update uses an executor to update the ReputationConfig. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*ReputationConfig) UpdateG ¶
func (o *ReputationConfig) UpdateG(whitelist ...string) error
UpdateG a single ReputationConfig record. See Update for whitelist behavior description.
func (*ReputationConfig) UpdateGP ¶
func (o *ReputationConfig) UpdateGP(whitelist ...string)
UpdateGP a single ReputationConfig record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.
func (*ReputationConfig) UpdateP ¶
func (o *ReputationConfig) UpdateP(exec boil.Executor, whitelist ...string)
UpdateP uses an executor to update the ReputationConfig, and panics on error. See Update for whitelist behavior description.
func (*ReputationConfig) Upsert ¶
func (o *ReputationConfig) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict.
func (*ReputationConfig) UpsertG ¶
func (o *ReputationConfig) UpsertG(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error
UpsertG attempts an insert, and does an update or ignore on conflict.
type ReputationConfigSlice ¶
type ReputationConfigSlice []*ReputationConfig
ReputationConfigSlice is an alias for a slice of pointers to ReputationConfig. This should generally be used opposed to []ReputationConfig.
func (ReputationConfigSlice) DeleteAll ¶
func (o ReputationConfigSlice) DeleteAll(exec boil.Executor) error
DeleteAll deletes all rows in the slice, using an executor.
func (ReputationConfigSlice) DeleteAllG ¶
func (o ReputationConfigSlice) DeleteAllG() error
DeleteAllG deletes all rows in the slice.
func (ReputationConfigSlice) DeleteAllGP ¶
func (o ReputationConfigSlice) DeleteAllGP()
DeleteAllGP deletes all rows in the slice, and panics on error.
func (ReputationConfigSlice) DeleteAllP ¶
func (o ReputationConfigSlice) DeleteAllP(exec boil.Executor)
DeleteAllP deletes all rows in the slice, using an executor, and panics on error.
func (*ReputationConfigSlice) ReloadAll ¶
func (o *ReputationConfigSlice) ReloadAll(exec boil.Executor) 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() error
ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (*ReputationConfigSlice) ReloadAllGP ¶
func (o *ReputationConfigSlice) ReloadAllGP()
ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.
func (*ReputationConfigSlice) ReloadAllP ¶
func (o *ReputationConfigSlice) ReloadAllP(exec boil.Executor)
ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.
func (ReputationConfigSlice) UpdateAll ¶
func (o ReputationConfigSlice) UpdateAll(exec boil.Executor, cols M) error
UpdateAll updates all rows with the specified column values, using an executor.
func (ReputationConfigSlice) UpdateAllG ¶
func (o ReputationConfigSlice) UpdateAllG(cols M) error
UpdateAllG updates all rows with the specified column values.
func (ReputationConfigSlice) UpdateAllGP ¶
func (o ReputationConfigSlice) UpdateAllGP(cols M)
UpdateAllGP updates all rows with the specified column values, and panics on error.
func (ReputationConfigSlice) UpdateAllP ¶
func (o ReputationConfigSlice) UpdateAllP(exec boil.Executor, cols M)
UpdateAllP updates all rows with the specified column values, and panics on error.
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"` R *reputationLogR `boil:"-" json:"-" toml:"-" yaml:"-"` L reputationLogL `boil:"-" json:"-" toml:"-" yaml:"-"` }
ReputationLog is an object representing the database table.
func FindReputationLog ¶
FindReputationLog retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindReputationLogG ¶
func FindReputationLogG(id int64, selectCols ...string) (*ReputationLog, error)
FindReputationLogG retrieves a single record by ID.
func FindReputationLogGP ¶
func FindReputationLogGP(id int64, selectCols ...string) *ReputationLog
FindReputationLogGP retrieves a single record by ID, and panics on error.
func FindReputationLogP ¶
func FindReputationLogP(exec boil.Executor, id int64, selectCols ...string) *ReputationLog
FindReputationLogP retrieves a single record by ID with an executor, and panics on error.
func (*ReputationLog) Delete ¶
func (o *ReputationLog) Delete(exec boil.Executor) 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() error
DeleteG deletes a single ReputationLog record. DeleteG will match against the primary key column to find the record to delete.
func (*ReputationLog) DeleteGP ¶
func (o *ReputationLog) DeleteGP()
DeleteGP deletes a single ReputationLog record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.
func (*ReputationLog) DeleteP ¶
func (o *ReputationLog) DeleteP(exec boil.Executor)
DeleteP deletes a single ReputationLog record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.
func (*ReputationLog) Insert ¶
func (o *ReputationLog) Insert(exec boil.Executor, whitelist ...string) error
Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)
func (*ReputationLog) InsertG ¶
func (o *ReputationLog) InsertG(whitelist ...string) error
InsertG a single record. See Insert for whitelist behavior description.
func (*ReputationLog) InsertGP ¶
func (o *ReputationLog) InsertGP(whitelist ...string)
InsertGP a single record, and panics on error. See Insert for whitelist behavior description.
func (*ReputationLog) InsertP ¶
func (o *ReputationLog) InsertP(exec boil.Executor, whitelist ...string)
InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.
func (*ReputationLog) Reload ¶
func (o *ReputationLog) Reload(exec boil.Executor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*ReputationLog) ReloadG ¶
func (o *ReputationLog) ReloadG() error
ReloadG refetches the object from the database using the primary keys.
func (*ReputationLog) ReloadGP ¶
func (o *ReputationLog) ReloadGP()
ReloadGP refetches the object from the database and panics on error.
func (*ReputationLog) ReloadP ¶
func (o *ReputationLog) ReloadP(exec boil.Executor)
ReloadP refetches the object from the database with an executor. Panics on error.
func (*ReputationLog) Update ¶
func (o *ReputationLog) Update(exec boil.Executor, whitelist ...string) error
Update uses an executor to update the ReputationLog. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*ReputationLog) UpdateG ¶
func (o *ReputationLog) UpdateG(whitelist ...string) error
UpdateG a single ReputationLog record. See Update for whitelist behavior description.
func (*ReputationLog) UpdateGP ¶
func (o *ReputationLog) UpdateGP(whitelist ...string)
UpdateGP a single ReputationLog record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.
func (*ReputationLog) UpdateP ¶
func (o *ReputationLog) UpdateP(exec boil.Executor, whitelist ...string)
UpdateP uses an executor to update the ReputationLog, and panics on error. See Update for whitelist behavior description.
func (*ReputationLog) Upsert ¶
func (o *ReputationLog) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict.
func (*ReputationLog) UpsertG ¶
func (o *ReputationLog) UpsertG(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error
UpsertG attempts an insert, and does an update or ignore on conflict.
type ReputationLogSlice ¶
type ReputationLogSlice []*ReputationLog
ReputationLogSlice is an alias for a slice of pointers to ReputationLog. This should generally be used opposed to []ReputationLog.
func (ReputationLogSlice) DeleteAll ¶
func (o ReputationLogSlice) DeleteAll(exec boil.Executor) error
DeleteAll deletes all rows in the slice, using an executor.
func (ReputationLogSlice) DeleteAllG ¶
func (o ReputationLogSlice) DeleteAllG() error
DeleteAllG deletes all rows in the slice.
func (ReputationLogSlice) DeleteAllGP ¶
func (o ReputationLogSlice) DeleteAllGP()
DeleteAllGP deletes all rows in the slice, and panics on error.
func (ReputationLogSlice) DeleteAllP ¶
func (o ReputationLogSlice) DeleteAllP(exec boil.Executor)
DeleteAllP deletes all rows in the slice, using an executor, and panics on error.
func (*ReputationLogSlice) ReloadAll ¶
func (o *ReputationLogSlice) ReloadAll(exec boil.Executor) 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() error
ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (*ReputationLogSlice) ReloadAllGP ¶
func (o *ReputationLogSlice) ReloadAllGP()
ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.
func (*ReputationLogSlice) ReloadAllP ¶
func (o *ReputationLogSlice) ReloadAllP(exec boil.Executor)
ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.
func (ReputationLogSlice) UpdateAll ¶
func (o ReputationLogSlice) UpdateAll(exec boil.Executor, cols M) error
UpdateAll updates all rows with the specified column values, using an executor.
func (ReputationLogSlice) UpdateAllG ¶
func (o ReputationLogSlice) UpdateAllG(cols M) error
UpdateAllG updates all rows with the specified column values.
func (ReputationLogSlice) UpdateAllGP ¶
func (o ReputationLogSlice) UpdateAllGP(cols M)
UpdateAllGP updates all rows with the specified column values, and panics on error.
func (ReputationLogSlice) UpdateAllP ¶
func (o ReputationLogSlice) UpdateAllP(exec boil.Executor, cols M)
UpdateAllP updates all rows with the specified column values, and panics on error.
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(exec boil.Executor, 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(guildID int64, userID int64, selectCols ...string) (*ReputationUser, error)
FindReputationUserG retrieves a single record by ID.
func FindReputationUserGP ¶
func FindReputationUserGP(guildID int64, userID int64, selectCols ...string) *ReputationUser
FindReputationUserGP retrieves a single record by ID, and panics on error.
func FindReputationUserP ¶
func FindReputationUserP(exec boil.Executor, guildID int64, userID int64, selectCols ...string) *ReputationUser
FindReputationUserP retrieves a single record by ID with an executor, and panics on error.
func (*ReputationUser) Delete ¶
func (o *ReputationUser) Delete(exec boil.Executor) 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() error
DeleteG deletes a single ReputationUser record. DeleteG will match against the primary key column to find the record to delete.
func (*ReputationUser) DeleteGP ¶
func (o *ReputationUser) DeleteGP()
DeleteGP deletes a single ReputationUser record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.
func (*ReputationUser) DeleteP ¶
func (o *ReputationUser) DeleteP(exec boil.Executor)
DeleteP deletes a single ReputationUser record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.
func (*ReputationUser) Insert ¶
func (o *ReputationUser) Insert(exec boil.Executor, whitelist ...string) error
Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)
func (*ReputationUser) InsertG ¶
func (o *ReputationUser) InsertG(whitelist ...string) error
InsertG a single record. See Insert for whitelist behavior description.
func (*ReputationUser) InsertGP ¶
func (o *ReputationUser) InsertGP(whitelist ...string)
InsertGP a single record, and panics on error. See Insert for whitelist behavior description.
func (*ReputationUser) InsertP ¶
func (o *ReputationUser) InsertP(exec boil.Executor, whitelist ...string)
InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.
func (*ReputationUser) Reload ¶
func (o *ReputationUser) Reload(exec boil.Executor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*ReputationUser) ReloadG ¶
func (o *ReputationUser) ReloadG() error
ReloadG refetches the object from the database using the primary keys.
func (*ReputationUser) ReloadGP ¶
func (o *ReputationUser) ReloadGP()
ReloadGP refetches the object from the database and panics on error.
func (*ReputationUser) ReloadP ¶
func (o *ReputationUser) ReloadP(exec boil.Executor)
ReloadP refetches the object from the database with an executor. Panics on error.
func (*ReputationUser) Update ¶
func (o *ReputationUser) Update(exec boil.Executor, whitelist ...string) error
Update uses an executor to update the ReputationUser. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*ReputationUser) UpdateG ¶
func (o *ReputationUser) UpdateG(whitelist ...string) error
UpdateG a single ReputationUser record. See Update for whitelist behavior description.
func (*ReputationUser) UpdateGP ¶
func (o *ReputationUser) UpdateGP(whitelist ...string)
UpdateGP a single ReputationUser record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.
func (*ReputationUser) UpdateP ¶
func (o *ReputationUser) UpdateP(exec boil.Executor, whitelist ...string)
UpdateP uses an executor to update the ReputationUser, and panics on error. See Update for whitelist behavior description.
func (*ReputationUser) Upsert ¶
func (o *ReputationUser) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict.
func (*ReputationUser) UpsertG ¶
func (o *ReputationUser) UpsertG(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error
UpsertG attempts an insert, and does an update or ignore on conflict.
type ReputationUserSlice ¶
type ReputationUserSlice []*ReputationUser
ReputationUserSlice is an alias for a slice of pointers to ReputationUser. This should generally be used opposed to []ReputationUser.
func (ReputationUserSlice) DeleteAll ¶
func (o ReputationUserSlice) DeleteAll(exec boil.Executor) error
DeleteAll deletes all rows in the slice, using an executor.
func (ReputationUserSlice) DeleteAllG ¶
func (o ReputationUserSlice) DeleteAllG() error
DeleteAllG deletes all rows in the slice.
func (ReputationUserSlice) DeleteAllGP ¶
func (o ReputationUserSlice) DeleteAllGP()
DeleteAllGP deletes all rows in the slice, and panics on error.
func (ReputationUserSlice) DeleteAllP ¶
func (o ReputationUserSlice) DeleteAllP(exec boil.Executor)
DeleteAllP deletes all rows in the slice, using an executor, and panics on error.
func (*ReputationUserSlice) ReloadAll ¶
func (o *ReputationUserSlice) ReloadAll(exec boil.Executor) 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() error
ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (*ReputationUserSlice) ReloadAllGP ¶
func (o *ReputationUserSlice) ReloadAllGP()
ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.
func (*ReputationUserSlice) ReloadAllP ¶
func (o *ReputationUserSlice) ReloadAllP(exec boil.Executor)
ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.
func (ReputationUserSlice) UpdateAll ¶
func (o ReputationUserSlice) UpdateAll(exec boil.Executor, cols M) error
UpdateAll updates all rows with the specified column values, using an executor.
func (ReputationUserSlice) UpdateAllG ¶
func (o ReputationUserSlice) UpdateAllG(cols M) error
UpdateAllG updates all rows with the specified column values.
func (ReputationUserSlice) UpdateAllGP ¶
func (o ReputationUserSlice) UpdateAllGP(cols M)
UpdateAllGP updates all rows with the specified column values, and panics on error.
func (ReputationUserSlice) UpdateAllP ¶
func (o ReputationUserSlice) UpdateAllP(exec boil.Executor, cols M)
UpdateAllP updates all rows with the specified column values, and panics on error.