Documentation ¶
Index ¶
- Variables
- func NewQuery(mods ...qm.QueryMod) *queries.Query
- func RedditFeedExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func RedditFeedExistsG(ctx context.Context, iD int64) (bool, error)
- func RedditFeeds(mods ...qm.QueryMod) redditFeedQuery
- type M
- type RedditFeed
- func (o *RedditFeed) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *RedditFeed) DeleteG(ctx context.Context) (int64, error)
- func (o *RedditFeed) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *RedditFeed) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *RedditFeed) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *RedditFeed) ReloadG(ctx context.Context) error
- func (o *RedditFeed) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *RedditFeed) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *RedditFeed) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *RedditFeed) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- type RedditFeedSlice
- func (o RedditFeedSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o RedditFeedSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *RedditFeedSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *RedditFeedSlice) ReloadAllG(ctx context.Context) error
- func (o RedditFeedSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o RedditFeedSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
Constants ¶
This section is empty.
Variables ¶
var ErrSyncFail = errors.New("models: failed to synchronize data after insert")
ErrSyncFail occurs during insert when the record could not be retrieved in order to populate default value information. This usually happens when LastInsertId fails or there was a primary key configuration that was not resolvable.
var RedditFeedColumns = struct { ID string GuildID string ChannelID string Subreddit string FilterNSFW string MinUpvotes string UseEmbeds string Slow string Disabled string }{ ID: "id", GuildID: "guild_id", ChannelID: "channel_id", Subreddit: "subreddit", FilterNSFW: "filter_nsfw", MinUpvotes: "min_upvotes", UseEmbeds: "use_embeds", Slow: "slow", Disabled: "disabled", }
var RedditFeedRels = struct {
}{}
RedditFeedRels is where relationship names are stored.
var RedditFeedWhere = struct { ID whereHelperint64 GuildID whereHelperint64 ChannelID whereHelperint64 Subreddit whereHelperstring FilterNSFW whereHelperint MinUpvotes whereHelperint UseEmbeds whereHelperbool Slow whereHelperbool Disabled whereHelperbool }{ ID: whereHelperint64{/* contains filtered or unexported fields */}, GuildID: whereHelperint64{/* contains filtered or unexported fields */}, ChannelID: whereHelperint64{/* contains filtered or unexported fields */}, Subreddit: whereHelperstring{/* contains filtered or unexported fields */}, FilterNSFW: whereHelperint{/* contains filtered or unexported fields */}, MinUpvotes: whereHelperint{/* contains filtered or unexported fields */}, UseEmbeds: whereHelperbool{/* contains filtered or unexported fields */}, Slow: whereHelperbool{/* contains filtered or unexported fields */}, Disabled: whereHelperbool{/* contains filtered or unexported fields */}, }
var TableNames = struct { RedditFeeds string }{ RedditFeeds: "reddit_feeds", }
Functions ¶
func RedditFeedExists ¶
RedditFeedExists checks if the RedditFeed row exists.
func RedditFeedExistsG ¶
RedditFeedExistsG checks if the RedditFeed row exists.
func RedditFeeds ¶
RedditFeeds 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 RedditFeed ¶
type RedditFeed struct { ID int64 `boil:"id" json:"id" toml:"id" yaml:"id"` GuildID int64 `boil:"guild_id" json:"guild_id" toml:"guild_id" yaml:"guild_id"` ChannelID int64 `boil:"channel_id" json:"channel_id" toml:"channel_id" yaml:"channel_id"` Subreddit string `boil:"subreddit" json:"subreddit" toml:"subreddit" yaml:"subreddit"` FilterNSFW int `boil:"filter_nsfw" json:"filter_nsfw" toml:"filter_nsfw" yaml:"filter_nsfw"` MinUpvotes int `boil:"min_upvotes" json:"min_upvotes" toml:"min_upvotes" yaml:"min_upvotes"` UseEmbeds bool `boil:"use_embeds" json:"use_embeds" toml:"use_embeds" yaml:"use_embeds"` Slow bool `boil:"slow" json:"slow" toml:"slow" yaml:"slow"` Disabled bool `boil:"disabled" json:"disabled" toml:"disabled" yaml:"disabled"` R *redditFeedR `boil:"-" json:"-" toml:"-" yaml:"-"` L redditFeedL `boil:"-" json:"-" toml:"-" yaml:"-"` }
RedditFeed is an object representing the database table.
func FindRedditFeed ¶
func FindRedditFeed(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*RedditFeed, error)
FindRedditFeed retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindRedditFeedG ¶
FindRedditFeedG retrieves a single record by ID.
func (*RedditFeed) Delete ¶
func (o *RedditFeed) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single RedditFeed record with an executor. Delete will match against the primary key column to find the record to delete.
func (*RedditFeed) DeleteG ¶
func (o *RedditFeed) DeleteG(ctx context.Context) (int64, error)
DeleteG deletes a single RedditFeed record. DeleteG will match against the primary key column to find the record to delete.
func (*RedditFeed) Insert ¶
func (o *RedditFeed) 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 (*RedditFeed) InsertG ¶
InsertG a single record. See Insert for whitelist behavior description.
func (*RedditFeed) Reload ¶
func (o *RedditFeed) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*RedditFeed) ReloadG ¶
func (o *RedditFeed) ReloadG(ctx context.Context) error
ReloadG refetches the object from the database using the primary keys.
func (*RedditFeed) Update ¶
func (o *RedditFeed) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the RedditFeed. 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 (*RedditFeed) UpdateG ¶
UpdateG a single RedditFeed record using the global executor. See Update for more documentation.
func (*RedditFeed) Upsert ¶
func (o *RedditFeed) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type RedditFeedSlice ¶
type RedditFeedSlice []*RedditFeed
RedditFeedSlice is an alias for a slice of pointers to RedditFeed. This should generally be used opposed to []RedditFeed.
func (RedditFeedSlice) DeleteAll ¶
func (o RedditFeedSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (RedditFeedSlice) DeleteAllG ¶
func (o RedditFeedSlice) DeleteAllG(ctx context.Context) (int64, error)
DeleteAllG deletes all rows in the slice.
func (*RedditFeedSlice) ReloadAll ¶
func (o *RedditFeedSlice) 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 (*RedditFeedSlice) ReloadAllG ¶
func (o *RedditFeedSlice) 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 (RedditFeedSlice) UpdateAll ¶
func (o RedditFeedSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
func (RedditFeedSlice) UpdateAllG ¶
UpdateAllG updates all rows with the specified column values.