models

package
v0.0.0-...-3f13264 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DiscordTokenColumns = struct {
	ID           string
	UserID       string
	AccessToken  string
	RefreshToken string
	Expiry       string
	TokenType    string
	CreatedAt    string
	UpdatedAt    string
}{
	ID:           "id",
	UserID:       "user_id",
	AccessToken:  "access_token",
	RefreshToken: "refresh_token",
	Expiry:       "expiry",
	TokenType:    "token_type",
	CreatedAt:    "created_at",
	UpdatedAt:    "updated_at",
}
View Source
var DiscordTokenRels = struct {
}{}

DiscordTokenRels is where relationship names are stored.

View Source
var DiscordTokenTableColumns = struct {
	ID           string
	UserID       string
	AccessToken  string
	RefreshToken string
	Expiry       string
	TokenType    string
	CreatedAt    string
	UpdatedAt    string
}{
	ID:           "discord_tokens.id",
	UserID:       "discord_tokens.user_id",
	AccessToken:  "discord_tokens.access_token",
	RefreshToken: "discord_tokens.refresh_token",
	Expiry:       "discord_tokens.expiry",
	TokenType:    "discord_tokens.token_type",
	CreatedAt:    "discord_tokens.created_at",
	UpdatedAt:    "discord_tokens.updated_at",
}
View Source
var DiscordTokenWhere = struct {
	ID           whereHelperint64
	UserID       whereHelperstring
	AccessToken  whereHelperstring
	RefreshToken whereHelperstring
	Expiry       whereHelpertime_Time
	TokenType    whereHelperstring
	CreatedAt    whereHelpertime_Time
	UpdatedAt    whereHelpertime_Time
}{
	ID:           whereHelperint64{/* contains filtered or unexported fields */},
	UserID:       whereHelperstring{/* contains filtered or unexported fields */},
	AccessToken:  whereHelperstring{/* contains filtered or unexported fields */},
	RefreshToken: whereHelperstring{/* contains filtered or unexported fields */},
	Expiry:       whereHelpertime_Time{/* contains filtered or unexported fields */},
	TokenType:    whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt:    whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:    whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var EgoraptorMentionColumns = struct {
	ID        string
	GuildID   string
	UserID    string
	Count     string
	CreatedAt string
	UpdatedAt string
}{
	ID:        "id",
	GuildID:   "guild_id",
	UserID:    "user_id",
	Count:     "count",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
}
View Source
var EgoraptorMentionRels = struct {
}{}

EgoraptorMentionRels is where relationship names are stored.

View Source
var EgoraptorMentionTableColumns = struct {
	ID        string
	GuildID   string
	UserID    string
	Count     string
	CreatedAt string
	UpdatedAt string
}{
	ID:        "egoraptor_mentions.id",
	GuildID:   "egoraptor_mentions.guild_id",
	UserID:    "egoraptor_mentions.user_id",
	Count:     "egoraptor_mentions.count",
	CreatedAt: "egoraptor_mentions.created_at",
	UpdatedAt: "egoraptor_mentions.updated_at",
}
View Source
var EgoraptorMentionWhere = struct {
	ID        whereHelperint64
	GuildID   whereHelperstring
	UserID    whereHelperstring
	Count     whereHelperint
	CreatedAt whereHelpertime_Time
	UpdatedAt whereHelpertime_Time
}{
	ID:        whereHelperint64{/* contains filtered or unexported fields */},
	GuildID:   whereHelperstring{/* contains filtered or unexported fields */},
	UserID:    whereHelperstring{/* contains filtered or unexported fields */},
	Count:     whereHelperint{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var EgoraptorSettingColumns = struct {
	ID               string
	GuildID          string
	LastTimestamp    string
	LastUser         string
	Count            string
	TimeoutOnMention string
	TimeoutLength    string
	CreatedAt        string
	UpdatedAt        string
}{
	ID:               "id",
	GuildID:          "guild_id",
	LastTimestamp:    "last_timestamp",
	LastUser:         "last_user",
	Count:            "count",
	TimeoutOnMention: "timeout_on_mention",
	TimeoutLength:    "timeout_length",
	CreatedAt:        "created_at",
	UpdatedAt:        "updated_at",
}
View Source
var EgoraptorSettingRels = struct {
}{}

EgoraptorSettingRels is where relationship names are stored.

View Source
var EgoraptorSettingTableColumns = struct {
	ID               string
	GuildID          string
	LastTimestamp    string
	LastUser         string
	Count            string
	TimeoutOnMention string
	TimeoutLength    string
	CreatedAt        string
	UpdatedAt        string
}{
	ID:               "egoraptor_settings.id",
	GuildID:          "egoraptor_settings.guild_id",
	LastTimestamp:    "egoraptor_settings.last_timestamp",
	LastUser:         "egoraptor_settings.last_user",
	Count:            "egoraptor_settings.count",
	TimeoutOnMention: "egoraptor_settings.timeout_on_mention",
	TimeoutLength:    "egoraptor_settings.timeout_length",
	CreatedAt:        "egoraptor_settings.created_at",
	UpdatedAt:        "egoraptor_settings.updated_at",
}
View Source
var EgoraptorSettingWhere = struct {
	ID               whereHelperint64
	GuildID          whereHelperstring
	LastTimestamp    whereHelpertime_Time
	LastUser         whereHelperstring
	Count            whereHelperint
	TimeoutOnMention whereHelperbool
	TimeoutLength    whereHelperint
	CreatedAt        whereHelpertime_Time
	UpdatedAt        whereHelpertime_Time
}{
	ID:               whereHelperint64{/* contains filtered or unexported fields */},
	GuildID:          whereHelperstring{/* contains filtered or unexported fields */},
	LastTimestamp:    whereHelpertime_Time{/* contains filtered or unexported fields */},
	LastUser:         whereHelperstring{/* contains filtered or unexported fields */},
	Count:            whereHelperint{/* contains filtered or unexported fields */},
	TimeoutOnMention: whereHelperbool{/* contains filtered or unexported fields */},
	TimeoutLength:    whereHelperint{/* contains filtered or unexported fields */},
	CreatedAt:        whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:        whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
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.

View Source
var GuildColumns = struct {
	ID                      string
	GuildID                 string
	GuildName               string
	DoQuotes                string
	CreatedAt               string
	UpdatedAt               string
	QuotesRequiredReactions string
}{
	ID:                      "id",
	GuildID:                 "guild_id",
	GuildName:               "guild_name",
	DoQuotes:                "do_quotes",
	CreatedAt:               "created_at",
	UpdatedAt:               "updated_at",
	QuotesRequiredReactions: "quotes_required_reactions",
}
View Source
var GuildRels = struct {
}{}

GuildRels is where relationship names are stored.

View Source
var GuildTableColumns = struct {
	ID                      string
	GuildID                 string
	GuildName               string
	DoQuotes                string
	CreatedAt               string
	UpdatedAt               string
	QuotesRequiredReactions string
}{
	ID:                      "guilds.id",
	GuildID:                 "guilds.guild_id",
	GuildName:               "guilds.guild_name",
	DoQuotes:                "guilds.do_quotes",
	CreatedAt:               "guilds.created_at",
	UpdatedAt:               "guilds.updated_at",
	QuotesRequiredReactions: "guilds.quotes_required_reactions",
}
View Source
var GuildWhere = struct {
	ID                      whereHelperint64
	GuildID                 whereHelperstring
	GuildName               whereHelperstring
	DoQuotes                whereHelperbool
	CreatedAt               whereHelpertime_Time
	UpdatedAt               whereHelpertime_Time
	QuotesRequiredReactions whereHelpernull_Int
}{
	ID:                      whereHelperint64{/* contains filtered or unexported fields */},
	GuildID:                 whereHelperstring{/* contains filtered or unexported fields */},
	GuildName:               whereHelperstring{/* contains filtered or unexported fields */},
	DoQuotes:                whereHelperbool{/* contains filtered or unexported fields */},
	CreatedAt:               whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:               whereHelpertime_Time{/* contains filtered or unexported fields */},
	QuotesRequiredReactions: whereHelpernull_Int{/* contains filtered or unexported fields */},
}
View Source
var QuoteColumns = struct {
	ID             string
	Quote          string
	Num            string
	QuoterID       string
	QuotedID       string
	QuotedUsername string
	GuildID        string
	ChannelID      string
	MessageID      string
	CreatedAt      string
	UpdatedAt      string
}{
	ID:             "id",
	Quote:          "quote",
	Num:            "num",
	QuoterID:       "quoter_id",
	QuotedID:       "quoted_id",
	QuotedUsername: "quoted_username",
	GuildID:        "guild_id",
	ChannelID:      "channel_id",
	MessageID:      "message_id",
	CreatedAt:      "created_at",
	UpdatedAt:      "updated_at",
}
View Source
var QuoteRels = struct {
}{}

QuoteRels is where relationship names are stored.

View Source
var QuoteTableColumns = struct {
	ID             string
	Quote          string
	Num            string
	QuoterID       string
	QuotedID       string
	QuotedUsername string
	GuildID        string
	ChannelID      string
	MessageID      string
	CreatedAt      string
	UpdatedAt      string
}{
	ID:             "quotes.id",
	Quote:          "quotes.quote",
	Num:            "quotes.num",
	QuoterID:       "quotes.quoter_id",
	QuotedID:       "quotes.quoted_id",
	QuotedUsername: "quotes.quoted_username",
	GuildID:        "quotes.guild_id",
	ChannelID:      "quotes.channel_id",
	MessageID:      "quotes.message_id",
	CreatedAt:      "quotes.created_at",
	UpdatedAt:      "quotes.updated_at",
}
View Source
var QuoteWhere = struct {
	ID             whereHelperint64
	Quote          whereHelperstring
	Num            whereHelperint
	QuoterID       whereHelpernull_String
	QuotedID       whereHelperstring
	QuotedUsername whereHelperstring
	GuildID        whereHelperstring
	ChannelID      whereHelperstring
	MessageID      whereHelperstring
	CreatedAt      whereHelpertime_Time
	UpdatedAt      whereHelpertime_Time
}{
	ID:             whereHelperint64{/* contains filtered or unexported fields */},
	Quote:          whereHelperstring{/* contains filtered or unexported fields */},
	Num:            whereHelperint{/* contains filtered or unexported fields */},
	QuoterID:       whereHelpernull_String{/* contains filtered or unexported fields */},
	QuotedID:       whereHelperstring{/* contains filtered or unexported fields */},
	QuotedUsername: whereHelperstring{/* contains filtered or unexported fields */},
	GuildID:        whereHelperstring{/* contains filtered or unexported fields */},
	ChannelID:      whereHelperstring{/* contains filtered or unexported fields */},
	MessageID:      whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt:      whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:      whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var RoleColumns = struct {
	ID        string
	RoleID    string
	GuildID   string
	CreatedAt string
	UpdatedAt string
	RoleName  string
}{
	ID:        "id",
	RoleID:    "role_id",
	GuildID:   "guild_id",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
	RoleName:  "role_name",
}
View Source
var RoleRels = struct {
}{}

RoleRels is where relationship names are stored.

View Source
var RoleTableColumns = struct {
	ID        string
	RoleID    string
	GuildID   string
	CreatedAt string
	UpdatedAt string
	RoleName  string
}{
	ID:        "roles.id",
	RoleID:    "roles.role_id",
	GuildID:   "roles.guild_id",
	CreatedAt: "roles.created_at",
	UpdatedAt: "roles.updated_at",
	RoleName:  "roles.role_name",
}
View Source
var RoleUpdaterColumns = struct {
	ID            string
	GuildID       string
	DoUpdates     string
	LastTimestamp string
	CreatedAt     string
	UpdatedAt     string
}{
	ID:            "id",
	GuildID:       "guild_id",
	DoUpdates:     "do_updates",
	LastTimestamp: "last_timestamp",
	CreatedAt:     "created_at",
	UpdatedAt:     "updated_at",
}
View Source
var RoleUpdaterRels = struct {
}{}

RoleUpdaterRels is where relationship names are stored.

View Source
var RoleUpdaterTableColumns = struct {
	ID            string
	GuildID       string
	DoUpdates     string
	LastTimestamp string
	CreatedAt     string
	UpdatedAt     string
}{
	ID:            "role_updater.id",
	GuildID:       "role_updater.guild_id",
	DoUpdates:     "role_updater.do_updates",
	LastTimestamp: "role_updater.last_timestamp",
	CreatedAt:     "role_updater.created_at",
	UpdatedAt:     "role_updater.updated_at",
}
View Source
var RoleUpdaterWhere = struct {
	ID            whereHelperint64
	GuildID       whereHelperstring
	DoUpdates     whereHelperbool
	LastTimestamp whereHelpertime_Time
	CreatedAt     whereHelpertime_Time
	UpdatedAt     whereHelpertime_Time
}{
	ID:            whereHelperint64{/* contains filtered or unexported fields */},
	GuildID:       whereHelperstring{/* contains filtered or unexported fields */},
	DoUpdates:     whereHelperbool{/* contains filtered or unexported fields */},
	LastTimestamp: whereHelpertime_Time{/* contains filtered or unexported fields */},
	CreatedAt:     whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:     whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var RoleWhere = struct {
	ID        whereHelperint64
	RoleID    whereHelperstring
	GuildID   whereHelperstring
	CreatedAt whereHelpertime_Time
	UpdatedAt whereHelpertime_Time
	RoleName  whereHelpernull_String
}{
	ID:        whereHelperint64{/* contains filtered or unexported fields */},
	RoleID:    whereHelperstring{/* contains filtered or unexported fields */},
	GuildID:   whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	RoleName:  whereHelpernull_String{/* contains filtered or unexported fields */},
}
View Source
var SessionColumns = struct {
	ID     string
	Token  string
	Data   string
	Expiry string
}{
	ID:     "id",
	Token:  "token",
	Data:   "data",
	Expiry: "expiry",
}
View Source
var SessionRels = struct {
}{}

SessionRels is where relationship names are stored.

View Source
var SessionTableColumns = struct {
	ID     string
	Token  string
	Data   string
	Expiry string
}{
	ID:     "sessions.id",
	Token:  "sessions.token",
	Data:   "sessions.data",
	Expiry: "sessions.expiry",
}
View Source
var SessionWhere = struct {
	ID     whereHelperint64
	Token  whereHelperstring
	Data   whereHelper__byte
	Expiry whereHelpertime_Time
}{
	ID:     whereHelperint64{/* contains filtered or unexported fields */},
	Token:  whereHelperstring{/* contains filtered or unexported fields */},
	Data:   whereHelper__byte{/* contains filtered or unexported fields */},
	Expiry: whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var TableNames = struct {
	DiscordTokens     string
	EgoraptorMentions string
	EgoraptorSettings string
	Guilds            string
	Quotes            string
	RoleUpdater       string
	Roles             string
	Sessions          string
	Tags              string
	UserProfiles      string
}{
	DiscordTokens:     "discord_tokens",
	EgoraptorMentions: "egoraptor_mentions",
	EgoraptorSettings: "egoraptor_settings",
	Guilds:            "guilds",
	Quotes:            "quotes",
	RoleUpdater:       "role_updater",
	Roles:             "roles",
	Sessions:          "sessions",
	Tags:              "tags",
	UserProfiles:      "user_profiles",
}
View Source
var TagColumns = struct {
	ID        string
	GuildID   string
	CreatorID string
	Editor    string
	Trigger   string
	Content   string
	CreatedAt string
	UpdatedAt string
}{
	ID:        "id",
	GuildID:   "guild_id",
	CreatorID: "creator_id",
	Editor:    "editor",
	Trigger:   "trigger",
	Content:   "content",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
}
View Source
var TagRels = struct {
}{}

TagRels is where relationship names are stored.

View Source
var TagTableColumns = struct {
	ID        string
	GuildID   string
	CreatorID string
	Editor    string
	Trigger   string
	Content   string
	CreatedAt string
	UpdatedAt string
}{
	ID:        "tags.id",
	GuildID:   "tags.guild_id",
	CreatorID: "tags.creator_id",
	Editor:    "tags.editor",
	Trigger:   "tags.trigger",
	Content:   "tags.content",
	CreatedAt: "tags.created_at",
	UpdatedAt: "tags.updated_at",
}
View Source
var TagWhere = struct {
	ID        whereHelperint64
	GuildID   whereHelperstring
	CreatorID whereHelperstring
	Editor    whereHelperstring
	Trigger   whereHelperstring
	Content   whereHelperstring
	CreatedAt whereHelpertime_Time
	UpdatedAt whereHelpertime_Time
}{
	ID:        whereHelperint64{/* contains filtered or unexported fields */},
	GuildID:   whereHelperstring{/* contains filtered or unexported fields */},
	CreatorID: whereHelperstring{/* contains filtered or unexported fields */},
	Editor:    whereHelperstring{/* contains filtered or unexported fields */},
	Trigger:   whereHelperstring{/* contains filtered or unexported fields */},
	Content:   whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var UserProfileColumns = struct {
	ID        string
	UserID    string
	Timezone  string
	CreatedAt string
	UpdatedAt string
}{
	ID:        "id",
	UserID:    "user_id",
	Timezone:  "timezone",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
}
View Source
var UserProfileRels = struct {
}{}

UserProfileRels is where relationship names are stored.

View Source
var UserProfileTableColumns = struct {
	ID        string
	UserID    string
	Timezone  string
	CreatedAt string
	UpdatedAt string
}{
	ID:        "user_profiles.id",
	UserID:    "user_profiles.user_id",
	Timezone:  "user_profiles.timezone",
	CreatedAt: "user_profiles.created_at",
	UpdatedAt: "user_profiles.updated_at",
}
View Source
var UserProfileWhere = struct {
	ID        whereHelperint64
	UserID    whereHelperstring
	Timezone  whereHelpernull_String
	CreatedAt whereHelpertime_Time
	UpdatedAt whereHelpertime_Time
}{
	ID:        whereHelperint64{/* contains filtered or unexported fields */},
	UserID:    whereHelperstring{/* contains filtered or unexported fields */},
	Timezone:  whereHelpernull_String{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var ViewNames = struct {
}{}

Functions

func DiscordTokenExists

func DiscordTokenExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)

DiscordTokenExists checks if the DiscordToken row exists.

func DiscordTokens

func DiscordTokens(mods ...qm.QueryMod) discordTokenQuery

DiscordTokens retrieves all the records using an executor.

func EgoraptorMentionExists

func EgoraptorMentionExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)

EgoraptorMentionExists checks if the EgoraptorMention row exists.

func EgoraptorMentions

func EgoraptorMentions(mods ...qm.QueryMod) egoraptorMentionQuery

EgoraptorMentions retrieves all the records using an executor.

func EgoraptorSettingExists

func EgoraptorSettingExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)

EgoraptorSettingExists checks if the EgoraptorSetting row exists.

func EgoraptorSettings

func EgoraptorSettings(mods ...qm.QueryMod) egoraptorSettingQuery

EgoraptorSettings retrieves all the records using an executor.

func GuildExists

func GuildExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)

GuildExists checks if the Guild row exists.

func Guilds

func Guilds(mods ...qm.QueryMod) guildQuery

Guilds retrieves all the records using an executor.

func NewQuery

func NewQuery(mods ...qm.QueryMod) *queries.Query

NewQuery initializes a new Query using the passed in QueryMods

func QuoteExists

func QuoteExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)

QuoteExists checks if the Quote row exists.

func Quotes

func Quotes(mods ...qm.QueryMod) quoteQuery

Quotes retrieves all the records using an executor.

func RoleExists

func RoleExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)

RoleExists checks if the Role row exists.

func RoleUpdaterExists

func RoleUpdaterExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)

RoleUpdaterExists checks if the RoleUpdater row exists.

func RoleUpdaters

func RoleUpdaters(mods ...qm.QueryMod) roleUpdaterQuery

RoleUpdaters retrieves all the records using an executor.

func Roles

func Roles(mods ...qm.QueryMod) roleQuery

Roles retrieves all the records using an executor.

func SessionExists

func SessionExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)

SessionExists checks if the Session row exists.

func Sessions

func Sessions(mods ...qm.QueryMod) sessionQuery

Sessions retrieves all the records using an executor.

func TagExists

func TagExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)

TagExists checks if the Tag row exists.

func Tags

func Tags(mods ...qm.QueryMod) tagQuery

Tags retrieves all the records using an executor.

func UserProfileExists

func UserProfileExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)

UserProfileExists checks if the UserProfile row exists.

func UserProfiles

func UserProfiles(mods ...qm.QueryMod) userProfileQuery

UserProfiles retrieves all the records using an executor.

Types

type DiscordToken

type DiscordToken struct {
	ID           int64     `boil:"id" json:"id" toml:"id" yaml:"id"`
	UserID       string    `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"`
	AccessToken  string    `boil:"access_token" json:"access_token" toml:"access_token" yaml:"access_token"`
	RefreshToken string    `boil:"refresh_token" json:"refresh_token" toml:"refresh_token" yaml:"refresh_token"`
	Expiry       time.Time `boil:"expiry" json:"expiry" toml:"expiry" yaml:"expiry"`
	TokenType    string    `boil:"token_type" json:"token_type" toml:"token_type" yaml:"token_type"`
	CreatedAt    time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt    time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`

	R *discordTokenR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L discordTokenL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

DiscordToken is an object representing the database table.

func FindDiscordToken

func FindDiscordToken(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*DiscordToken, error)

FindDiscordToken retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*DiscordToken) Delete

func (o *DiscordToken) Delete(ctx context.Context, exec boil.ContextExecutor) error

Delete deletes a single DiscordToken record with an executor. Delete will match against the primary key column to find the record to delete.

func (*DiscordToken) Exists

func (o *DiscordToken) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the DiscordToken row exists.

func (*DiscordToken) Insert

func (o *DiscordToken) 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 (*DiscordToken) Reload

func (o *DiscordToken) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*DiscordToken) Update

func (o *DiscordToken) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Update uses an executor to update the DiscordToken. 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 (*DiscordToken) Upsert

func (o *DiscordToken) 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 DiscordTokenSlice

type DiscordTokenSlice []*DiscordToken

DiscordTokenSlice is an alias for a slice of pointers to DiscordToken. This should almost always be used instead of []DiscordToken.

func (DiscordTokenSlice) DeleteAll

func (o DiscordTokenSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) error

DeleteAll deletes all rows in the slice, using an executor.

func (*DiscordTokenSlice) ReloadAll

func (o *DiscordTokenSlice) 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 (DiscordTokenSlice) UpdateAll

func (o DiscordTokenSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) error

UpdateAll updates all rows with the specified column values, using an executor.

type EgoraptorMention

type EgoraptorMention struct {
	ID        int64     `boil:"id" json:"id" toml:"id" yaml:"id"`
	GuildID   string    `boil:"guild_id" json:"guild_id" toml:"guild_id" yaml:"guild_id"`
	UserID    string    `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"`
	Count     int       `boil:"count" json:"count" toml:"count" yaml:"count"`
	CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`

	R *egoraptorMentionR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L egoraptorMentionL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

EgoraptorMention is an object representing the database table.

func FindEgoraptorMention

func FindEgoraptorMention(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*EgoraptorMention, error)

FindEgoraptorMention retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*EgoraptorMention) Delete

Delete deletes a single EgoraptorMention record with an executor. Delete will match against the primary key column to find the record to delete.

func (*EgoraptorMention) Exists

func (o *EgoraptorMention) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the EgoraptorMention row exists.

func (*EgoraptorMention) Insert

func (o *EgoraptorMention) 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 (*EgoraptorMention) Reload

Reload refetches the object from the database using the primary keys with an executor.

func (*EgoraptorMention) Update

func (o *EgoraptorMention) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Update uses an executor to update the EgoraptorMention. 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 (*EgoraptorMention) Upsert

func (o *EgoraptorMention) 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 EgoraptorMentionSlice

type EgoraptorMentionSlice []*EgoraptorMention

EgoraptorMentionSlice is an alias for a slice of pointers to EgoraptorMention. This should almost always be used instead of []EgoraptorMention.

func (EgoraptorMentionSlice) DeleteAll

DeleteAll deletes all rows in the slice, using an executor.

func (*EgoraptorMentionSlice) ReloadAll

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (EgoraptorMentionSlice) UpdateAll

func (o EgoraptorMentionSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) error

UpdateAll updates all rows with the specified column values, using an executor.

type EgoraptorSetting

type EgoraptorSetting struct {
	ID               int64     `boil:"id" json:"id" toml:"id" yaml:"id"`
	GuildID          string    `boil:"guild_id" json:"guild_id" toml:"guild_id" yaml:"guild_id"`
	LastTimestamp    time.Time `boil:"last_timestamp" json:"last_timestamp" toml:"last_timestamp" yaml:"last_timestamp"`
	LastUser         string    `boil:"last_user" json:"last_user" toml:"last_user" yaml:"last_user"`
	Count            int       `boil:"count" json:"count" toml:"count" yaml:"count"`
	TimeoutOnMention bool      `boil:"timeout_on_mention" json:"timeout_on_mention" toml:"timeout_on_mention" yaml:"timeout_on_mention"`
	TimeoutLength    int       `boil:"timeout_length" json:"timeout_length" toml:"timeout_length" yaml:"timeout_length"`
	CreatedAt        time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt        time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`

	R *egoraptorSettingR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L egoraptorSettingL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

EgoraptorSetting is an object representing the database table.

func FindEgoraptorSetting

func FindEgoraptorSetting(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*EgoraptorSetting, error)

FindEgoraptorSetting retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*EgoraptorSetting) Delete

Delete deletes a single EgoraptorSetting record with an executor. Delete will match against the primary key column to find the record to delete.

func (*EgoraptorSetting) Exists

func (o *EgoraptorSetting) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the EgoraptorSetting row exists.

func (*EgoraptorSetting) Insert

func (o *EgoraptorSetting) 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 (*EgoraptorSetting) Reload

Reload refetches the object from the database using the primary keys with an executor.

func (*EgoraptorSetting) Update

func (o *EgoraptorSetting) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Update uses an executor to update the EgoraptorSetting. 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 (*EgoraptorSetting) Upsert

func (o *EgoraptorSetting) 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 EgoraptorSettingSlice

type EgoraptorSettingSlice []*EgoraptorSetting

EgoraptorSettingSlice is an alias for a slice of pointers to EgoraptorSetting. This should almost always be used instead of []EgoraptorSetting.

func (EgoraptorSettingSlice) DeleteAll

DeleteAll deletes all rows in the slice, using an executor.

func (*EgoraptorSettingSlice) ReloadAll

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (EgoraptorSettingSlice) UpdateAll

func (o EgoraptorSettingSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) error

UpdateAll updates all rows with the specified column values, using an executor.

type Guild

type Guild struct {
	ID                      int64     `boil:"id" json:"id" toml:"id" yaml:"id"`
	GuildID                 string    `boil:"guild_id" json:"guild_id" toml:"guild_id" yaml:"guild_id"`
	GuildName               string    `boil:"guild_name" json:"guild_name" toml:"guild_name" yaml:"guild_name"`
	DoQuotes                bool      `boil:"do_quotes" json:"do_quotes" toml:"do_quotes" yaml:"do_quotes"`
	CreatedAt               time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt               time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
	QuotesRequiredReactions null.Int  `` /* 151-byte string literal not displayed */

	R *guildR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L guildL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Guild is an object representing the database table.

func FindGuild

func FindGuild(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*Guild, error)

FindGuild retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*Guild) Delete

func (o *Guild) Delete(ctx context.Context, exec boil.ContextExecutor) error

Delete deletes a single Guild record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Guild) Exists

func (o *Guild) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the Guild row exists.

func (*Guild) Insert

func (o *Guild) 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 (*Guild) Reload

func (o *Guild) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Guild) Update

func (o *Guild) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Update uses an executor to update the Guild. 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 (*Guild) Upsert

func (o *Guild) 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 GuildSlice

type GuildSlice []*Guild

GuildSlice is an alias for a slice of pointers to Guild. This should almost always be used instead of []Guild.

func (GuildSlice) DeleteAll

func (o GuildSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) error

DeleteAll deletes all rows in the slice, using an executor.

func (*GuildSlice) ReloadAll

func (o *GuildSlice) 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 (GuildSlice) UpdateAll

func (o GuildSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) error

UpdateAll updates all rows with the specified column values, using an executor.

type M

type M map[string]interface{}

M type is for providing columns and column values to UpdateAll.

type Quote

type Quote struct {
	ID             int64       `boil:"id" json:"id" toml:"id" yaml:"id"`
	Quote          string      `boil:"quote" json:"quote" toml:"quote" yaml:"quote"`
	Num            int         `boil:"num" json:"num" toml:"num" yaml:"num"`
	QuoterID       null.String `boil:"quoter_id" json:"quoter_id,omitempty" toml:"quoter_id" yaml:"quoter_id,omitempty"`
	QuotedID       string      `boil:"quoted_id" json:"quoted_id" toml:"quoted_id" yaml:"quoted_id"`
	QuotedUsername string      `boil:"quoted_username" json:"quoted_username" toml:"quoted_username" yaml:"quoted_username"`
	GuildID        string      `boil:"guild_id" json:"guild_id" toml:"guild_id" yaml:"guild_id"`
	ChannelID      string      `boil:"channel_id" json:"channel_id" toml:"channel_id" yaml:"channel_id"`
	MessageID      string      `boil:"message_id" json:"message_id" toml:"message_id" yaml:"message_id"`
	CreatedAt      time.Time   `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt      time.Time   `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`

	R *quoteR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L quoteL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Quote is an object representing the database table.

func FindQuote

func FindQuote(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*Quote, error)

FindQuote retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*Quote) Delete

func (o *Quote) Delete(ctx context.Context, exec boil.ContextExecutor) error

Delete deletes a single Quote record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Quote) Exists

func (o *Quote) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the Quote row exists.

func (*Quote) Insert

func (o *Quote) 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 (*Quote) Reload

func (o *Quote) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Quote) Update

func (o *Quote) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Update uses an executor to update the Quote. 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 (*Quote) Upsert

func (o *Quote) 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 QuoteSlice

type QuoteSlice []*Quote

QuoteSlice is an alias for a slice of pointers to Quote. This should almost always be used instead of []Quote.

func (QuoteSlice) DeleteAll

func (o QuoteSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) error

DeleteAll deletes all rows in the slice, using an executor.

func (*QuoteSlice) ReloadAll

func (o *QuoteSlice) 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 (QuoteSlice) UpdateAll

func (o QuoteSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) error

UpdateAll updates all rows with the specified column values, using an executor.

type Role

type Role struct {
	ID        int64       `boil:"id" json:"id" toml:"id" yaml:"id"`
	RoleID    string      `boil:"role_id" json:"role_id" toml:"role_id" yaml:"role_id"`
	GuildID   string      `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"`
	UpdatedAt time.Time   `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
	RoleName  null.String `boil:"role_name" json:"role_name,omitempty" toml:"role_name" yaml:"role_name,omitempty"`

	R *roleR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L roleL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Role is an object representing the database table.

func FindRole

func FindRole(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*Role, error)

FindRole retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*Role) Delete

func (o *Role) Delete(ctx context.Context, exec boil.ContextExecutor) error

Delete deletes a single Role record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Role) Exists

func (o *Role) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the Role row exists.

func (*Role) Insert

func (o *Role) 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 (*Role) Reload

func (o *Role) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Role) Update

func (o *Role) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Update uses an executor to update the Role. 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 (*Role) Upsert

func (o *Role) 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 RoleSlice

type RoleSlice []*Role

RoleSlice is an alias for a slice of pointers to Role. This should almost always be used instead of []Role.

func (RoleSlice) DeleteAll

func (o RoleSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) error

DeleteAll deletes all rows in the slice, using an executor.

func (*RoleSlice) ReloadAll

func (o *RoleSlice) 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 (RoleSlice) UpdateAll

func (o RoleSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) error

UpdateAll updates all rows with the specified column values, using an executor.

type RoleUpdater

type RoleUpdater struct {
	ID            int64     `boil:"id" json:"id" toml:"id" yaml:"id"`
	GuildID       string    `boil:"guild_id" json:"guild_id" toml:"guild_id" yaml:"guild_id"`
	DoUpdates     bool      `boil:"do_updates" json:"do_updates" toml:"do_updates" yaml:"do_updates"`
	LastTimestamp time.Time `boil:"last_timestamp" json:"last_timestamp" toml:"last_timestamp" yaml:"last_timestamp"`
	CreatedAt     time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt     time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`

	R *roleUpdaterR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L roleUpdaterL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

RoleUpdater is an object representing the database table.

func FindRoleUpdater

func FindRoleUpdater(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*RoleUpdater, error)

FindRoleUpdater retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*RoleUpdater) Delete

func (o *RoleUpdater) Delete(ctx context.Context, exec boil.ContextExecutor) error

Delete deletes a single RoleUpdater record with an executor. Delete will match against the primary key column to find the record to delete.

func (*RoleUpdater) Exists

func (o *RoleUpdater) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the RoleUpdater row exists.

func (*RoleUpdater) Insert

func (o *RoleUpdater) 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 (*RoleUpdater) Reload

func (o *RoleUpdater) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*RoleUpdater) Update

func (o *RoleUpdater) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Update uses an executor to update the RoleUpdater. 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 (*RoleUpdater) Upsert

func (o *RoleUpdater) 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 RoleUpdaterSlice

type RoleUpdaterSlice []*RoleUpdater

RoleUpdaterSlice is an alias for a slice of pointers to RoleUpdater. This should almost always be used instead of []RoleUpdater.

func (RoleUpdaterSlice) DeleteAll

func (o RoleUpdaterSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) error

DeleteAll deletes all rows in the slice, using an executor.

func (*RoleUpdaterSlice) ReloadAll

func (o *RoleUpdaterSlice) 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 (RoleUpdaterSlice) UpdateAll

func (o RoleUpdaterSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) error

UpdateAll updates all rows with the specified column values, using an executor.

type Session

type Session struct {
	ID     int64     `boil:"id" json:"id" toml:"id" yaml:"id"`
	Token  string    `boil:"token" json:"token" toml:"token" yaml:"token"`
	Data   []byte    `boil:"data" json:"data" toml:"data" yaml:"data"`
	Expiry time.Time `boil:"expiry" json:"expiry" toml:"expiry" yaml:"expiry"`

	R *sessionR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L sessionL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Session is an object representing the database table.

func FindSession

func FindSession(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*Session, error)

FindSession retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*Session) Delete

func (o *Session) Delete(ctx context.Context, exec boil.ContextExecutor) error

Delete deletes a single Session record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Session) Exists

func (o *Session) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the Session row exists.

func (*Session) Insert

func (o *Session) 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 (*Session) Reload

func (o *Session) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Session) Update

func (o *Session) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Update uses an executor to update the Session. 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 (*Session) Upsert

func (o *Session) 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 SessionSlice

type SessionSlice []*Session

SessionSlice is an alias for a slice of pointers to Session. This should almost always be used instead of []Session.

func (SessionSlice) DeleteAll

func (o SessionSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) error

DeleteAll deletes all rows in the slice, using an executor.

func (*SessionSlice) ReloadAll

func (o *SessionSlice) 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 (SessionSlice) UpdateAll

func (o SessionSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) error

UpdateAll updates all rows with the specified column values, using an executor.

type Tag

type Tag struct {
	ID        int64     `boil:"id" json:"id" toml:"id" yaml:"id"`
	GuildID   string    `boil:"guild_id" json:"guild_id" toml:"guild_id" yaml:"guild_id"`
	CreatorID string    `boil:"creator_id" json:"creator_id" toml:"creator_id" yaml:"creator_id"`
	Editor    string    `boil:"editor" json:"editor" toml:"editor" yaml:"editor"`
	Trigger   string    `boil:"trigger" json:"trigger" toml:"trigger" yaml:"trigger"`
	Content   string    `boil:"content" json:"content" toml:"content" yaml:"content"`
	CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`

	R *tagR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L tagL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Tag is an object representing the database table.

func FindTag

func FindTag(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*Tag, error)

FindTag retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*Tag) Delete

func (o *Tag) Delete(ctx context.Context, exec boil.ContextExecutor) error

Delete deletes a single Tag record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Tag) Exists

func (o *Tag) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the Tag row exists.

func (*Tag) Insert

func (o *Tag) 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 (*Tag) Reload

func (o *Tag) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Tag) Update

func (o *Tag) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Update uses an executor to update the Tag. 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 (*Tag) Upsert

func (o *Tag) 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 TagSlice

type TagSlice []*Tag

TagSlice is an alias for a slice of pointers to Tag. This should almost always be used instead of []Tag.

func (TagSlice) DeleteAll

func (o TagSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) error

DeleteAll deletes all rows in the slice, using an executor.

func (*TagSlice) ReloadAll

func (o *TagSlice) 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 (TagSlice) UpdateAll

func (o TagSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) error

UpdateAll updates all rows with the specified column values, using an executor.

type UserProfile

type UserProfile struct {
	ID        int64       `boil:"id" json:"id" toml:"id" yaml:"id"`
	UserID    string      `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"`
	Timezone  null.String `boil:"timezone" json:"timezone,omitempty" toml:"timezone" yaml:"timezone,omitempty"`
	CreatedAt time.Time   `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt time.Time   `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`

	R *userProfileR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L userProfileL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

UserProfile is an object representing the database table.

func FindUserProfile

func FindUserProfile(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*UserProfile, error)

FindUserProfile retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*UserProfile) Delete

func (o *UserProfile) Delete(ctx context.Context, exec boil.ContextExecutor) error

Delete deletes a single UserProfile record with an executor. Delete will match against the primary key column to find the record to delete.

func (*UserProfile) Exists

func (o *UserProfile) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the UserProfile row exists.

func (*UserProfile) Insert

func (o *UserProfile) 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 (*UserProfile) Reload

func (o *UserProfile) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*UserProfile) Update

func (o *UserProfile) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Update uses an executor to update the UserProfile. 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 (*UserProfile) Upsert

func (o *UserProfile) 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 UserProfileSlice

type UserProfileSlice []*UserProfile

UserProfileSlice is an alias for a slice of pointers to UserProfile. This should almost always be used instead of []UserProfile.

func (UserProfileSlice) DeleteAll

func (o UserProfileSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) error

DeleteAll deletes all rows in the slice, using an executor.

func (*UserProfileSlice) ReloadAll

func (o *UserProfileSlice) 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 (UserProfileSlice) UpdateAll

func (o UserProfileSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) error

UpdateAll updates all rows with the specified column values, using an executor.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL