models

package
v0.0.0-...-fb49ba0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Package models implements an ORM generated from the HortBot Postgres database.

Index

Constants

View Source
const (
	AccessLevelEveryone    string = "everyone"
	AccessLevelSubscriber  string = "subscriber"
	AccessLevelVip         string = "vip"
	AccessLevelModerator   string = "moderator"
	AccessLevelBroadcaster string = "broadcaster"
	AccessLevelAdmin       string = "admin"
)

Enum values for AccessLevel

Variables

View Source
var AutoreplyColumns = struct {
	ID          string
	CreatedAt   string
	UpdatedAt   string
	ChannelID   string
	Num         string
	Trigger     string
	OrigPattern string
	Response    string
	Count       string
	Creator     string
	Editor      string
}{
	ID:          "id",
	CreatedAt:   "created_at",
	UpdatedAt:   "updated_at",
	ChannelID:   "channel_id",
	Num:         "num",
	Trigger:     "trigger",
	OrigPattern: "orig_pattern",
	Response:    "response",
	Count:       "count",
	Creator:     "creator",
	Editor:      "editor",
}
View Source
var AutoreplyRels = struct {
	Channel string
}{
	Channel: "Channel",
}

AutoreplyRels is where relationship names are stored.

View Source
var AutoreplyTableColumns = struct {
	ID          string
	CreatedAt   string
	UpdatedAt   string
	ChannelID   string
	Num         string
	Trigger     string
	OrigPattern string
	Response    string
	Count       string
	Creator     string
	Editor      string
}{
	ID:          "autoreplies.id",
	CreatedAt:   "autoreplies.created_at",
	UpdatedAt:   "autoreplies.updated_at",
	ChannelID:   "autoreplies.channel_id",
	Num:         "autoreplies.num",
	Trigger:     "autoreplies.trigger",
	OrigPattern: "autoreplies.orig_pattern",
	Response:    "autoreplies.response",
	Count:       "autoreplies.count",
	Creator:     "autoreplies.creator",
	Editor:      "autoreplies.editor",
}
View Source
var AutoreplyWhere = struct {
	ID          whereHelperint64
	CreatedAt   whereHelpertime_Time
	UpdatedAt   whereHelpertime_Time
	ChannelID   whereHelperint64
	Num         whereHelperint
	Trigger     whereHelperstring
	OrigPattern whereHelpernull_String
	Response    whereHelperstring
	Count       whereHelperint
	Creator     whereHelperstring
	Editor      whereHelperstring
}{
	ID:          whereHelperint64{/* contains filtered or unexported fields */},
	CreatedAt:   whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:   whereHelpertime_Time{/* contains filtered or unexported fields */},
	ChannelID:   whereHelperint64{/* contains filtered or unexported fields */},
	Num:         whereHelperint{/* contains filtered or unexported fields */},
	Trigger:     whereHelperstring{/* contains filtered or unexported fields */},
	OrigPattern: whereHelpernull_String{/* contains filtered or unexported fields */},
	Response:    whereHelperstring{/* contains filtered or unexported fields */},
	Count:       whereHelperint{/* contains filtered or unexported fields */},
	Creator:     whereHelperstring{/* contains filtered or unexported fields */},
	Editor:      whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var BlockedUserColumns = struct {
	ID        string
	CreatedAt string
	TwitchID  string
}{
	ID:        "id",
	CreatedAt: "created_at",
	TwitchID:  "twitch_id",
}
View Source
var BlockedUserRels = struct {
}{}

BlockedUserRels is where relationship names are stored.

View Source
var BlockedUserTableColumns = struct {
	ID        string
	CreatedAt string
	TwitchID  string
}{
	ID:        "blocked_users.id",
	CreatedAt: "blocked_users.created_at",
	TwitchID:  "blocked_users.twitch_id",
}
View Source
var BlockedUserWhere = struct {
	ID        whereHelperint64
	CreatedAt whereHelpertime_Time
	TwitchID  whereHelperint64
}{
	ID:        whereHelperint64{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	TwitchID:  whereHelperint64{/* contains filtered or unexported fields */},
}
View Source
var ChannelColumns = struct {
	ID                          string
	CreatedAt                   string
	UpdatedAt                   string
	TwitchID                    string
	Name                        string
	DisplayName                 string
	BotName                     string
	Active                      string
	Prefix                      string
	Bullet                      string
	MessageCount                string
	Mode                        string
	Ignored                     string
	CustomOwners                string
	CustomMods                  string
	CustomRegulars              string
	Cooldown                    string
	LastFM                      string
	ParseYoutube                string
	ExtraLifeID                 string
	RaffleEnabled               string
	SteamID                     string
	UrbanEnabled                string
	Tweet                       string
	RollLevel                   string
	RollCooldown                string
	RollDefault                 string
	ShouldModerate              string
	DisplayWarnings             string
	EnableWarnings              string
	TimeoutDuration             string
	EnableFilters               string
	FilterLinks                 string
	PermittedLinks              string
	SubsMayLink                 string
	FilterCaps                  string
	FilterCapsMinChars          string
	FilterCapsPercentage        string
	FilterCapsMinCaps           string
	FilterEmotes                string
	FilterEmotesMax             string
	FilterEmotesSingle          string
	FilterSymbols               string
	FilterSymbolsPercentage     string
	FilterSymbolsMinSymbols     string
	FilterMe                    string
	FilterMaxLength             string
	FilterBannedPhrases         string
	FilterBannedPhrasesPatterns string
	SubMessage                  string
	SubMessageEnabled           string
	ResubMessage                string
	ResubMessageEnabled         string
	LastSeen                    string
	FilterExemptLevel           string
}{
	ID:                          "id",
	CreatedAt:                   "created_at",
	UpdatedAt:                   "updated_at",
	TwitchID:                    "twitch_id",
	Name:                        "name",
	DisplayName:                 "display_name",
	BotName:                     "bot_name",
	Active:                      "active",
	Prefix:                      "prefix",
	Bullet:                      "bullet",
	MessageCount:                "message_count",
	Mode:                        "mode",
	Ignored:                     "ignored",
	CustomOwners:                "custom_owners",
	CustomMods:                  "custom_mods",
	CustomRegulars:              "custom_regulars",
	Cooldown:                    "cooldown",
	LastFM:                      "last_fm",
	ParseYoutube:                "parse_youtube",
	ExtraLifeID:                 "extra_life_id",
	RaffleEnabled:               "raffle_enabled",
	SteamID:                     "steam_id",
	UrbanEnabled:                "urban_enabled",
	Tweet:                       "tweet",
	RollLevel:                   "roll_level",
	RollCooldown:                "roll_cooldown",
	RollDefault:                 "roll_default",
	ShouldModerate:              "should_moderate",
	DisplayWarnings:             "display_warnings",
	EnableWarnings:              "enable_warnings",
	TimeoutDuration:             "timeout_duration",
	EnableFilters:               "enable_filters",
	FilterLinks:                 "filter_links",
	PermittedLinks:              "permitted_links",
	SubsMayLink:                 "subs_may_link",
	FilterCaps:                  "filter_caps",
	FilterCapsMinChars:          "filter_caps_min_chars",
	FilterCapsPercentage:        "filter_caps_percentage",
	FilterCapsMinCaps:           "filter_caps_min_caps",
	FilterEmotes:                "filter_emotes",
	FilterEmotesMax:             "filter_emotes_max",
	FilterEmotesSingle:          "filter_emotes_single",
	FilterSymbols:               "filter_symbols",
	FilterSymbolsPercentage:     "filter_symbols_percentage",
	FilterSymbolsMinSymbols:     "filter_symbols_min_symbols",
	FilterMe:                    "filter_me",
	FilterMaxLength:             "filter_max_length",
	FilterBannedPhrases:         "filter_banned_phrases",
	FilterBannedPhrasesPatterns: "filter_banned_phrases_patterns",
	SubMessage:                  "sub_message",
	SubMessageEnabled:           "sub_message_enabled",
	ResubMessage:                "resub_message",
	ResubMessageEnabled:         "resub_message_enabled",
	LastSeen:                    "last_seen",
	FilterExemptLevel:           "filter_exempt_level",
}
View Source
var ChannelRels = struct {
	Autoreplies       string
	CommandInfos      string
	CommandLists      string
	CustomCommands    string
	Highlights        string
	Quotes            string
	RepeatedCommands  string
	ScheduledCommands string
	Variables         string
}{
	Autoreplies:       "Autoreplies",
	CommandInfos:      "CommandInfos",
	CommandLists:      "CommandLists",
	CustomCommands:    "CustomCommands",
	Highlights:        "Highlights",
	Quotes:            "Quotes",
	RepeatedCommands:  "RepeatedCommands",
	ScheduledCommands: "ScheduledCommands",
	Variables:         "Variables",
}

ChannelRels is where relationship names are stored.

View Source
var ChannelTableColumns = struct {
	ID                          string
	CreatedAt                   string
	UpdatedAt                   string
	TwitchID                    string
	Name                        string
	DisplayName                 string
	BotName                     string
	Active                      string
	Prefix                      string
	Bullet                      string
	MessageCount                string
	Mode                        string
	Ignored                     string
	CustomOwners                string
	CustomMods                  string
	CustomRegulars              string
	Cooldown                    string
	LastFM                      string
	ParseYoutube                string
	ExtraLifeID                 string
	RaffleEnabled               string
	SteamID                     string
	UrbanEnabled                string
	Tweet                       string
	RollLevel                   string
	RollCooldown                string
	RollDefault                 string
	ShouldModerate              string
	DisplayWarnings             string
	EnableWarnings              string
	TimeoutDuration             string
	EnableFilters               string
	FilterLinks                 string
	PermittedLinks              string
	SubsMayLink                 string
	FilterCaps                  string
	FilterCapsMinChars          string
	FilterCapsPercentage        string
	FilterCapsMinCaps           string
	FilterEmotes                string
	FilterEmotesMax             string
	FilterEmotesSingle          string
	FilterSymbols               string
	FilterSymbolsPercentage     string
	FilterSymbolsMinSymbols     string
	FilterMe                    string
	FilterMaxLength             string
	FilterBannedPhrases         string
	FilterBannedPhrasesPatterns string
	SubMessage                  string
	SubMessageEnabled           string
	ResubMessage                string
	ResubMessageEnabled         string
	LastSeen                    string
	FilterExemptLevel           string
}{
	ID:                          "channels.id",
	CreatedAt:                   "channels.created_at",
	UpdatedAt:                   "channels.updated_at",
	TwitchID:                    "channels.twitch_id",
	Name:                        "channels.name",
	DisplayName:                 "channels.display_name",
	BotName:                     "channels.bot_name",
	Active:                      "channels.active",
	Prefix:                      "channels.prefix",
	Bullet:                      "channels.bullet",
	MessageCount:                "channels.message_count",
	Mode:                        "channels.mode",
	Ignored:                     "channels.ignored",
	CustomOwners:                "channels.custom_owners",
	CustomMods:                  "channels.custom_mods",
	CustomRegulars:              "channels.custom_regulars",
	Cooldown:                    "channels.cooldown",
	LastFM:                      "channels.last_fm",
	ParseYoutube:                "channels.parse_youtube",
	ExtraLifeID:                 "channels.extra_life_id",
	RaffleEnabled:               "channels.raffle_enabled",
	SteamID:                     "channels.steam_id",
	UrbanEnabled:                "channels.urban_enabled",
	Tweet:                       "channels.tweet",
	RollLevel:                   "channels.roll_level",
	RollCooldown:                "channels.roll_cooldown",
	RollDefault:                 "channels.roll_default",
	ShouldModerate:              "channels.should_moderate",
	DisplayWarnings:             "channels.display_warnings",
	EnableWarnings:              "channels.enable_warnings",
	TimeoutDuration:             "channels.timeout_duration",
	EnableFilters:               "channels.enable_filters",
	FilterLinks:                 "channels.filter_links",
	PermittedLinks:              "channels.permitted_links",
	SubsMayLink:                 "channels.subs_may_link",
	FilterCaps:                  "channels.filter_caps",
	FilterCapsMinChars:          "channels.filter_caps_min_chars",
	FilterCapsPercentage:        "channels.filter_caps_percentage",
	FilterCapsMinCaps:           "channels.filter_caps_min_caps",
	FilterEmotes:                "channels.filter_emotes",
	FilterEmotesMax:             "channels.filter_emotes_max",
	FilterEmotesSingle:          "channels.filter_emotes_single",
	FilterSymbols:               "channels.filter_symbols",
	FilterSymbolsPercentage:     "channels.filter_symbols_percentage",
	FilterSymbolsMinSymbols:     "channels.filter_symbols_min_symbols",
	FilterMe:                    "channels.filter_me",
	FilterMaxLength:             "channels.filter_max_length",
	FilterBannedPhrases:         "channels.filter_banned_phrases",
	FilterBannedPhrasesPatterns: "channels.filter_banned_phrases_patterns",
	SubMessage:                  "channels.sub_message",
	SubMessageEnabled:           "channels.sub_message_enabled",
	ResubMessage:                "channels.resub_message",
	ResubMessageEnabled:         "channels.resub_message_enabled",
	LastSeen:                    "channels.last_seen",
	FilterExemptLevel:           "channels.filter_exempt_level",
}
View Source
var ChannelWhere = struct {
	ID                          whereHelperint64
	CreatedAt                   whereHelpertime_Time
	UpdatedAt                   whereHelpertime_Time
	TwitchID                    whereHelperint64
	Name                        whereHelperstring
	DisplayName                 whereHelperstring
	BotName                     whereHelperstring
	Active                      whereHelperbool
	Prefix                      whereHelperstring
	Bullet                      whereHelpernull_String
	MessageCount                whereHelperint64
	Mode                        whereHelperstring
	Ignored                     whereHelpertypes_StringArray
	CustomOwners                whereHelpertypes_StringArray
	CustomMods                  whereHelpertypes_StringArray
	CustomRegulars              whereHelpertypes_StringArray
	Cooldown                    whereHelpernull_Int
	LastFM                      whereHelperstring
	ParseYoutube                whereHelperbool
	ExtraLifeID                 whereHelperint
	RaffleEnabled               whereHelperbool
	SteamID                     whereHelperstring
	UrbanEnabled                whereHelperbool
	Tweet                       whereHelperstring
	RollLevel                   whereHelperstring
	RollCooldown                whereHelperint
	RollDefault                 whereHelperint
	ShouldModerate              whereHelperbool
	DisplayWarnings             whereHelperbool
	EnableWarnings              whereHelperbool
	TimeoutDuration             whereHelperint
	EnableFilters               whereHelperbool
	FilterLinks                 whereHelperbool
	PermittedLinks              whereHelpertypes_StringArray
	SubsMayLink                 whereHelperbool
	FilterCaps                  whereHelperbool
	FilterCapsMinChars          whereHelperint
	FilterCapsPercentage        whereHelperint
	FilterCapsMinCaps           whereHelperint
	FilterEmotes                whereHelperbool
	FilterEmotesMax             whereHelperint
	FilterEmotesSingle          whereHelperbool
	FilterSymbols               whereHelperbool
	FilterSymbolsPercentage     whereHelperint
	FilterSymbolsMinSymbols     whereHelperint
	FilterMe                    whereHelperbool
	FilterMaxLength             whereHelperint
	FilterBannedPhrases         whereHelperbool
	FilterBannedPhrasesPatterns whereHelpertypes_StringArray
	SubMessage                  whereHelperstring
	SubMessageEnabled           whereHelperbool
	ResubMessage                whereHelperstring
	ResubMessageEnabled         whereHelperbool
	LastSeen                    whereHelpertime_Time
	FilterExemptLevel           whereHelperstring
}{
	ID:                          whereHelperint64{/* contains filtered or unexported fields */},
	CreatedAt:                   whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:                   whereHelpertime_Time{/* contains filtered or unexported fields */},
	TwitchID:                    whereHelperint64{/* contains filtered or unexported fields */},
	Name:                        whereHelperstring{/* contains filtered or unexported fields */},
	DisplayName:                 whereHelperstring{/* contains filtered or unexported fields */},
	BotName:                     whereHelperstring{/* contains filtered or unexported fields */},
	Active:                      whereHelperbool{/* contains filtered or unexported fields */},
	Prefix:                      whereHelperstring{/* contains filtered or unexported fields */},
	Bullet:                      whereHelpernull_String{/* contains filtered or unexported fields */},
	MessageCount:                whereHelperint64{/* contains filtered or unexported fields */},
	Mode:                        whereHelperstring{/* contains filtered or unexported fields */},
	Ignored:                     whereHelpertypes_StringArray{/* contains filtered or unexported fields */},
	CustomOwners:                whereHelpertypes_StringArray{/* contains filtered or unexported fields */},
	CustomMods:                  whereHelpertypes_StringArray{/* contains filtered or unexported fields */},
	CustomRegulars:              whereHelpertypes_StringArray{/* contains filtered or unexported fields */},
	Cooldown:                    whereHelpernull_Int{/* contains filtered or unexported fields */},
	LastFM:                      whereHelperstring{/* contains filtered or unexported fields */},
	ParseYoutube:                whereHelperbool{/* contains filtered or unexported fields */},
	ExtraLifeID:                 whereHelperint{/* contains filtered or unexported fields */},
	RaffleEnabled:               whereHelperbool{/* contains filtered or unexported fields */},
	SteamID:                     whereHelperstring{/* contains filtered or unexported fields */},
	UrbanEnabled:                whereHelperbool{/* contains filtered or unexported fields */},
	Tweet:                       whereHelperstring{/* contains filtered or unexported fields */},
	RollLevel:                   whereHelperstring{/* contains filtered or unexported fields */},
	RollCooldown:                whereHelperint{/* contains filtered or unexported fields */},
	RollDefault:                 whereHelperint{/* contains filtered or unexported fields */},
	ShouldModerate:              whereHelperbool{/* contains filtered or unexported fields */},
	DisplayWarnings:             whereHelperbool{/* contains filtered or unexported fields */},
	EnableWarnings:              whereHelperbool{/* contains filtered or unexported fields */},
	TimeoutDuration:             whereHelperint{/* contains filtered or unexported fields */},
	EnableFilters:               whereHelperbool{/* contains filtered or unexported fields */},
	FilterLinks:                 whereHelperbool{/* contains filtered or unexported fields */},
	PermittedLinks:              whereHelpertypes_StringArray{/* contains filtered or unexported fields */},
	SubsMayLink:                 whereHelperbool{/* contains filtered or unexported fields */},
	FilterCaps:                  whereHelperbool{/* contains filtered or unexported fields */},
	FilterCapsMinChars:          whereHelperint{/* contains filtered or unexported fields */},
	FilterCapsPercentage:        whereHelperint{/* contains filtered or unexported fields */},
	FilterCapsMinCaps:           whereHelperint{/* contains filtered or unexported fields */},
	FilterEmotes:                whereHelperbool{/* contains filtered or unexported fields */},
	FilterEmotesMax:             whereHelperint{/* contains filtered or unexported fields */},
	FilterEmotesSingle:          whereHelperbool{/* contains filtered or unexported fields */},
	FilterSymbols:               whereHelperbool{/* contains filtered or unexported fields */},
	FilterSymbolsPercentage:     whereHelperint{/* contains filtered or unexported fields */},
	FilterSymbolsMinSymbols:     whereHelperint{/* contains filtered or unexported fields */},
	FilterMe:                    whereHelperbool{/* contains filtered or unexported fields */},
	FilterMaxLength:             whereHelperint{/* contains filtered or unexported fields */},
	FilterBannedPhrases:         whereHelperbool{/* contains filtered or unexported fields */},
	FilterBannedPhrasesPatterns: whereHelpertypes_StringArray{/* contains filtered or unexported fields */},
	SubMessage:                  whereHelperstring{/* contains filtered or unexported fields */},
	SubMessageEnabled:           whereHelperbool{/* contains filtered or unexported fields */},
	ResubMessage:                whereHelperstring{/* contains filtered or unexported fields */},
	ResubMessageEnabled:         whereHelperbool{/* contains filtered or unexported fields */},
	LastSeen:                    whereHelpertime_Time{/* contains filtered or unexported fields */},
	FilterExemptLevel:           whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var CommandInfoColumns = struct {
	ID              string
	CreatedAt       string
	UpdatedAt       string
	ChannelID       string
	Name            string
	AccessLevel     string
	Count           string
	Creator         string
	Editor          string
	LastUsed        string
	CustomCommandID string
	CommandListID   string
}{
	ID:              "id",
	CreatedAt:       "created_at",
	UpdatedAt:       "updated_at",
	ChannelID:       "channel_id",
	Name:            "name",
	AccessLevel:     "access_level",
	Count:           "count",
	Creator:         "creator",
	Editor:          "editor",
	LastUsed:        "last_used",
	CustomCommandID: "custom_command_id",
	CommandListID:   "command_list_id",
}
View Source
var CommandInfoRels = struct {
	Channel          string
	CommandList      string
	CustomCommand    string
	RepeatedCommand  string
	ScheduledCommand string
}{
	Channel:          "Channel",
	CommandList:      "CommandList",
	CustomCommand:    "CustomCommand",
	RepeatedCommand:  "RepeatedCommand",
	ScheduledCommand: "ScheduledCommand",
}

CommandInfoRels is where relationship names are stored.

View Source
var CommandInfoTableColumns = struct {
	ID              string
	CreatedAt       string
	UpdatedAt       string
	ChannelID       string
	Name            string
	AccessLevel     string
	Count           string
	Creator         string
	Editor          string
	LastUsed        string
	CustomCommandID string
	CommandListID   string
}{
	ID:              "command_infos.id",
	CreatedAt:       "command_infos.created_at",
	UpdatedAt:       "command_infos.updated_at",
	ChannelID:       "command_infos.channel_id",
	Name:            "command_infos.name",
	AccessLevel:     "command_infos.access_level",
	Count:           "command_infos.count",
	Creator:         "command_infos.creator",
	Editor:          "command_infos.editor",
	LastUsed:        "command_infos.last_used",
	CustomCommandID: "command_infos.custom_command_id",
	CommandListID:   "command_infos.command_list_id",
}
View Source
var CommandInfoWhere = struct {
	ID              whereHelperint64
	CreatedAt       whereHelpertime_Time
	UpdatedAt       whereHelpertime_Time
	ChannelID       whereHelperint64
	Name            whereHelperstring
	AccessLevel     whereHelperstring
	Count           whereHelperint64
	Creator         whereHelperstring
	Editor          whereHelperstring
	LastUsed        whereHelpernull_Time
	CustomCommandID whereHelpernull_Int64
	CommandListID   whereHelpernull_Int64
}{
	ID:              whereHelperint64{/* contains filtered or unexported fields */},
	CreatedAt:       whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:       whereHelpertime_Time{/* contains filtered or unexported fields */},
	ChannelID:       whereHelperint64{/* contains filtered or unexported fields */},
	Name:            whereHelperstring{/* contains filtered or unexported fields */},
	AccessLevel:     whereHelperstring{/* contains filtered or unexported fields */},
	Count:           whereHelperint64{/* contains filtered or unexported fields */},
	Creator:         whereHelperstring{/* contains filtered or unexported fields */},
	Editor:          whereHelperstring{/* contains filtered or unexported fields */},
	LastUsed:        whereHelpernull_Time{/* contains filtered or unexported fields */},
	CustomCommandID: whereHelpernull_Int64{/* contains filtered or unexported fields */},
	CommandListID:   whereHelpernull_Int64{/* contains filtered or unexported fields */},
}
View Source
var CommandListColumns = struct {
	ID        string
	CreatedAt string
	UpdatedAt string
	ChannelID string
	Items     string
}{
	ID:        "id",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
	ChannelID: "channel_id",
	Items:     "items",
}
View Source
var CommandListRels = struct {
	Channel     string
	CommandInfo string
}{
	Channel:     "Channel",
	CommandInfo: "CommandInfo",
}

CommandListRels is where relationship names are stored.

View Source
var CommandListTableColumns = struct {
	ID        string
	CreatedAt string
	UpdatedAt string
	ChannelID string
	Items     string
}{
	ID:        "command_lists.id",
	CreatedAt: "command_lists.created_at",
	UpdatedAt: "command_lists.updated_at",
	ChannelID: "command_lists.channel_id",
	Items:     "command_lists.items",
}
View Source
var CommandListWhere = struct {
	ID        whereHelperint64
	CreatedAt whereHelpertime_Time
	UpdatedAt whereHelpertime_Time
	ChannelID whereHelperint64
	Items     whereHelpertypes_StringArray
}{
	ID:        whereHelperint64{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	ChannelID: whereHelperint64{/* contains filtered or unexported fields */},
	Items:     whereHelpertypes_StringArray{/* contains filtered or unexported fields */},
}
View Source
var CustomCommandColumns = struct {
	ID        string
	CreatedAt string
	UpdatedAt string
	ChannelID string
	Message   string
}{
	ID:        "id",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
	ChannelID: "channel_id",
	Message:   "message",
}
View Source
var CustomCommandRels = struct {
	Channel     string
	CommandInfo string
}{
	Channel:     "Channel",
	CommandInfo: "CommandInfo",
}

CustomCommandRels is where relationship names are stored.

View Source
var CustomCommandTableColumns = struct {
	ID        string
	CreatedAt string
	UpdatedAt string
	ChannelID string
	Message   string
}{
	ID:        "custom_commands.id",
	CreatedAt: "custom_commands.created_at",
	UpdatedAt: "custom_commands.updated_at",
	ChannelID: "custom_commands.channel_id",
	Message:   "custom_commands.message",
}
View Source
var CustomCommandWhere = struct {
	ID        whereHelperint64
	CreatedAt whereHelpertime_Time
	UpdatedAt whereHelpertime_Time
	ChannelID whereHelperint64
	Message   whereHelperstring
}{
	ID:        whereHelperint64{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	ChannelID: whereHelperint64{/* contains filtered or unexported fields */},
	Message:   whereHelperstring{/* 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 HighlightColumns = struct {
	ID            string
	CreatedAt     string
	ChannelID     string
	HighlightedAt string
	StartedAt     string
	Status        string
	Game          string
}{
	ID:            "id",
	CreatedAt:     "created_at",
	ChannelID:     "channel_id",
	HighlightedAt: "highlighted_at",
	StartedAt:     "started_at",
	Status:        "status",
	Game:          "game",
}
View Source
var HighlightRels = struct {
	Channel string
}{
	Channel: "Channel",
}

HighlightRels is where relationship names are stored.

View Source
var HighlightTableColumns = struct {
	ID            string
	CreatedAt     string
	ChannelID     string
	HighlightedAt string
	StartedAt     string
	Status        string
	Game          string
}{
	ID:            "highlights.id",
	CreatedAt:     "highlights.created_at",
	ChannelID:     "highlights.channel_id",
	HighlightedAt: "highlights.highlighted_at",
	StartedAt:     "highlights.started_at",
	Status:        "highlights.status",
	Game:          "highlights.game",
}
View Source
var HighlightWhere = struct {
	ID            whereHelperint64
	CreatedAt     whereHelpertime_Time
	ChannelID     whereHelperint64
	HighlightedAt whereHelpertime_Time
	StartedAt     whereHelpernull_Time
	Status        whereHelperstring
	Game          whereHelperstring
}{
	ID:            whereHelperint64{/* contains filtered or unexported fields */},
	CreatedAt:     whereHelpertime_Time{/* contains filtered or unexported fields */},
	ChannelID:     whereHelperint64{/* contains filtered or unexported fields */},
	HighlightedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	StartedAt:     whereHelpernull_Time{/* contains filtered or unexported fields */},
	Status:        whereHelperstring{/* contains filtered or unexported fields */},
	Game:          whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var ModeratedChannelColumns = struct {
	ID               string
	CreatedAt        string
	UpdatedAt        string
	BotName          string
	BroadcasterID    string
	BroadcasterLogin string
	BroadcasterName  string
}{
	ID:               "id",
	CreatedAt:        "created_at",
	UpdatedAt:        "updated_at",
	BotName:          "bot_name",
	BroadcasterID:    "broadcaster_id",
	BroadcasterLogin: "broadcaster_login",
	BroadcasterName:  "broadcaster_name",
}
View Source
var ModeratedChannelRels = struct {
}{}

ModeratedChannelRels is where relationship names are stored.

View Source
var ModeratedChannelTableColumns = struct {
	ID               string
	CreatedAt        string
	UpdatedAt        string
	BotName          string
	BroadcasterID    string
	BroadcasterLogin string
	BroadcasterName  string
}{
	ID:               "moderated_channels.id",
	CreatedAt:        "moderated_channels.created_at",
	UpdatedAt:        "moderated_channels.updated_at",
	BotName:          "moderated_channels.bot_name",
	BroadcasterID:    "moderated_channels.broadcaster_id",
	BroadcasterLogin: "moderated_channels.broadcaster_login",
	BroadcasterName:  "moderated_channels.broadcaster_name",
}
View Source
var ModeratedChannelWhere = struct {
	ID               whereHelperint64
	CreatedAt        whereHelpertime_Time
	UpdatedAt        whereHelpertime_Time
	BotName          whereHelperstring
	BroadcasterID    whereHelperint64
	BroadcasterLogin whereHelperstring
	BroadcasterName  whereHelperstring
}{
	ID:               whereHelperint64{/* contains filtered or unexported fields */},
	CreatedAt:        whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:        whereHelpertime_Time{/* contains filtered or unexported fields */},
	BotName:          whereHelperstring{/* contains filtered or unexported fields */},
	BroadcasterID:    whereHelperint64{/* contains filtered or unexported fields */},
	BroadcasterLogin: whereHelperstring{/* contains filtered or unexported fields */},
	BroadcasterName:  whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var QuoteColumns = struct {
	ID        string
	CreatedAt string
	UpdatedAt string
	ChannelID string
	Num       string
	Quote     string
	Creator   string
	Editor    string
}{
	ID:        "id",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
	ChannelID: "channel_id",
	Num:       "num",
	Quote:     "quote",
	Creator:   "creator",
	Editor:    "editor",
}
View Source
var QuoteRels = struct {
	Channel string
}{
	Channel: "Channel",
}

QuoteRels is where relationship names are stored.

View Source
var QuoteTableColumns = struct {
	ID        string
	CreatedAt string
	UpdatedAt string
	ChannelID string
	Num       string
	Quote     string
	Creator   string
	Editor    string
}{
	ID:        "quotes.id",
	CreatedAt: "quotes.created_at",
	UpdatedAt: "quotes.updated_at",
	ChannelID: "quotes.channel_id",
	Num:       "quotes.num",
	Quote:     "quotes.quote",
	Creator:   "quotes.creator",
	Editor:    "quotes.editor",
}
View Source
var QuoteWhere = struct {
	ID        whereHelperint64
	CreatedAt whereHelpertime_Time
	UpdatedAt whereHelpertime_Time
	ChannelID whereHelperint64
	Num       whereHelperint
	Quote     whereHelperstring
	Creator   whereHelperstring
	Editor    whereHelperstring
}{
	ID:        whereHelperint64{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	ChannelID: whereHelperint64{/* contains filtered or unexported fields */},
	Num:       whereHelperint{/* contains filtered or unexported fields */},
	Quote:     whereHelperstring{/* contains filtered or unexported fields */},
	Creator:   whereHelperstring{/* contains filtered or unexported fields */},
	Editor:    whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var RepeatedCommandColumns = struct {
	ID            string
	CreatedAt     string
	UpdatedAt     string
	ChannelID     string
	CommandInfoID string
	Enabled       string
	Delay         string
	MessageDiff   string
	LastCount     string
	InitTimestamp string
	Creator       string
	Editor        string
}{
	ID:            "id",
	CreatedAt:     "created_at",
	UpdatedAt:     "updated_at",
	ChannelID:     "channel_id",
	CommandInfoID: "command_info_id",
	Enabled:       "enabled",
	Delay:         "delay",
	MessageDiff:   "message_diff",
	LastCount:     "last_count",
	InitTimestamp: "init_timestamp",
	Creator:       "creator",
	Editor:        "editor",
}
View Source
var RepeatedCommandRels = struct {
	Channel     string
	CommandInfo string
}{
	Channel:     "Channel",
	CommandInfo: "CommandInfo",
}

RepeatedCommandRels is where relationship names are stored.

View Source
var RepeatedCommandTableColumns = struct {
	ID            string
	CreatedAt     string
	UpdatedAt     string
	ChannelID     string
	CommandInfoID string
	Enabled       string
	Delay         string
	MessageDiff   string
	LastCount     string
	InitTimestamp string
	Creator       string
	Editor        string
}{
	ID:            "repeated_commands.id",
	CreatedAt:     "repeated_commands.created_at",
	UpdatedAt:     "repeated_commands.updated_at",
	ChannelID:     "repeated_commands.channel_id",
	CommandInfoID: "repeated_commands.command_info_id",
	Enabled:       "repeated_commands.enabled",
	Delay:         "repeated_commands.delay",
	MessageDiff:   "repeated_commands.message_diff",
	LastCount:     "repeated_commands.last_count",
	InitTimestamp: "repeated_commands.init_timestamp",
	Creator:       "repeated_commands.creator",
	Editor:        "repeated_commands.editor",
}
View Source
var RepeatedCommandWhere = struct {
	ID            whereHelperint64
	CreatedAt     whereHelpertime_Time
	UpdatedAt     whereHelpertime_Time
	ChannelID     whereHelperint64
	CommandInfoID whereHelperint64
	Enabled       whereHelperbool
	Delay         whereHelperint
	MessageDiff   whereHelperint64
	LastCount     whereHelperint64
	InitTimestamp whereHelpernull_Time
	Creator       whereHelperstring
	Editor        whereHelperstring
}{
	ID:            whereHelperint64{/* contains filtered or unexported fields */},
	CreatedAt:     whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:     whereHelpertime_Time{/* contains filtered or unexported fields */},
	ChannelID:     whereHelperint64{/* contains filtered or unexported fields */},
	CommandInfoID: whereHelperint64{/* contains filtered or unexported fields */},
	Enabled:       whereHelperbool{/* contains filtered or unexported fields */},
	Delay:         whereHelperint{/* contains filtered or unexported fields */},
	MessageDiff:   whereHelperint64{/* contains filtered or unexported fields */},
	LastCount:     whereHelperint64{/* contains filtered or unexported fields */},
	InitTimestamp: whereHelpernull_Time{/* contains filtered or unexported fields */},
	Creator:       whereHelperstring{/* contains filtered or unexported fields */},
	Editor:        whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var ScheduledCommandColumns = struct {
	ID             string
	CreatedAt      string
	UpdatedAt      string
	ChannelID      string
	CommandInfoID  string
	Enabled        string
	CronExpression string
	MessageDiff    string
	LastCount      string
	Creator        string
	Editor         string
}{
	ID:             "id",
	CreatedAt:      "created_at",
	UpdatedAt:      "updated_at",
	ChannelID:      "channel_id",
	CommandInfoID:  "command_info_id",
	Enabled:        "enabled",
	CronExpression: "cron_expression",
	MessageDiff:    "message_diff",
	LastCount:      "last_count",
	Creator:        "creator",
	Editor:         "editor",
}
View Source
var ScheduledCommandRels = struct {
	Channel     string
	CommandInfo string
}{
	Channel:     "Channel",
	CommandInfo: "CommandInfo",
}

ScheduledCommandRels is where relationship names are stored.

View Source
var ScheduledCommandTableColumns = struct {
	ID             string
	CreatedAt      string
	UpdatedAt      string
	ChannelID      string
	CommandInfoID  string
	Enabled        string
	CronExpression string
	MessageDiff    string
	LastCount      string
	Creator        string
	Editor         string
}{
	ID:             "scheduled_commands.id",
	CreatedAt:      "scheduled_commands.created_at",
	UpdatedAt:      "scheduled_commands.updated_at",
	ChannelID:      "scheduled_commands.channel_id",
	CommandInfoID:  "scheduled_commands.command_info_id",
	Enabled:        "scheduled_commands.enabled",
	CronExpression: "scheduled_commands.cron_expression",
	MessageDiff:    "scheduled_commands.message_diff",
	LastCount:      "scheduled_commands.last_count",
	Creator:        "scheduled_commands.creator",
	Editor:         "scheduled_commands.editor",
}
View Source
var ScheduledCommandWhere = struct {
	ID             whereHelperint64
	CreatedAt      whereHelpertime_Time
	UpdatedAt      whereHelpertime_Time
	ChannelID      whereHelperint64
	CommandInfoID  whereHelperint64
	Enabled        whereHelperbool
	CronExpression whereHelperstring
	MessageDiff    whereHelperint64
	LastCount      whereHelperint64
	Creator        whereHelperstring
	Editor         whereHelperstring
}{
	ID:             whereHelperint64{/* contains filtered or unexported fields */},
	CreatedAt:      whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:      whereHelpertime_Time{/* contains filtered or unexported fields */},
	ChannelID:      whereHelperint64{/* contains filtered or unexported fields */},
	CommandInfoID:  whereHelperint64{/* contains filtered or unexported fields */},
	Enabled:        whereHelperbool{/* contains filtered or unexported fields */},
	CronExpression: whereHelperstring{/* contains filtered or unexported fields */},
	MessageDiff:    whereHelperint64{/* contains filtered or unexported fields */},
	LastCount:      whereHelperint64{/* contains filtered or unexported fields */},
	Creator:        whereHelperstring{/* contains filtered or unexported fields */},
	Editor:         whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var TableNames = struct {
	Autoreplies       string
	BlockedUsers      string
	Channels          string
	CommandInfos      string
	CommandLists      string
	CustomCommands    string
	Highlights        string
	ModeratedChannels string
	Quotes            string
	RepeatedCommands  string
	ScheduledCommands string
	TwitchTokens      string
	Variables         string
}{
	Autoreplies:       "autoreplies",
	BlockedUsers:      "blocked_users",
	Channels:          "channels",
	CommandInfos:      "command_infos",
	CommandLists:      "command_lists",
	CustomCommands:    "custom_commands",
	Highlights:        "highlights",
	ModeratedChannels: "moderated_channels",
	Quotes:            "quotes",
	RepeatedCommands:  "repeated_commands",
	ScheduledCommands: "scheduled_commands",
	TwitchTokens:      "twitch_tokens",
	Variables:         "variables",
}
View Source
var TwitchTokenColumns = struct {
	ID           string
	CreatedAt    string
	UpdatedAt    string
	TwitchID     string
	BotName      string
	AccessToken  string
	TokenType    string
	RefreshToken string
	Expiry       string
	Scopes       string
}{
	ID:           "id",
	CreatedAt:    "created_at",
	UpdatedAt:    "updated_at",
	TwitchID:     "twitch_id",
	BotName:      "bot_name",
	AccessToken:  "access_token",
	TokenType:    "token_type",
	RefreshToken: "refresh_token",
	Expiry:       "expiry",
	Scopes:       "scopes",
}
View Source
var TwitchTokenRels = struct {
}{}

TwitchTokenRels is where relationship names are stored.

View Source
var TwitchTokenTableColumns = struct {
	ID           string
	CreatedAt    string
	UpdatedAt    string
	TwitchID     string
	BotName      string
	AccessToken  string
	TokenType    string
	RefreshToken string
	Expiry       string
	Scopes       string
}{
	ID:           "twitch_tokens.id",
	CreatedAt:    "twitch_tokens.created_at",
	UpdatedAt:    "twitch_tokens.updated_at",
	TwitchID:     "twitch_tokens.twitch_id",
	BotName:      "twitch_tokens.bot_name",
	AccessToken:  "twitch_tokens.access_token",
	TokenType:    "twitch_tokens.token_type",
	RefreshToken: "twitch_tokens.refresh_token",
	Expiry:       "twitch_tokens.expiry",
	Scopes:       "twitch_tokens.scopes",
}
View Source
var TwitchTokenWhere = struct {
	ID           whereHelperint64
	CreatedAt    whereHelpertime_Time
	UpdatedAt    whereHelpertime_Time
	TwitchID     whereHelperint64
	BotName      whereHelpernull_String
	AccessToken  whereHelperstring
	TokenType    whereHelperstring
	RefreshToken whereHelperstring
	Expiry       whereHelpertime_Time
	Scopes       whereHelpertypes_StringArray
}{
	ID:           whereHelperint64{/* contains filtered or unexported fields */},
	CreatedAt:    whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:    whereHelpertime_Time{/* contains filtered or unexported fields */},
	TwitchID:     whereHelperint64{/* contains filtered or unexported fields */},
	BotName:      whereHelpernull_String{/* contains filtered or unexported fields */},
	AccessToken:  whereHelperstring{/* contains filtered or unexported fields */},
	TokenType:    whereHelperstring{/* contains filtered or unexported fields */},
	RefreshToken: whereHelperstring{/* contains filtered or unexported fields */},
	Expiry:       whereHelpertime_Time{/* contains filtered or unexported fields */},
	Scopes:       whereHelpertypes_StringArray{/* contains filtered or unexported fields */},
}
View Source
var VariableColumns = struct {
	ID        string
	CreatedAt string
	UpdatedAt string
	ChannelID string
	Name      string
	Value     string
}{
	ID:        "id",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
	ChannelID: "channel_id",
	Name:      "name",
	Value:     "value",
}
View Source
var VariableRels = struct {
	Channel string
}{
	Channel: "Channel",
}

VariableRels is where relationship names are stored.

View Source
var VariableTableColumns = struct {
	ID        string
	CreatedAt string
	UpdatedAt string
	ChannelID string
	Name      string
	Value     string
}{
	ID:        "variables.id",
	CreatedAt: "variables.created_at",
	UpdatedAt: "variables.updated_at",
	ChannelID: "variables.channel_id",
	Name:      "variables.name",
	Value:     "variables.value",
}
View Source
var VariableWhere = struct {
	ID        whereHelperint64
	CreatedAt whereHelpertime_Time
	UpdatedAt whereHelpertime_Time
	ChannelID whereHelperint64
	Name      whereHelperstring
	Value     whereHelperstring
}{
	ID:        whereHelperint64{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	ChannelID: whereHelperint64{/* contains filtered or unexported fields */},
	Name:      whereHelperstring{/* contains filtered or unexported fields */},
	Value:     whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var ViewNames = struct {
}{}

Functions

func AllAccessLevel

func AllAccessLevel() []string

func Autoreplies

func Autoreplies(mods ...qm.QueryMod) autoreplyQuery

Autoreplies retrieves all the records using an executor.

func AutoreplyExists

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

AutoreplyExists checks if the Autoreply row exists.

func BlockedUserExists

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

BlockedUserExists checks if the BlockedUser row exists.

func BlockedUsers

func BlockedUsers(mods ...qm.QueryMod) blockedUserQuery

BlockedUsers retrieves all the records using an executor.

func ChannelExists

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

ChannelExists checks if the Channel row exists.

func Channels

func Channels(mods ...qm.QueryMod) channelQuery

Channels retrieves all the records using an executor.

func CommandInfoExists

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

CommandInfoExists checks if the CommandInfo row exists.

func CommandInfos

func CommandInfos(mods ...qm.QueryMod) commandInfoQuery

CommandInfos retrieves all the records using an executor.

func CommandListExists

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

CommandListExists checks if the CommandList row exists.

func CommandLists

func CommandLists(mods ...qm.QueryMod) commandListQuery

CommandLists retrieves all the records using an executor.

func CustomCommandExists

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

CustomCommandExists checks if the CustomCommand row exists.

func CustomCommands

func CustomCommands(mods ...qm.QueryMod) customCommandQuery

CustomCommands retrieves all the records using an executor.

func HighlightExists

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

HighlightExists checks if the Highlight row exists.

func Highlights

func Highlights(mods ...qm.QueryMod) highlightQuery

Highlights retrieves all the records using an executor.

func ModeratedChannelExists

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

ModeratedChannelExists checks if the ModeratedChannel row exists.

func ModeratedChannels

func ModeratedChannels(mods ...qm.QueryMod) moderatedChannelQuery

ModeratedChannels 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 RepeatedCommandExists

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

RepeatedCommandExists checks if the RepeatedCommand row exists.

func RepeatedCommands

func RepeatedCommands(mods ...qm.QueryMod) repeatedCommandQuery

RepeatedCommands retrieves all the records using an executor.

func ScheduledCommandExists

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

ScheduledCommandExists checks if the ScheduledCommand row exists.

func ScheduledCommands

func ScheduledCommands(mods ...qm.QueryMod) scheduledCommandQuery

ScheduledCommands retrieves all the records using an executor.

func TwitchTokenExists

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

TwitchTokenExists checks if the TwitchToken row exists.

func TwitchTokens

func TwitchTokens(mods ...qm.QueryMod) twitchTokenQuery

TwitchTokens retrieves all the records using an executor.

func VariableExists

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

VariableExists checks if the Variable row exists.

func Variables

func Variables(mods ...qm.QueryMod) variableQuery

Variables retrieves all the records using an executor.

Types

type Autoreply

type Autoreply 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"`
	UpdatedAt   time.Time   `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
	ChannelID   int64       `boil:"channel_id" json:"channel_id" toml:"channel_id" yaml:"channel_id"`
	Num         int         `boil:"num" json:"num" toml:"num" yaml:"num"`
	Trigger     string      `boil:"trigger" json:"trigger" toml:"trigger" yaml:"trigger"`
	OrigPattern null.String `boil:"orig_pattern" json:"orig_pattern,omitempty" toml:"orig_pattern" yaml:"orig_pattern,omitempty"`
	Response    string      `boil:"response" json:"response" toml:"response" yaml:"response"`
	Count       int         `boil:"count" json:"count" toml:"count" yaml:"count"`
	Creator     string      `boil:"creator" json:"creator" toml:"creator" yaml:"creator"`
	Editor      string      `boil:"editor" json:"editor" toml:"editor" yaml:"editor"`

	R *autoreplyR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L autoreplyL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Autoreply is an object representing the database table.

func FindAutoreply

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

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

func (*Autoreply) Channel

func (o *Autoreply) Channel(mods ...qm.QueryMod) channelQuery

Channel pointed to by the foreign key.

func (*Autoreply) Delete

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

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

func (*Autoreply) Exists

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

Exists checks if the Autoreply row exists.

func (*Autoreply) Insert

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

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

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

func (*Autoreply) SetChannel

func (o *Autoreply) SetChannel(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Channel) error

SetChannel of the autoreply to the related item. Sets o.R.Channel to related. Adds o to related.R.Autoreplies.

func (*Autoreply) Update

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

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

func (o *Autoreply) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type AutoreplySlice

type AutoreplySlice []*Autoreply

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

func (AutoreplySlice) DeleteAll

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

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

func (*AutoreplySlice) ReloadAll

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

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

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

type BlockedUser

type BlockedUser 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"`
	TwitchID  int64     `boil:"twitch_id" json:"twitch_id" toml:"twitch_id" yaml:"twitch_id"`

	R *blockedUserR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L blockedUserL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

BlockedUser is an object representing the database table.

func FindBlockedUser

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

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

func (*BlockedUser) Delete

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

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

func (*BlockedUser) Exists

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

Exists checks if the BlockedUser row exists.

func (*BlockedUser) Insert

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

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

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

func (*BlockedUser) Update

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

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

func (o *BlockedUser) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type BlockedUserSlice

type BlockedUserSlice []*BlockedUser

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

func (BlockedUserSlice) DeleteAll

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

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

func (*BlockedUserSlice) ReloadAll

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

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

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

type Channel

type Channel 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"`
	UpdatedAt                   time.Time         `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
	TwitchID                    int64             `boil:"twitch_id" json:"twitch_id" toml:"twitch_id" yaml:"twitch_id"`
	Name                        string            `boil:"name" json:"name" toml:"name" yaml:"name"`
	DisplayName                 string            `boil:"display_name" json:"display_name" toml:"display_name" yaml:"display_name"`
	BotName                     string            `boil:"bot_name" json:"bot_name" toml:"bot_name" yaml:"bot_name"`
	Active                      bool              `boil:"active" json:"active" toml:"active" yaml:"active"`
	Prefix                      string            `boil:"prefix" json:"prefix" toml:"prefix" yaml:"prefix"`
	Bullet                      null.String       `boil:"bullet" json:"bullet,omitempty" toml:"bullet" yaml:"bullet,omitempty"`
	MessageCount                int64             `boil:"message_count" json:"message_count" toml:"message_count" yaml:"message_count"`
	Mode                        string            `boil:"mode" json:"mode" toml:"mode" yaml:"mode"`
	Ignored                     types.StringArray `boil:"ignored" json:"ignored" toml:"ignored" yaml:"ignored"`
	CustomOwners                types.StringArray `boil:"custom_owners" json:"custom_owners" toml:"custom_owners" yaml:"custom_owners"`
	CustomMods                  types.StringArray `boil:"custom_mods" json:"custom_mods" toml:"custom_mods" yaml:"custom_mods"`
	CustomRegulars              types.StringArray `boil:"custom_regulars" json:"custom_regulars" toml:"custom_regulars" yaml:"custom_regulars"`
	Cooldown                    null.Int          `boil:"cooldown" json:"cooldown,omitempty" toml:"cooldown" yaml:"cooldown,omitempty"`
	LastFM                      string            `boil:"last_fm" json:"last_fm" toml:"last_fm" yaml:"last_fm"`
	ParseYoutube                bool              `boil:"parse_youtube" json:"parse_youtube" toml:"parse_youtube" yaml:"parse_youtube"`
	ExtraLifeID                 int               `boil:"extra_life_id" json:"extra_life_id" toml:"extra_life_id" yaml:"extra_life_id"`
	RaffleEnabled               bool              `boil:"raffle_enabled" json:"raffle_enabled" toml:"raffle_enabled" yaml:"raffle_enabled"`
	SteamID                     string            `boil:"steam_id" json:"steam_id" toml:"steam_id" yaml:"steam_id"`
	UrbanEnabled                bool              `boil:"urban_enabled" json:"urban_enabled" toml:"urban_enabled" yaml:"urban_enabled"`
	Tweet                       string            `boil:"tweet" json:"tweet" toml:"tweet" yaml:"tweet"`
	RollLevel                   string            `boil:"roll_level" json:"roll_level" toml:"roll_level" yaml:"roll_level"`
	RollCooldown                int               `boil:"roll_cooldown" json:"roll_cooldown" toml:"roll_cooldown" yaml:"roll_cooldown"`
	RollDefault                 int               `boil:"roll_default" json:"roll_default" toml:"roll_default" yaml:"roll_default"`
	ShouldModerate              bool              `boil:"should_moderate" json:"should_moderate" toml:"should_moderate" yaml:"should_moderate"`
	DisplayWarnings             bool              `boil:"display_warnings" json:"display_warnings" toml:"display_warnings" yaml:"display_warnings"`
	EnableWarnings              bool              `boil:"enable_warnings" json:"enable_warnings" toml:"enable_warnings" yaml:"enable_warnings"`
	TimeoutDuration             int               `boil:"timeout_duration" json:"timeout_duration" toml:"timeout_duration" yaml:"timeout_duration"`
	EnableFilters               bool              `boil:"enable_filters" json:"enable_filters" toml:"enable_filters" yaml:"enable_filters"`
	FilterLinks                 bool              `boil:"filter_links" json:"filter_links" toml:"filter_links" yaml:"filter_links"`
	PermittedLinks              types.StringArray `boil:"permitted_links" json:"permitted_links" toml:"permitted_links" yaml:"permitted_links"`
	SubsMayLink                 bool              `boil:"subs_may_link" json:"subs_may_link" toml:"subs_may_link" yaml:"subs_may_link"`
	FilterCaps                  bool              `boil:"filter_caps" json:"filter_caps" toml:"filter_caps" yaml:"filter_caps"`
	FilterCapsMinChars          int               `boil:"filter_caps_min_chars" json:"filter_caps_min_chars" toml:"filter_caps_min_chars" yaml:"filter_caps_min_chars"`
	FilterCapsPercentage        int               `boil:"filter_caps_percentage" json:"filter_caps_percentage" toml:"filter_caps_percentage" yaml:"filter_caps_percentage"`
	FilterCapsMinCaps           int               `boil:"filter_caps_min_caps" json:"filter_caps_min_caps" toml:"filter_caps_min_caps" yaml:"filter_caps_min_caps"`
	FilterEmotes                bool              `boil:"filter_emotes" json:"filter_emotes" toml:"filter_emotes" yaml:"filter_emotes"`
	FilterEmotesMax             int               `boil:"filter_emotes_max" json:"filter_emotes_max" toml:"filter_emotes_max" yaml:"filter_emotes_max"`
	FilterEmotesSingle          bool              `boil:"filter_emotes_single" json:"filter_emotes_single" toml:"filter_emotes_single" yaml:"filter_emotes_single"`
	FilterSymbols               bool              `boil:"filter_symbols" json:"filter_symbols" toml:"filter_symbols" yaml:"filter_symbols"`
	FilterSymbolsPercentage     int               `` /* 131-byte string literal not displayed */
	FilterSymbolsMinSymbols     int               `` /* 135-byte string literal not displayed */
	FilterMe                    bool              `boil:"filter_me" json:"filter_me" toml:"filter_me" yaml:"filter_me"`
	FilterMaxLength             int               `boil:"filter_max_length" json:"filter_max_length" toml:"filter_max_length" yaml:"filter_max_length"`
	FilterBannedPhrases         bool              `boil:"filter_banned_phrases" json:"filter_banned_phrases" toml:"filter_banned_phrases" yaml:"filter_banned_phrases"`
	FilterBannedPhrasesPatterns types.StringArray `` /* 151-byte string literal not displayed */
	SubMessage                  string            `boil:"sub_message" json:"sub_message" toml:"sub_message" yaml:"sub_message"`
	SubMessageEnabled           bool              `boil:"sub_message_enabled" json:"sub_message_enabled" toml:"sub_message_enabled" yaml:"sub_message_enabled"`
	ResubMessage                string            `boil:"resub_message" json:"resub_message" toml:"resub_message" yaml:"resub_message"`
	ResubMessageEnabled         bool              `boil:"resub_message_enabled" json:"resub_message_enabled" toml:"resub_message_enabled" yaml:"resub_message_enabled"`
	LastSeen                    time.Time         `boil:"last_seen" json:"last_seen" toml:"last_seen" yaml:"last_seen"`
	FilterExemptLevel           string            `boil:"filter_exempt_level" json:"filter_exempt_level" toml:"filter_exempt_level" yaml:"filter_exempt_level"`

	R *channelR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L channelL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Channel is an object representing the database table.

func FindChannel

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

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

func (*Channel) AddAutoreplies

func (o *Channel) AddAutoreplies(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Autoreply) error

AddAutoreplies adds the given related objects to the existing relationships of the channel, optionally inserting them as new records. Appends related to o.R.Autoreplies. Sets related.R.Channel appropriately.

func (*Channel) AddCommandInfos

func (o *Channel) AddCommandInfos(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*CommandInfo) error

AddCommandInfos adds the given related objects to the existing relationships of the channel, optionally inserting them as new records. Appends related to o.R.CommandInfos. Sets related.R.Channel appropriately.

func (*Channel) AddCommandLists

func (o *Channel) AddCommandLists(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*CommandList) error

AddCommandLists adds the given related objects to the existing relationships of the channel, optionally inserting them as new records. Appends related to o.R.CommandLists. Sets related.R.Channel appropriately.

func (*Channel) AddCustomCommands

func (o *Channel) AddCustomCommands(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*CustomCommand) error

AddCustomCommands adds the given related objects to the existing relationships of the channel, optionally inserting them as new records. Appends related to o.R.CustomCommands. Sets related.R.Channel appropriately.

func (*Channel) AddHighlights

func (o *Channel) AddHighlights(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Highlight) error

AddHighlights adds the given related objects to the existing relationships of the channel, optionally inserting them as new records. Appends related to o.R.Highlights. Sets related.R.Channel appropriately.

func (*Channel) AddQuotes

func (o *Channel) AddQuotes(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Quote) error

AddQuotes adds the given related objects to the existing relationships of the channel, optionally inserting them as new records. Appends related to o.R.Quotes. Sets related.R.Channel appropriately.

func (*Channel) AddRepeatedCommands

func (o *Channel) AddRepeatedCommands(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*RepeatedCommand) error

AddRepeatedCommands adds the given related objects to the existing relationships of the channel, optionally inserting them as new records. Appends related to o.R.RepeatedCommands. Sets related.R.Channel appropriately.

func (*Channel) AddScheduledCommands

func (o *Channel) AddScheduledCommands(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*ScheduledCommand) error

AddScheduledCommands adds the given related objects to the existing relationships of the channel, optionally inserting them as new records. Appends related to o.R.ScheduledCommands. Sets related.R.Channel appropriately.

func (*Channel) AddVariables

func (o *Channel) AddVariables(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Variable) error

AddVariables adds the given related objects to the existing relationships of the channel, optionally inserting them as new records. Appends related to o.R.Variables. Sets related.R.Channel appropriately.

func (*Channel) Autoreplies

func (o *Channel) Autoreplies(mods ...qm.QueryMod) autoreplyQuery

Autoreplies retrieves all the autoreply's Autoreplies with an executor.

func (*Channel) CommandInfos

func (o *Channel) CommandInfos(mods ...qm.QueryMod) commandInfoQuery

CommandInfos retrieves all the command_info's CommandInfos with an executor.

func (*Channel) CommandLists

func (o *Channel) CommandLists(mods ...qm.QueryMod) commandListQuery

CommandLists retrieves all the command_list's CommandLists with an executor.

func (*Channel) CustomCommands

func (o *Channel) CustomCommands(mods ...qm.QueryMod) customCommandQuery

CustomCommands retrieves all the custom_command's CustomCommands with an executor.

func (*Channel) Delete

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

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

func (*Channel) Exists

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

Exists checks if the Channel row exists.

func (*Channel) Highlights

func (o *Channel) Highlights(mods ...qm.QueryMod) highlightQuery

Highlights retrieves all the highlight's Highlights with an executor.

func (*Channel) Insert

func (o *Channel) 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 (*Channel) Quotes

func (o *Channel) Quotes(mods ...qm.QueryMod) quoteQuery

Quotes retrieves all the quote's Quotes with an executor.

func (*Channel) Reload

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

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

func (*Channel) RepeatedCommands

func (o *Channel) RepeatedCommands(mods ...qm.QueryMod) repeatedCommandQuery

RepeatedCommands retrieves all the repeated_command's RepeatedCommands with an executor.

func (*Channel) ScheduledCommands

func (o *Channel) ScheduledCommands(mods ...qm.QueryMod) scheduledCommandQuery

ScheduledCommands retrieves all the scheduled_command's ScheduledCommands with an executor.

func (*Channel) Update

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

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

func (o *Channel) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

func (*Channel) Variables

func (o *Channel) Variables(mods ...qm.QueryMod) variableQuery

Variables retrieves all the variable's Variables with an executor.

type ChannelSlice

type ChannelSlice []*Channel

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

func (ChannelSlice) DeleteAll

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

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

func (*ChannelSlice) ReloadAll

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

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

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

type CommandInfo

type CommandInfo 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"`
	UpdatedAt       time.Time  `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
	ChannelID       int64      `boil:"channel_id" json:"channel_id" toml:"channel_id" yaml:"channel_id"`
	Name            string     `boil:"name" json:"name" toml:"name" yaml:"name"`
	AccessLevel     string     `boil:"access_level" json:"access_level" toml:"access_level" yaml:"access_level"`
	Count           int64      `boil:"count" json:"count" toml:"count" yaml:"count"`
	Creator         string     `boil:"creator" json:"creator" toml:"creator" yaml:"creator"`
	Editor          string     `boil:"editor" json:"editor" toml:"editor" yaml:"editor"`
	LastUsed        null.Time  `boil:"last_used" json:"last_used,omitempty" toml:"last_used" yaml:"last_used,omitempty"`
	CustomCommandID null.Int64 `boil:"custom_command_id" json:"custom_command_id,omitempty" toml:"custom_command_id" yaml:"custom_command_id,omitempty"`
	CommandListID   null.Int64 `boil:"command_list_id" json:"command_list_id,omitempty" toml:"command_list_id" yaml:"command_list_id,omitempty"`

	R *commandInfoR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L commandInfoL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

CommandInfo is an object representing the database table.

func FindCommandInfo

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

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

func (*CommandInfo) Channel

func (o *CommandInfo) Channel(mods ...qm.QueryMod) channelQuery

Channel pointed to by the foreign key.

func (*CommandInfo) CommandList

func (o *CommandInfo) CommandList(mods ...qm.QueryMod) commandListQuery

CommandList pointed to by the foreign key.

func (*CommandInfo) CustomCommand

func (o *CommandInfo) CustomCommand(mods ...qm.QueryMod) customCommandQuery

CustomCommand pointed to by the foreign key.

func (*CommandInfo) Delete

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

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

func (*CommandInfo) Exists

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

Exists checks if the CommandInfo row exists.

func (*CommandInfo) Insert

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

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

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

func (*CommandInfo) RemoveCommandList

func (o *CommandInfo) RemoveCommandList(ctx context.Context, exec boil.ContextExecutor, related *CommandList) error

RemoveCommandList relationship. Sets o.R.CommandList to nil. Removes o from all passed in related items' relationships struct.

func (*CommandInfo) RemoveCustomCommand

func (o *CommandInfo) RemoveCustomCommand(ctx context.Context, exec boil.ContextExecutor, related *CustomCommand) error

RemoveCustomCommand relationship. Sets o.R.CustomCommand to nil. Removes o from all passed in related items' relationships struct.

func (*CommandInfo) RepeatedCommand

func (o *CommandInfo) RepeatedCommand(mods ...qm.QueryMod) repeatedCommandQuery

RepeatedCommand pointed to by the foreign key.

func (*CommandInfo) ScheduledCommand

func (o *CommandInfo) ScheduledCommand(mods ...qm.QueryMod) scheduledCommandQuery

ScheduledCommand pointed to by the foreign key.

func (*CommandInfo) SetChannel

func (o *CommandInfo) SetChannel(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Channel) error

SetChannel of the commandInfo to the related item. Sets o.R.Channel to related. Adds o to related.R.CommandInfos.

func (*CommandInfo) SetCommandList

func (o *CommandInfo) SetCommandList(ctx context.Context, exec boil.ContextExecutor, insert bool, related *CommandList) error

SetCommandList of the commandInfo to the related item. Sets o.R.CommandList to related. Adds o to related.R.CommandInfo.

func (*CommandInfo) SetCustomCommand

func (o *CommandInfo) SetCustomCommand(ctx context.Context, exec boil.ContextExecutor, insert bool, related *CustomCommand) error

SetCustomCommand of the commandInfo to the related item. Sets o.R.CustomCommand to related. Adds o to related.R.CommandInfo.

func (*CommandInfo) SetRepeatedCommand

func (o *CommandInfo) SetRepeatedCommand(ctx context.Context, exec boil.ContextExecutor, insert bool, related *RepeatedCommand) error

SetRepeatedCommand of the commandInfo to the related item. Sets o.R.RepeatedCommand to related. Adds o to related.R.CommandInfo.

func (*CommandInfo) SetScheduledCommand

func (o *CommandInfo) SetScheduledCommand(ctx context.Context, exec boil.ContextExecutor, insert bool, related *ScheduledCommand) error

SetScheduledCommand of the commandInfo to the related item. Sets o.R.ScheduledCommand to related. Adds o to related.R.CommandInfo.

func (*CommandInfo) Update

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

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

func (o *CommandInfo) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type CommandInfoSlice

type CommandInfoSlice []*CommandInfo

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

func (CommandInfoSlice) DeleteAll

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

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

func (*CommandInfoSlice) ReloadAll

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

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

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

type CommandList

type CommandList 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"`
	UpdatedAt time.Time         `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
	ChannelID int64             `boil:"channel_id" json:"channel_id" toml:"channel_id" yaml:"channel_id"`
	Items     types.StringArray `boil:"items" json:"items" toml:"items" yaml:"items"`

	R *commandListR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L commandListL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

CommandList is an object representing the database table.

func FindCommandList

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

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

func (*CommandList) Channel

func (o *CommandList) Channel(mods ...qm.QueryMod) channelQuery

Channel pointed to by the foreign key.

func (*CommandList) CommandInfo

func (o *CommandList) CommandInfo(mods ...qm.QueryMod) commandInfoQuery

CommandInfo pointed to by the foreign key.

func (*CommandList) Delete

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

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

func (*CommandList) Exists

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

Exists checks if the CommandList row exists.

func (*CommandList) Insert

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

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

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

func (*CommandList) RemoveCommandInfo

func (o *CommandList) RemoveCommandInfo(ctx context.Context, exec boil.ContextExecutor, related *CommandInfo) error

RemoveCommandInfo relationship. Sets o.R.CommandInfo to nil. Removes o from all passed in related items' relationships struct.

func (*CommandList) SetChannel

func (o *CommandList) SetChannel(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Channel) error

SetChannel of the commandList to the related item. Sets o.R.Channel to related. Adds o to related.R.CommandLists.

func (*CommandList) SetCommandInfo

func (o *CommandList) SetCommandInfo(ctx context.Context, exec boil.ContextExecutor, insert bool, related *CommandInfo) error

SetCommandInfo of the commandList to the related item. Sets o.R.CommandInfo to related. Adds o to related.R.CommandList.

func (*CommandList) Update

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

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

func (o *CommandList) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type CommandListSlice

type CommandListSlice []*CommandList

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

func (CommandListSlice) DeleteAll

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

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

func (*CommandListSlice) ReloadAll

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

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

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

type CustomCommand

type CustomCommand 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"`
	UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
	ChannelID int64     `boil:"channel_id" json:"channel_id" toml:"channel_id" yaml:"channel_id"`
	Message   string    `boil:"message" json:"message" toml:"message" yaml:"message"`

	R *customCommandR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L customCommandL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

CustomCommand is an object representing the database table.

func FindCustomCommand

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

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

func (*CustomCommand) Channel

func (o *CustomCommand) Channel(mods ...qm.QueryMod) channelQuery

Channel pointed to by the foreign key.

func (*CustomCommand) CommandInfo

func (o *CustomCommand) CommandInfo(mods ...qm.QueryMod) commandInfoQuery

CommandInfo pointed to by the foreign key.

func (*CustomCommand) Delete

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

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

func (*CustomCommand) Exists

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

Exists checks if the CustomCommand row exists.

func (*CustomCommand) Insert

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

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

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

func (*CustomCommand) RemoveCommandInfo

func (o *CustomCommand) RemoveCommandInfo(ctx context.Context, exec boil.ContextExecutor, related *CommandInfo) error

RemoveCommandInfo relationship. Sets o.R.CommandInfo to nil. Removes o from all passed in related items' relationships struct.

func (*CustomCommand) SetChannel

func (o *CustomCommand) SetChannel(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Channel) error

SetChannel of the customCommand to the related item. Sets o.R.Channel to related. Adds o to related.R.CustomCommands.

func (*CustomCommand) SetCommandInfo

func (o *CustomCommand) SetCommandInfo(ctx context.Context, exec boil.ContextExecutor, insert bool, related *CommandInfo) error

SetCommandInfo of the customCommand to the related item. Sets o.R.CommandInfo to related. Adds o to related.R.CustomCommand.

func (*CustomCommand) Update

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

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

func (o *CustomCommand) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type CustomCommandSlice

type CustomCommandSlice []*CustomCommand

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

func (CustomCommandSlice) DeleteAll

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

func (*CustomCommandSlice) ReloadAll

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

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

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

type Highlight

type Highlight 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"`
	ChannelID     int64     `boil:"channel_id" json:"channel_id" toml:"channel_id" yaml:"channel_id"`
	HighlightedAt time.Time `boil:"highlighted_at" json:"highlighted_at" toml:"highlighted_at" yaml:"highlighted_at"`
	StartedAt     null.Time `boil:"started_at" json:"started_at,omitempty" toml:"started_at" yaml:"started_at,omitempty"`
	Status        string    `boil:"status" json:"status" toml:"status" yaml:"status"`
	Game          string    `boil:"game" json:"game" toml:"game" yaml:"game"`

	R *highlightR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L highlightL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Highlight is an object representing the database table.

func FindHighlight

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

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

func (*Highlight) Channel

func (o *Highlight) Channel(mods ...qm.QueryMod) channelQuery

Channel pointed to by the foreign key.

func (*Highlight) Delete

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

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

func (*Highlight) Exists

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

Exists checks if the Highlight row exists.

func (*Highlight) Insert

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

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

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

func (*Highlight) SetChannel

func (o *Highlight) SetChannel(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Channel) error

SetChannel of the highlight to the related item. Sets o.R.Channel to related. Adds o to related.R.Highlights.

func (*Highlight) Update

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

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

func (o *Highlight) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type HighlightSlice

type HighlightSlice []*Highlight

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

func (HighlightSlice) DeleteAll

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

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

func (*HighlightSlice) ReloadAll

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

func (o HighlightSlice) 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 ModeratedChannel

type ModeratedChannel 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"`
	UpdatedAt        time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
	BotName          string    `boil:"bot_name" json:"bot_name" toml:"bot_name" yaml:"bot_name"`
	BroadcasterID    int64     `boil:"broadcaster_id" json:"broadcaster_id" toml:"broadcaster_id" yaml:"broadcaster_id"`
	BroadcasterLogin string    `boil:"broadcaster_login" json:"broadcaster_login" toml:"broadcaster_login" yaml:"broadcaster_login"`
	BroadcasterName  string    `boil:"broadcaster_name" json:"broadcaster_name" toml:"broadcaster_name" yaml:"broadcaster_name"`

	R *moderatedChannelR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L moderatedChannelL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

ModeratedChannel is an object representing the database table.

func FindModeratedChannel

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

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

func (*ModeratedChannel) Delete

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

func (*ModeratedChannel) Exists

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

Exists checks if the ModeratedChannel row exists.

func (*ModeratedChannel) Insert

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

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

func (*ModeratedChannel) Update

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

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

func (o *ModeratedChannel) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type ModeratedChannelSlice

type ModeratedChannelSlice []*ModeratedChannel

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

func (ModeratedChannelSlice) DeleteAll

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

func (*ModeratedChannelSlice) ReloadAll

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

func (ModeratedChannelSlice) UpdateAll

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

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

type Quote

type Quote 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"`
	UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
	ChannelID int64     `boil:"channel_id" json:"channel_id" toml:"channel_id" yaml:"channel_id"`
	Num       int       `boil:"num" json:"num" toml:"num" yaml:"num"`
	Quote     string    `boil:"quote" json:"quote" toml:"quote" yaml:"quote"`
	Creator   string    `boil:"creator" json:"creator" toml:"creator" yaml:"creator"`
	Editor    string    `boil:"editor" json:"editor" toml:"editor" yaml:"editor"`

	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) Channel

func (o *Quote) Channel(mods ...qm.QueryMod) channelQuery

Channel pointed to by the foreign key.

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) SetChannel

func (o *Quote) SetChannel(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Channel) error

SetChannel of the quote to the related item. Sets o.R.Channel to related. Adds o to related.R.Quotes.

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, opts ...UpsertOptionFunc) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type 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 RepeatedCommand

type RepeatedCommand 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"`
	UpdatedAt     time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
	ChannelID     int64     `boil:"channel_id" json:"channel_id" toml:"channel_id" yaml:"channel_id"`
	CommandInfoID int64     `boil:"command_info_id" json:"command_info_id" toml:"command_info_id" yaml:"command_info_id"`
	Enabled       bool      `boil:"enabled" json:"enabled" toml:"enabled" yaml:"enabled"`
	Delay         int       `boil:"delay" json:"delay" toml:"delay" yaml:"delay"`
	MessageDiff   int64     `boil:"message_diff" json:"message_diff" toml:"message_diff" yaml:"message_diff"`
	LastCount     int64     `boil:"last_count" json:"last_count" toml:"last_count" yaml:"last_count"`
	InitTimestamp null.Time `boil:"init_timestamp" json:"init_timestamp,omitempty" toml:"init_timestamp" yaml:"init_timestamp,omitempty"`
	Creator       string    `boil:"creator" json:"creator" toml:"creator" yaml:"creator"`
	Editor        string    `boil:"editor" json:"editor" toml:"editor" yaml:"editor"`

	R *repeatedCommandR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L repeatedCommandL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

RepeatedCommand is an object representing the database table.

func FindRepeatedCommand

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

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

func (*RepeatedCommand) Channel

func (o *RepeatedCommand) Channel(mods ...qm.QueryMod) channelQuery

Channel pointed to by the foreign key.

func (*RepeatedCommand) CommandInfo

func (o *RepeatedCommand) CommandInfo(mods ...qm.QueryMod) commandInfoQuery

CommandInfo pointed to by the foreign key.

func (*RepeatedCommand) Delete

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

func (*RepeatedCommand) Exists

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

Exists checks if the RepeatedCommand row exists.

func (*RepeatedCommand) Insert

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

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

func (*RepeatedCommand) SetChannel

func (o *RepeatedCommand) SetChannel(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Channel) error

SetChannel of the repeatedCommand to the related item. Sets o.R.Channel to related. Adds o to related.R.RepeatedCommands.

func (*RepeatedCommand) SetCommandInfo

func (o *RepeatedCommand) SetCommandInfo(ctx context.Context, exec boil.ContextExecutor, insert bool, related *CommandInfo) error

SetCommandInfo of the repeatedCommand to the related item. Sets o.R.CommandInfo to related. Adds o to related.R.RepeatedCommand.

func (*RepeatedCommand) Update

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

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

func (o *RepeatedCommand) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type RepeatedCommandSlice

type RepeatedCommandSlice []*RepeatedCommand

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

func (RepeatedCommandSlice) DeleteAll

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

func (*RepeatedCommandSlice) ReloadAll

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

func (RepeatedCommandSlice) UpdateAll

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

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

type ScheduledCommand

type ScheduledCommand 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"`
	UpdatedAt      time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
	ChannelID      int64     `boil:"channel_id" json:"channel_id" toml:"channel_id" yaml:"channel_id"`
	CommandInfoID  int64     `boil:"command_info_id" json:"command_info_id" toml:"command_info_id" yaml:"command_info_id"`
	Enabled        bool      `boil:"enabled" json:"enabled" toml:"enabled" yaml:"enabled"`
	CronExpression string    `boil:"cron_expression" json:"cron_expression" toml:"cron_expression" yaml:"cron_expression"`
	MessageDiff    int64     `boil:"message_diff" json:"message_diff" toml:"message_diff" yaml:"message_diff"`
	LastCount      int64     `boil:"last_count" json:"last_count" toml:"last_count" yaml:"last_count"`
	Creator        string    `boil:"creator" json:"creator" toml:"creator" yaml:"creator"`
	Editor         string    `boil:"editor" json:"editor" toml:"editor" yaml:"editor"`

	R *scheduledCommandR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L scheduledCommandL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

ScheduledCommand is an object representing the database table.

func FindScheduledCommand

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

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

func (*ScheduledCommand) Channel

func (o *ScheduledCommand) Channel(mods ...qm.QueryMod) channelQuery

Channel pointed to by the foreign key.

func (*ScheduledCommand) CommandInfo

func (o *ScheduledCommand) CommandInfo(mods ...qm.QueryMod) commandInfoQuery

CommandInfo pointed to by the foreign key.

func (*ScheduledCommand) Delete

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

func (*ScheduledCommand) Exists

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

Exists checks if the ScheduledCommand row exists.

func (*ScheduledCommand) Insert

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

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

func (*ScheduledCommand) SetChannel

func (o *ScheduledCommand) SetChannel(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Channel) error

SetChannel of the scheduledCommand to the related item. Sets o.R.Channel to related. Adds o to related.R.ScheduledCommands.

func (*ScheduledCommand) SetCommandInfo

func (o *ScheduledCommand) SetCommandInfo(ctx context.Context, exec boil.ContextExecutor, insert bool, related *CommandInfo) error

SetCommandInfo of the scheduledCommand to the related item. Sets o.R.CommandInfo to related. Adds o to related.R.ScheduledCommand.

func (*ScheduledCommand) Update

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

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

func (o *ScheduledCommand) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type ScheduledCommandSlice

type ScheduledCommandSlice []*ScheduledCommand

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

func (ScheduledCommandSlice) DeleteAll

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

func (*ScheduledCommandSlice) ReloadAll

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

func (ScheduledCommandSlice) UpdateAll

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

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

type TwitchToken

type TwitchToken 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"`
	UpdatedAt    time.Time         `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
	TwitchID     int64             `boil:"twitch_id" json:"twitch_id" toml:"twitch_id" yaml:"twitch_id"`
	BotName      null.String       `boil:"bot_name" json:"bot_name,omitempty" toml:"bot_name" yaml:"bot_name,omitempty"`
	AccessToken  string            `boil:"access_token" json:"access_token" toml:"access_token" yaml:"access_token"`
	TokenType    string            `boil:"token_type" json:"token_type" toml:"token_type" yaml:"token_type"`
	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"`
	Scopes       types.StringArray `boil:"scopes" json:"scopes,omitempty" toml:"scopes" yaml:"scopes,omitempty"`

	R *twitchTokenR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L twitchTokenL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

TwitchToken is an object representing the database table.

func FindTwitchToken

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

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

func (*TwitchToken) Delete

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

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

func (*TwitchToken) Exists

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

Exists checks if the TwitchToken row exists.

func (*TwitchToken) Insert

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

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

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

func (*TwitchToken) Update

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

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

func (o *TwitchToken) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type TwitchTokenSlice

type TwitchTokenSlice []*TwitchToken

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

func (TwitchTokenSlice) DeleteAll

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

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

func (*TwitchTokenSlice) ReloadAll

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

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

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

type UpsertOptionFunc

type UpsertOptionFunc func(o *UpsertOptions)

func UpsertConflictTarget

func UpsertConflictTarget(conflictTarget string) UpsertOptionFunc

func UpsertUpdateSet

func UpsertUpdateSet(updateSet string) UpsertOptionFunc

type UpsertOptions

type UpsertOptions struct {
	// contains filtered or unexported fields
}

type Variable

type Variable 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"`
	UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
	ChannelID int64     `boil:"channel_id" json:"channel_id" toml:"channel_id" yaml:"channel_id"`
	Name      string    `boil:"name" json:"name" toml:"name" yaml:"name"`
	Value     string    `boil:"value" json:"value" toml:"value" yaml:"value"`

	R *variableR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L variableL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Variable is an object representing the database table.

func FindVariable

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

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

func (*Variable) Channel

func (o *Variable) Channel(mods ...qm.QueryMod) channelQuery

Channel pointed to by the foreign key.

func (*Variable) Delete

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

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

func (*Variable) Exists

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

Exists checks if the Variable row exists.

func (*Variable) Insert

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

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

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

func (*Variable) SetChannel

func (o *Variable) SetChannel(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Channel) error

SetChannel of the variable to the related item. Sets o.R.Channel to related. Adds o to related.R.Variables.

func (*Variable) Update

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

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

func (o *Variable) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type VariableSlice

type VariableSlice []*Variable

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

func (VariableSlice) DeleteAll

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

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

func (*VariableSlice) ReloadAll

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

func (o VariableSlice) 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