models

package
v0.0.0-...-a887317 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2024 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AuctionColumns = struct {
	ID             string
	PlayerID       string
	CardID         string
	TimeExtensions string
	EndsAt         string
	CreatedAt      string
	DeletedAt      string
}{
	ID:             "id",
	PlayerID:       "player_id",
	CardID:         "card_id",
	TimeExtensions: "time_extensions",
	EndsAt:         "ends_at",
	CreatedAt:      "created_at",
	DeletedAt:      "deleted_at",
}
View Source
var AuctionRels = struct {
	Card         string
	Player       string
	AuctionsBids string
}{
	Card:         "Card",
	Player:       "Player",
	AuctionsBids: "AuctionsBids",
}

AuctionRels is where relationship names are stored.

View Source
var AuctionTableColumns = struct {
	ID             string
	PlayerID       string
	CardID         string
	TimeExtensions string
	EndsAt         string
	CreatedAt      string
	DeletedAt      string
}{
	ID:             "auctions.id",
	PlayerID:       "auctions.player_id",
	CardID:         "auctions.card_id",
	TimeExtensions: "auctions.time_extensions",
	EndsAt:         "auctions.ends_at",
	CreatedAt:      "auctions.created_at",
	DeletedAt:      "auctions.deleted_at",
}
View Source
var AuctionWhere = struct {
	ID             whereHelperstring
	PlayerID       whereHelperstring
	CardID         whereHelperstring
	TimeExtensions whereHelperint
	EndsAt         whereHelpertime_Time
	CreatedAt      whereHelpertime_Time
	DeletedAt      whereHelpernull_Time
}{
	ID:             whereHelperstring{/* contains filtered or unexported fields */},
	PlayerID:       whereHelperstring{/* contains filtered or unexported fields */},
	CardID:         whereHelperstring{/* contains filtered or unexported fields */},
	TimeExtensions: whereHelperint{/* contains filtered or unexported fields */},
	EndsAt:         whereHelpertime_Time{/* contains filtered or unexported fields */},
	CreatedAt:      whereHelpertime_Time{/* contains filtered or unexported fields */},
	DeletedAt:      whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var AuctionsBidColumns = struct {
	ID        string
	AuctionID string
	PlayerID  string
	Price     string
	CreatedAt string
	UpdatedAt string
	DeletedAt string
}{
	ID:        "id",
	AuctionID: "auction_id",
	PlayerID:  "player_id",
	Price:     "price",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
	DeletedAt: "deleted_at",
}
View Source
var AuctionsBidRels = struct {
	Auction string
	Player  string
}{
	Auction: "Auction",
	Player:  "Player",
}

AuctionsBidRels is where relationship names are stored.

View Source
var AuctionsBidTableColumns = struct {
	ID        string
	AuctionID string
	PlayerID  string
	Price     string
	CreatedAt string
	UpdatedAt string
	DeletedAt string
}{
	ID:        "auctions_bids.id",
	AuctionID: "auctions_bids.auction_id",
	PlayerID:  "auctions_bids.player_id",
	Price:     "auctions_bids.price",
	CreatedAt: "auctions_bids.created_at",
	UpdatedAt: "auctions_bids.updated_at",
	DeletedAt: "auctions_bids.deleted_at",
}
View Source
var AuctionsBidWhere = struct {
	ID        whereHelperstring
	AuctionID whereHelperstring
	PlayerID  whereHelperstring
	Price     whereHelperint64
	CreatedAt whereHelpertime_Time
	UpdatedAt whereHelpertime_Time
	DeletedAt whereHelpernull_Time
}{
	ID:        whereHelperstring{/* contains filtered or unexported fields */},
	AuctionID: whereHelperstring{/* contains filtered or unexported fields */},
	PlayerID:  whereHelperstring{/* contains filtered or unexported fields */},
	Price:     whereHelperint64{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	DeletedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var AuthCookieColumns = struct {
	ID        string
	PlayerID  string
	ExpiresAt string
	CreatedAt string
	UpdatedAt string
	DeletedAt string
}{
	ID:        "id",
	PlayerID:  "player_id",
	ExpiresAt: "expires_at",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
	DeletedAt: "deleted_at",
}
View Source
var AuthCookieRels = struct {
	Player string
}{
	Player: "Player",
}

AuthCookieRels is where relationship names are stored.

View Source
var AuthCookieTableColumns = struct {
	ID        string
	PlayerID  string
	ExpiresAt string
	CreatedAt string
	UpdatedAt string
	DeletedAt string
}{
	ID:        "auth_cookies.id",
	PlayerID:  "auth_cookies.player_id",
	ExpiresAt: "auth_cookies.expires_at",
	CreatedAt: "auth_cookies.created_at",
	UpdatedAt: "auth_cookies.updated_at",
	DeletedAt: "auth_cookies.deleted_at",
}
View Source
var AuthCookieWhere = struct {
	ID        whereHelperstring
	PlayerID  whereHelperstring
	ExpiresAt whereHelpertime_Time
	CreatedAt whereHelpertime_Time
	UpdatedAt whereHelpertime_Time
	DeletedAt whereHelpernull_Time
}{
	ID:        whereHelperstring{/* contains filtered or unexported fields */},
	PlayerID:  whereHelperstring{/* contains filtered or unexported fields */},
	ExpiresAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	DeletedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var AuthDiscordStateColumns = struct {
	State       string
	PlayerID    string
	RedirectURI string
	ExpiresAt   string
	Type        string
	CreatedAt   string
	UpdatedAt   string
	DeletedAt   string
}{
	State:       "state",
	PlayerID:    "player_id",
	RedirectURI: "redirect_uri",
	ExpiresAt:   "expires_at",
	Type:        "type",
	CreatedAt:   "created_at",
	UpdatedAt:   "updated_at",
	DeletedAt:   "deleted_at",
}
View Source
var AuthDiscordStateRels = struct {
	Player string
}{
	Player: "Player",
}

AuthDiscordStateRels is where relationship names are stored.

View Source
var AuthDiscordStateTableColumns = struct {
	State       string
	PlayerID    string
	RedirectURI string
	ExpiresAt   string
	Type        string
	CreatedAt   string
	UpdatedAt   string
	DeletedAt   string
}{
	State:       "auth_discord_states.state",
	PlayerID:    "auth_discord_states.player_id",
	RedirectURI: "auth_discord_states.redirect_uri",
	ExpiresAt:   "auth_discord_states.expires_at",
	Type:        "auth_discord_states.type",
	CreatedAt:   "auth_discord_states.created_at",
	UpdatedAt:   "auth_discord_states.updated_at",
	DeletedAt:   "auth_discord_states.deleted_at",
}
View Source
var AuthDiscordStateWhere = struct {
	State       whereHelperstring
	PlayerID    whereHelpernull_String
	RedirectURI whereHelperstring
	ExpiresAt   whereHelpertime_Time
	Type        whereHelperAuthDiscordStatesType
	CreatedAt   whereHelpertime_Time
	UpdatedAt   whereHelpertime_Time
	DeletedAt   whereHelpernull_Time
}{
	State:       whereHelperstring{/* contains filtered or unexported fields */},
	PlayerID:    whereHelpernull_String{/* contains filtered or unexported fields */},
	RedirectURI: whereHelperstring{/* contains filtered or unexported fields */},
	ExpiresAt:   whereHelpertime_Time{/* contains filtered or unexported fields */},
	Type:        whereHelperAuthDiscordStatesType{/* contains filtered or unexported fields */},
	CreatedAt:   whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:   whereHelpertime_Time{/* contains filtered or unexported fields */},
	DeletedAt:   whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var AuthGithubStateColumns = struct {
	State     string
	PlayerID  string
	ExpiresAt string
	Type      string
	CreatedAt string
	UpdatedAt string
	DeletedAt string
}{
	State:     "state",
	PlayerID:  "player_id",
	ExpiresAt: "expires_at",
	Type:      "type",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
	DeletedAt: "deleted_at",
}
View Source
var AuthGithubStateRels = struct {
	Player string
}{
	Player: "Player",
}

AuthGithubStateRels is where relationship names are stored.

View Source
var AuthGithubStateTableColumns = struct {
	State     string
	PlayerID  string
	ExpiresAt string
	Type      string
	CreatedAt string
	UpdatedAt string
	DeletedAt string
}{
	State:     "auth_github_states.state",
	PlayerID:  "auth_github_states.player_id",
	ExpiresAt: "auth_github_states.expires_at",
	Type:      "auth_github_states.type",
	CreatedAt: "auth_github_states.created_at",
	UpdatedAt: "auth_github_states.updated_at",
	DeletedAt: "auth_github_states.deleted_at",
}
View Source
var AuthGithubStateWhere = struct {
	State     whereHelperstring
	PlayerID  whereHelperstring
	ExpiresAt whereHelpertime_Time
	Type      whereHelperAuthGithubStatesType
	CreatedAt whereHelpertime_Time
	UpdatedAt whereHelpertime_Time
	DeletedAt whereHelpernull_Time
}{
	State:     whereHelperstring{/* contains filtered or unexported fields */},
	PlayerID:  whereHelperstring{/* contains filtered or unexported fields */},
	ExpiresAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	Type:      whereHelperAuthGithubStatesType{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	DeletedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var CardColumns = struct {
	ID              string
	PlayerID        string
	CreatedAt       string
	UpdatedAt       string
	DeletedAt       string
	XP              string
	NextLevelXP     string
	CardType        string
	IndividualValue string
	Rarity          string
	Level           string
	Buffs           string
	Metadata        string
	Available       string
	OwnedAt         string
}{
	ID:              "id",
	PlayerID:        "player_id",
	CreatedAt:       "created_at",
	UpdatedAt:       "updated_at",
	DeletedAt:       "deleted_at",
	XP:              "xp",
	NextLevelXP:     "next_level_xp",
	CardType:        "card_type",
	IndividualValue: "individual_value",
	Rarity:          "rarity",
	Level:           "level",
	Buffs:           "buffs",
	Metadata:        "metadata",
	Available:       "available",
	OwnedAt:         "owned_at",
}
View Source
var CardRels = struct {
	Player              string
	IDCardsStat         string
	CardsStat           string
	Auctions            string
	Listings            string
	PlayerCardFavorites string
	PlayerCards         string
	PlayerCardsDecks    string
	SelectedCardPlayers string
}{
	Player:              "Player",
	IDCardsStat:         "IDCardsStat",
	CardsStat:           "CardsStat",
	Auctions:            "Auctions",
	Listings:            "Listings",
	PlayerCardFavorites: "PlayerCardFavorites",
	PlayerCards:         "PlayerCards",
	PlayerCardsDecks:    "PlayerCardsDecks",
	SelectedCardPlayers: "SelectedCardPlayers",
}

CardRels is where relationship names are stored.

View Source
var CardTableColumns = struct {
	ID              string
	PlayerID        string
	CreatedAt       string
	UpdatedAt       string
	DeletedAt       string
	XP              string
	NextLevelXP     string
	CardType        string
	IndividualValue string
	Rarity          string
	Level           string
	Buffs           string
	Metadata        string
	Available       string
	OwnedAt         string
}{
	ID:              "cards.id",
	PlayerID:        "cards.player_id",
	CreatedAt:       "cards.created_at",
	UpdatedAt:       "cards.updated_at",
	DeletedAt:       "cards.deleted_at",
	XP:              "cards.xp",
	NextLevelXP:     "cards.next_level_xp",
	CardType:        "cards.card_type",
	IndividualValue: "cards.individual_value",
	Rarity:          "cards.rarity",
	Level:           "cards.level",
	Buffs:           "cards.buffs",
	Metadata:        "cards.metadata",
	Available:       "cards.available",
	OwnedAt:         "cards.owned_at",
}
View Source
var CardTypeColumns = struct {
	CardType   string
	Name       string
	Categories string
}{
	CardType:   "card_type",
	Name:       "name",
	Categories: "categories",
}
View Source
var CardTypeRels = struct {
}{}

CardTypeRels is where relationship names are stored.

View Source
var CardTypeTableColumns = struct {
	CardType   string
	Name       string
	Categories string
}{
	CardType:   "card_types.card_type",
	Name:       "card_types.name",
	Categories: "card_types.categories",
}
View Source
var CardTypeWhere = struct {
	CardType   whereHelperstring
	Name       whereHelperstring
	Categories whereHelperstring
}{
	CardType:   whereHelperstring{/* contains filtered or unexported fields */},
	Name:       whereHelperstring{/* contains filtered or unexported fields */},
	Categories: whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var CardWhere = struct {
	ID              whereHelperstring
	PlayerID        whereHelperstring
	CreatedAt       whereHelpertime_Time
	UpdatedAt       whereHelpertime_Time
	DeletedAt       whereHelpernull_Time
	XP              whereHelperint64
	NextLevelXP     whereHelperint64
	CardType        whereHelperstring
	IndividualValue whereHelperfloat64
	Rarity          whereHelperint
	Level           whereHelperint
	Buffs           whereHelperint
	Metadata        whereHelpertypes_JSON
	Available       whereHelperbool
	OwnedAt         whereHelpertime_Time
}{
	ID:              whereHelperstring{/* contains filtered or unexported fields */},
	PlayerID:        whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt:       whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:       whereHelpertime_Time{/* contains filtered or unexported fields */},
	DeletedAt:       whereHelpernull_Time{/* contains filtered or unexported fields */},
	XP:              whereHelperint64{/* contains filtered or unexported fields */},
	NextLevelXP:     whereHelperint64{/* contains filtered or unexported fields */},
	CardType:        whereHelperstring{/* contains filtered or unexported fields */},
	IndividualValue: whereHelperfloat64{/* contains filtered or unexported fields */},
	Rarity:          whereHelperint{/* contains filtered or unexported fields */},
	Level:           whereHelperint{/* contains filtered or unexported fields */},
	Buffs:           whereHelperint{/* contains filtered or unexported fields */},
	Metadata:        whereHelpertypes_JSON{/* contains filtered or unexported fields */},
	Available:       whereHelperbool{/* contains filtered or unexported fields */},
	OwnedAt:         whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var CardsStatColumns = struct {
	CardID    string
	Health    string
	Armor     string
	Damage    string
	Healing   string
	Speed     string
	CreatedAt string
	UpdatedAt string
	DeletedAt string
}{
	CardID:    "card_id",
	Health:    "health",
	Armor:     "armor",
	Damage:    "damage",
	Healing:   "healing",
	Speed:     "speed",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
	DeletedAt: "deleted_at",
}
View Source
var CardsStatRels = struct {
	Card   string
	IDCard string
}{
	Card:   "Card",
	IDCard: "IDCard",
}

CardsStatRels is where relationship names are stored.

View Source
var CardsStatTableColumns = struct {
	CardID    string
	Health    string
	Armor     string
	Damage    string
	Healing   string
	Speed     string
	CreatedAt string
	UpdatedAt string
	DeletedAt string
}{
	CardID:    "cards_stats.card_id",
	Health:    "cards_stats.health",
	Armor:     "cards_stats.armor",
	Damage:    "cards_stats.damage",
	Healing:   "cards_stats.healing",
	Speed:     "cards_stats.speed",
	CreatedAt: "cards_stats.created_at",
	UpdatedAt: "cards_stats.updated_at",
	DeletedAt: "cards_stats.deleted_at",
}
View Source
var CardsStatWhere = struct {
	CardID    whereHelperstring
	Health    whereHelperint
	Armor     whereHelperint
	Damage    whereHelperint
	Healing   whereHelperint
	Speed     whereHelperint
	CreatedAt whereHelpertime_Time
	UpdatedAt whereHelpertime_Time
	DeletedAt whereHelpernull_Time
}{
	CardID:    whereHelperstring{/* contains filtered or unexported fields */},
	Health:    whereHelperint{/* contains filtered or unexported fields */},
	Armor:     whereHelperint{/* contains filtered or unexported fields */},
	Damage:    whereHelperint{/* contains filtered or unexported fields */},
	Healing:   whereHelperint{/* contains filtered or unexported fields */},
	Speed:     whereHelperint{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	DeletedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var DailyColumns = struct {
	PlayerID   string
	HasVoted   string
	LastVoteAt string
	Streak     string
	CreatedAt  string
	UpdatedAt  string
	DeletedAt  string
}{
	PlayerID:   "player_id",
	HasVoted:   "has_voted",
	LastVoteAt: "last_vote_at",
	Streak:     "streak",
	CreatedAt:  "created_at",
	UpdatedAt:  "updated_at",
	DeletedAt:  "deleted_at",
}
View Source
var DailyRels = struct {
	Player string
}{
	Player: "Player",
}

DailyRels is where relationship names are stored.

View Source
var DailyTableColumns = struct {
	PlayerID   string
	HasVoted   string
	LastVoteAt string
	Streak     string
	CreatedAt  string
	UpdatedAt  string
	DeletedAt  string
}{
	PlayerID:   "dailies.player_id",
	HasVoted:   "dailies.has_voted",
	LastVoteAt: "dailies.last_vote_at",
	Streak:     "dailies.streak",
	CreatedAt:  "dailies.created_at",
	UpdatedAt:  "dailies.updated_at",
	DeletedAt:  "dailies.deleted_at",
}
View Source
var DailyWhere = struct {
	PlayerID   whereHelperstring
	HasVoted   whereHelperbool
	LastVoteAt whereHelpertime_Time
	Streak     whereHelperint
	CreatedAt  whereHelpertime_Time
	UpdatedAt  whereHelpertime_Time
	DeletedAt  whereHelpernull_Time
}{
	PlayerID:   whereHelperstring{/* contains filtered or unexported fields */},
	HasVoted:   whereHelperbool{/* contains filtered or unexported fields */},
	LastVoteAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	Streak:     whereHelperint{/* contains filtered or unexported fields */},
	CreatedAt:  whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:  whereHelpertime_Time{/* contains filtered or unexported fields */},
	DeletedAt:  whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var DungeonColumns = struct {
	ID        string
	PlayerID  string
	Seed      string
	CreatedAt string
	UpdatedAt string
	DeletedAt string
}{
	ID:        "id",
	PlayerID:  "player_id",
	Seed:      "seed",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
	DeletedAt: "deleted_at",
}
View Source
var DungeonRels = struct {
	Player string
}{
	Player: "Player",
}

DungeonRels is where relationship names are stored.

View Source
var DungeonTableColumns = struct {
	ID        string
	PlayerID  string
	Seed      string
	CreatedAt string
	UpdatedAt string
	DeletedAt string
}{
	ID:        "dungeons.id",
	PlayerID:  "dungeons.player_id",
	Seed:      "dungeons.seed",
	CreatedAt: "dungeons.created_at",
	UpdatedAt: "dungeons.updated_at",
	DeletedAt: "dungeons.deleted_at",
}
View Source
var DungeonWhere = struct {
	ID        whereHelperstring
	PlayerID  whereHelperstring
	Seed      whereHelperint64
	CreatedAt whereHelpertime_Time
	UpdatedAt whereHelpertime_Time
	DeletedAt whereHelpernull_Time
}{
	ID:        whereHelperstring{/* contains filtered or unexported fields */},
	PlayerID:  whereHelperstring{/* contains filtered or unexported fields */},
	Seed:      whereHelperint64{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	DeletedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var ErrSyncFail = errors.New("models: failed to synchronize data after insert")

ErrSyncFail occurs during insert when the record could not be retrieved in order to populate default value information. This usually happens when LastInsertId fails or there was a primary key configuration that was not resolvable.

View Source
var GithubStarColumns = struct {
	PlayerID     string
	GithubUserID string
	HasStarred   string
	CreatedAt    string
	UpdatedAt    string
	DeletedAt    string
}{
	PlayerID:     "player_id",
	GithubUserID: "github_user_id",
	HasStarred:   "has_starred",
	CreatedAt:    "created_at",
	UpdatedAt:    "updated_at",
	DeletedAt:    "deleted_at",
}
View Source
var GithubStarRels = struct {
	Player   string
	IDPlayer string
}{
	Player:   "Player",
	IDPlayer: "IDPlayer",
}

GithubStarRels is where relationship names are stored.

View Source
var GithubStarTableColumns = struct {
	PlayerID     string
	GithubUserID string
	HasStarred   string
	CreatedAt    string
	UpdatedAt    string
	DeletedAt    string
}{
	PlayerID:     "github_stars.player_id",
	GithubUserID: "github_stars.github_user_id",
	HasStarred:   "github_stars.has_starred",
	CreatedAt:    "github_stars.created_at",
	UpdatedAt:    "github_stars.updated_at",
	DeletedAt:    "github_stars.deleted_at",
}
View Source
var GithubStarWhere = struct {
	PlayerID     whereHelperstring
	GithubUserID whereHelpernull_String
	HasStarred   whereHelperbool
	CreatedAt    whereHelpertime_Time
	UpdatedAt    whereHelpertime_Time
	DeletedAt    whereHelpernull_Time
}{
	PlayerID:     whereHelperstring{/* contains filtered or unexported fields */},
	GithubUserID: whereHelpernull_String{/* contains filtered or unexported fields */},
	HasStarred:   whereHelperbool{/* contains filtered or unexported fields */},
	CreatedAt:    whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:    whereHelpertime_Time{/* contains filtered or unexported fields */},
	DeletedAt:    whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var JobColumns = struct {
	ID        string
	Jobkey    string
	Retries   string
	RunAt     string
	Params    string
	CreatedAt string
	UpdatedAt string
	DeletedAt string
	LastRunID string
	Recurring string
	DeltaTime string
	Errored   string
}{
	ID:        "id",
	Jobkey:    "jobkey",
	Retries:   "retries",
	RunAt:     "run_at",
	Params:    "params",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
	DeletedAt: "deleted_at",
	LastRunID: "last_run_id",
	Recurring: "recurring",
	DeltaTime: "delta_time",
	Errored:   "errored",
}
View Source
var JobRels = struct {
}{}

JobRels is where relationship names are stored.

View Source
var JobTableColumns = struct {
	ID        string
	Jobkey    string
	Retries   string
	RunAt     string
	Params    string
	CreatedAt string
	UpdatedAt string
	DeletedAt string
	LastRunID string
	Recurring string
	DeltaTime string
	Errored   string
}{
	ID:        "jobs.id",
	Jobkey:    "jobs.jobkey",
	Retries:   "jobs.retries",
	RunAt:     "jobs.run_at",
	Params:    "jobs.params",
	CreatedAt: "jobs.created_at",
	UpdatedAt: "jobs.updated_at",
	DeletedAt: "jobs.deleted_at",
	LastRunID: "jobs.last_run_id",
	Recurring: "jobs.recurring",
	DeltaTime: "jobs.delta_time",
	Errored:   "jobs.errored",
}
View Source
var JobWhere = struct {
	ID        whereHelperstring
	Jobkey    whereHelperstring
	Retries   whereHelperint
	RunAt     whereHelpertime_Time
	Params    whereHelpertypes_JSON
	CreatedAt whereHelpertime_Time
	UpdatedAt whereHelpertime_Time
	DeletedAt whereHelpernull_Time
	LastRunID whereHelperint64
	Recurring whereHelperbool
	DeltaTime whereHelperint64
	Errored   whereHelperbool
}{
	ID:        whereHelperstring{/* contains filtered or unexported fields */},
	Jobkey:    whereHelperstring{/* contains filtered or unexported fields */},
	Retries:   whereHelperint{/* contains filtered or unexported fields */},
	RunAt:     whereHelpertime_Time{/* contains filtered or unexported fields */},
	Params:    whereHelpertypes_JSON{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	DeletedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
	LastRunID: whereHelperint64{/* contains filtered or unexported fields */},
	Recurring: whereHelperbool{/* contains filtered or unexported fields */},
	DeltaTime: whereHelperint64{/* contains filtered or unexported fields */},
	Errored:   whereHelperbool{/* contains filtered or unexported fields */},
}
View Source
var ListingColumns = struct {
	ID        string
	PlayerID  string
	CardID    string
	Price     string
	Note      string
	CreatedAt string
	UpdatedAt string
	DeletedAt string
}{
	ID:        "id",
	PlayerID:  "player_id",
	CardID:    "card_id",
	Price:     "price",
	Note:      "note",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
	DeletedAt: "deleted_at",
}
View Source
var ListingRels = struct {
	Card   string
	Player string
}{
	Card:   "Card",
	Player: "Player",
}

ListingRels is where relationship names are stored.

View Source
var ListingTableColumns = struct {
	ID        string
	PlayerID  string
	CardID    string
	Price     string
	Note      string
	CreatedAt string
	UpdatedAt string
	DeletedAt string
}{
	ID:        "listings.id",
	PlayerID:  "listings.player_id",
	CardID:    "listings.card_id",
	Price:     "listings.price",
	Note:      "listings.note",
	CreatedAt: "listings.created_at",
	UpdatedAt: "listings.updated_at",
	DeletedAt: "listings.deleted_at",
}
View Source
var ListingWhere = struct {
	ID        whereHelperstring
	PlayerID  whereHelperstring
	CardID    whereHelperstring
	Price     whereHelperint64
	Note      whereHelperstring
	CreatedAt whereHelpertime_Time
	UpdatedAt whereHelpertime_Time
	DeletedAt whereHelpernull_Time
}{
	ID:        whereHelperstring{/* contains filtered or unexported fields */},
	PlayerID:  whereHelperstring{/* contains filtered or unexported fields */},
	CardID:    whereHelperstring{/* contains filtered or unexported fields */},
	Price:     whereHelperint64{/* contains filtered or unexported fields */},
	Note:      whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	DeletedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var LootBoxColumns = struct {
	ID        string
	PlayerID  string
	Type      string
	Metadata  string
	CreatedAt string
	UpdatedAt string
	DeletedAt string
}{
	ID:        "id",
	PlayerID:  "player_id",
	Type:      "type",
	Metadata:  "metadata",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
	DeletedAt: "deleted_at",
}
View Source
var LootBoxRels = struct {
	Player string
}{
	Player: "Player",
}

LootBoxRels is where relationship names are stored.

View Source
var LootBoxTableColumns = struct {
	ID        string
	PlayerID  string
	Type      string
	Metadata  string
	CreatedAt string
	UpdatedAt string
	DeletedAt string
}{
	ID:        "loot_boxes.id",
	PlayerID:  "loot_boxes.player_id",
	Type:      "loot_boxes.type",
	Metadata:  "loot_boxes.metadata",
	CreatedAt: "loot_boxes.created_at",
	UpdatedAt: "loot_boxes.updated_at",
	DeletedAt: "loot_boxes.deleted_at",
}
View Source
var LootBoxWhere = struct {
	ID        whereHelperstring
	PlayerID  whereHelperstring
	Type      whereHelperLootBoxesType
	Metadata  whereHelpernull_JSON
	CreatedAt whereHelpertime_Time
	UpdatedAt whereHelpertime_Time
	DeletedAt whereHelpernull_Time
}{
	ID:        whereHelperstring{/* contains filtered or unexported fields */},
	PlayerID:  whereHelperstring{/* contains filtered or unexported fields */},
	Type:      whereHelperLootBoxesType{/* contains filtered or unexported fields */},
	Metadata:  whereHelpernull_JSON{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	DeletedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var PlayerCardColumns = struct {
	PlayerID string
	CardID   string
	Position string
}{
	PlayerID: "player_id",
	CardID:   "card_id",
	Position: "position",
}
View Source
var PlayerCardFavoriteColumns = struct {
	PlayerID string
	CardID   string
	Position string
}{
	PlayerID: "player_id",
	CardID:   "card_id",
	Position: "position",
}
View Source
var PlayerCardFavoriteRels = struct {
	Card   string
	Player string
}{
	Card:   "Card",
	Player: "Player",
}

PlayerCardFavoriteRels is where relationship names are stored.

View Source
var PlayerCardFavoriteTableColumns = struct {
	PlayerID string
	CardID   string
	Position string
}{
	PlayerID: "player_card_favorites.player_id",
	CardID:   "player_card_favorites.card_id",
	Position: "player_card_favorites.position",
}
View Source
var PlayerCardFavoriteWhere = struct {
	PlayerID whereHelperstring
	CardID   whereHelperstring
	Position whereHelperint
}{
	PlayerID: whereHelperstring{/* contains filtered or unexported fields */},
	CardID:   whereHelperstring{/* contains filtered or unexported fields */},
	Position: whereHelperint{/* contains filtered or unexported fields */},
}
View Source
var PlayerCardRels = struct {
	Card   string
	Player string
}{
	Card:   "Card",
	Player: "Player",
}

PlayerCardRels is where relationship names are stored.

View Source
var PlayerCardTableColumns = struct {
	PlayerID string
	CardID   string
	Position string
}{
	PlayerID: "player_cards.player_id",
	CardID:   "player_cards.card_id",
	Position: "player_cards.position",
}
View Source
var PlayerCardWhere = struct {
	PlayerID whereHelperstring
	CardID   whereHelperstring
	Position whereHelperint
}{
	PlayerID: whereHelperstring{/* contains filtered or unexported fields */},
	CardID:   whereHelperstring{/* contains filtered or unexported fields */},
	Position: whereHelperint{/* contains filtered or unexported fields */},
}
View Source
var PlayerCardsDeckColumns = struct {
	PlayerID string
	CardID   string
	Position string
}{
	PlayerID: "player_id",
	CardID:   "card_id",
	Position: "position",
}
View Source
var PlayerCardsDeckRels = struct {
	Card   string
	Player string
}{
	Card:   "Card",
	Player: "Player",
}

PlayerCardsDeckRels is where relationship names are stored.

View Source
var PlayerCardsDeckTableColumns = struct {
	PlayerID string
	CardID   string
	Position string
}{
	PlayerID: "player_cards_deck.player_id",
	CardID:   "player_cards_deck.card_id",
	Position: "player_cards_deck.position",
}
View Source
var PlayerCardsDeckWhere = struct {
	PlayerID whereHelperstring
	CardID   whereHelperstring
	Position whereHelperint
}{
	PlayerID: whereHelperstring{/* contains filtered or unexported fields */},
	CardID:   whereHelperstring{/* contains filtered or unexported fields */},
	Position: whereHelperint{/* contains filtered or unexported fields */},
}
View Source
var PlayerColumns = struct {
	ID             string
	CreatedAt      string
	UpdatedAt      string
	DeletedAt      string
	SelectedCardID string
	Liens          string
	Level          string
	XP             string
	NextLevelXP    string
	BackpackLevel  string
	LiensBidded    string
	Username       string
	SlotsReserved  string
}{
	ID:             "id",
	CreatedAt:      "created_at",
	UpdatedAt:      "updated_at",
	DeletedAt:      "deleted_at",
	SelectedCardID: "selected_card_id",
	Liens:          "liens",
	Level:          "level",
	XP:             "xp",
	NextLevelXP:    "next_level_xp",
	BackpackLevel:  "backpack_level",
	LiensBidded:    "liens_bidded",
	Username:       "username",
	SlotsReserved:  "slots_reserved",
}
View Source
var PlayerLimitColumns = struct {
	PlayerID        string
	DungeonsLeft    string
	DungeonsResetAt string
	CreatedAt       string
	UpdatedAt       string
	DeletedAt       string
}{
	PlayerID:        "player_id",
	DungeonsLeft:    "dungeons_left",
	DungeonsResetAt: "dungeons_reset_at",
	CreatedAt:       "created_at",
	UpdatedAt:       "updated_at",
	DeletedAt:       "deleted_at",
}
View Source
var PlayerLimitRels = struct {
	Player string
}{
	Player: "Player",
}

PlayerLimitRels is where relationship names are stored.

View Source
var PlayerLimitTableColumns = struct {
	PlayerID        string
	DungeonsLeft    string
	DungeonsResetAt string
	CreatedAt       string
	UpdatedAt       string
	DeletedAt       string
}{
	PlayerID:        "player_limits.player_id",
	DungeonsLeft:    "player_limits.dungeons_left",
	DungeonsResetAt: "player_limits.dungeons_reset_at",
	CreatedAt:       "player_limits.created_at",
	UpdatedAt:       "player_limits.updated_at",
	DeletedAt:       "player_limits.deleted_at",
}
View Source
var PlayerLimitWhere = struct {
	PlayerID        whereHelperstring
	DungeonsLeft    whereHelperint
	DungeonsResetAt whereHelpernull_Time
	CreatedAt       whereHelpertime_Time
	UpdatedAt       whereHelpertime_Time
	DeletedAt       whereHelpernull_Time
}{
	PlayerID:        whereHelperstring{/* contains filtered or unexported fields */},
	DungeonsLeft:    whereHelperint{/* contains filtered or unexported fields */},
	DungeonsResetAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
	CreatedAt:       whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:       whereHelpertime_Time{/* contains filtered or unexported fields */},
	DeletedAt:       whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var PlayerRels = struct {
	IDGithubStar        string
	SelectedCard        string
	Daily               string
	GithubStar          string
	PlayerLimit         string
	Auctions            string
	AuctionsBids        string
	AuthCookies         string
	AuthDiscordStates   string
	AuthGithubStates    string
	Cards               string
	Dungeons            string
	Listings            string
	LootBoxes           string
	PlayerCardFavorites string
	PlayerCards         string
	PlayerCardsDecks    string
}{
	IDGithubStar:        "IDGithubStar",
	SelectedCard:        "SelectedCard",
	Daily:               "Daily",
	GithubStar:          "GithubStar",
	PlayerLimit:         "PlayerLimit",
	Auctions:            "Auctions",
	AuctionsBids:        "AuctionsBids",
	AuthCookies:         "AuthCookies",
	AuthDiscordStates:   "AuthDiscordStates",
	AuthGithubStates:    "AuthGithubStates",
	Cards:               "Cards",
	Dungeons:            "Dungeons",
	Listings:            "Listings",
	LootBoxes:           "LootBoxes",
	PlayerCardFavorites: "PlayerCardFavorites",
	PlayerCards:         "PlayerCards",
	PlayerCardsDecks:    "PlayerCardsDecks",
}

PlayerRels is where relationship names are stored.

View Source
var PlayerTableColumns = struct {
	ID             string
	CreatedAt      string
	UpdatedAt      string
	DeletedAt      string
	SelectedCardID string
	Liens          string
	Level          string
	XP             string
	NextLevelXP    string
	BackpackLevel  string
	LiensBidded    string
	Username       string
	SlotsReserved  string
}{
	ID:             "players.id",
	CreatedAt:      "players.created_at",
	UpdatedAt:      "players.updated_at",
	DeletedAt:      "players.deleted_at",
	SelectedCardID: "players.selected_card_id",
	Liens:          "players.liens",
	Level:          "players.level",
	XP:             "players.xp",
	NextLevelXP:    "players.next_level_xp",
	BackpackLevel:  "players.backpack_level",
	LiensBidded:    "players.liens_bidded",
	Username:       "players.username",
	SlotsReserved:  "players.slots_reserved",
}
View Source
var PlayerWhere = struct {
	ID             whereHelperstring
	CreatedAt      whereHelpertime_Time
	UpdatedAt      whereHelpertime_Time
	DeletedAt      whereHelpernull_Time
	SelectedCardID whereHelpernull_String
	Liens          whereHelperint64
	Level          whereHelperint
	XP             whereHelperint64
	NextLevelXP    whereHelperint64
	BackpackLevel  whereHelperint
	LiensBidded    whereHelperint64
	Username       whereHelperstring
	SlotsReserved  whereHelperint
}{
	ID:             whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt:      whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:      whereHelpertime_Time{/* contains filtered or unexported fields */},
	DeletedAt:      whereHelpernull_Time{/* contains filtered or unexported fields */},
	SelectedCardID: whereHelpernull_String{/* contains filtered or unexported fields */},
	Liens:          whereHelperint64{/* contains filtered or unexported fields */},
	Level:          whereHelperint{/* contains filtered or unexported fields */},
	XP:             whereHelperint64{/* contains filtered or unexported fields */},
	NextLevelXP:    whereHelperint64{/* contains filtered or unexported fields */},
	BackpackLevel:  whereHelperint{/* contains filtered or unexported fields */},
	LiensBidded:    whereHelperint64{/* contains filtered or unexported fields */},
	Username:       whereHelperstring{/* contains filtered or unexported fields */},
	SlotsReserved:  whereHelperint{/* contains filtered or unexported fields */},
}
View Source
var TableNames = struct {
	Auctions            string
	AuctionsBids        string
	AuthCookies         string
	AuthDiscordStates   string
	AuthGithubStates    string
	CardTypes           string
	Cards               string
	CardsStats          string
	Dailies             string
	Dungeons            string
	GithubStars         string
	Jobs                string
	Listings            string
	LootBoxes           string
	PlayerCardFavorites string
	PlayerCards         string
	PlayerCardsDeck     string
	PlayerLimits        string
	Players             string
}{
	Auctions:            "auctions",
	AuctionsBids:        "auctions_bids",
	AuthCookies:         "auth_cookies",
	AuthDiscordStates:   "auth_discord_states",
	AuthGithubStates:    "auth_github_states",
	CardTypes:           "card_types",
	Cards:               "cards",
	CardsStats:          "cards_stats",
	Dailies:             "dailies",
	Dungeons:            "dungeons",
	GithubStars:         "github_stars",
	Jobs:                "jobs",
	Listings:            "listings",
	LootBoxes:           "loot_boxes",
	PlayerCardFavorites: "player_card_favorites",
	PlayerCards:         "player_cards",
	PlayerCardsDeck:     "player_cards_deck",
	PlayerLimits:        "player_limits",
	Players:             "players",
}
View Source
var ViewNames = struct {
}{}

Functions

func AddAuctionHook

func AddAuctionHook(hookPoint boil.HookPoint, auctionHook AuctionHook)

AddAuctionHook registers your hook function for all future operations.

func AddAuctionsBidHook

func AddAuctionsBidHook(hookPoint boil.HookPoint, auctionsBidHook AuctionsBidHook)

AddAuctionsBidHook registers your hook function for all future operations.

func AddAuthCookieHook

func AddAuthCookieHook(hookPoint boil.HookPoint, authCookieHook AuthCookieHook)

AddAuthCookieHook registers your hook function for all future operations.

func AddAuthDiscordStateHook

func AddAuthDiscordStateHook(hookPoint boil.HookPoint, authDiscordStateHook AuthDiscordStateHook)

AddAuthDiscordStateHook registers your hook function for all future operations.

func AddAuthGithubStateHook

func AddAuthGithubStateHook(hookPoint boil.HookPoint, authGithubStateHook AuthGithubStateHook)

AddAuthGithubStateHook registers your hook function for all future operations.

func AddCardHook

func AddCardHook(hookPoint boil.HookPoint, cardHook CardHook)

AddCardHook registers your hook function for all future operations.

func AddCardTypeHook

func AddCardTypeHook(hookPoint boil.HookPoint, cardTypeHook CardTypeHook)

AddCardTypeHook registers your hook function for all future operations.

func AddCardsStatHook

func AddCardsStatHook(hookPoint boil.HookPoint, cardsStatHook CardsStatHook)

AddCardsStatHook registers your hook function for all future operations.

func AddDailyHook

func AddDailyHook(hookPoint boil.HookPoint, dailyHook DailyHook)

AddDailyHook registers your hook function for all future operations.

func AddDungeonHook

func AddDungeonHook(hookPoint boil.HookPoint, dungeonHook DungeonHook)

AddDungeonHook registers your hook function for all future operations.

func AddGithubStarHook

func AddGithubStarHook(hookPoint boil.HookPoint, githubStarHook GithubStarHook)

AddGithubStarHook registers your hook function for all future operations.

func AddJobHook

func AddJobHook(hookPoint boil.HookPoint, jobHook JobHook)

AddJobHook registers your hook function for all future operations.

func AddListingHook

func AddListingHook(hookPoint boil.HookPoint, listingHook ListingHook)

AddListingHook registers your hook function for all future operations.

func AddLootBoxHook

func AddLootBoxHook(hookPoint boil.HookPoint, lootBoxHook LootBoxHook)

AddLootBoxHook registers your hook function for all future operations.

func AddPlayerCardFavoriteHook

func AddPlayerCardFavoriteHook(hookPoint boil.HookPoint, playerCardFavoriteHook PlayerCardFavoriteHook)

AddPlayerCardFavoriteHook registers your hook function for all future operations.

func AddPlayerCardHook

func AddPlayerCardHook(hookPoint boil.HookPoint, playerCardHook PlayerCardHook)

AddPlayerCardHook registers your hook function for all future operations.

func AddPlayerCardsDeckHook

func AddPlayerCardsDeckHook(hookPoint boil.HookPoint, playerCardsDeckHook PlayerCardsDeckHook)

AddPlayerCardsDeckHook registers your hook function for all future operations.

func AddPlayerHook

func AddPlayerHook(hookPoint boil.HookPoint, playerHook PlayerHook)

AddPlayerHook registers your hook function for all future operations.

func AddPlayerLimitHook

func AddPlayerLimitHook(hookPoint boil.HookPoint, playerLimitHook PlayerLimitHook)

AddPlayerLimitHook registers your hook function for all future operations.

func AuctionExists

func AuctionExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

AuctionExists checks if the Auction row exists.

func AuctionExistsG

func AuctionExistsG(ctx context.Context, iD string) (bool, error)

AuctionExistsG checks if the Auction row exists.

func Auctions

func Auctions(mods ...qm.QueryMod) auctionQuery

Auctions retrieves all the records using an executor.

func AuctionsBidExists

func AuctionsBidExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

AuctionsBidExists checks if the AuctionsBid row exists.

func AuctionsBidExistsG

func AuctionsBidExistsG(ctx context.Context, iD string) (bool, error)

AuctionsBidExistsG checks if the AuctionsBid row exists.

func AuctionsBids

func AuctionsBids(mods ...qm.QueryMod) auctionsBidQuery

AuctionsBids retrieves all the records using an executor.

func AuthCookieExists

func AuthCookieExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

AuthCookieExists checks if the AuthCookie row exists.

func AuthCookieExistsG

func AuthCookieExistsG(ctx context.Context, iD string) (bool, error)

AuthCookieExistsG checks if the AuthCookie row exists.

func AuthCookies

func AuthCookies(mods ...qm.QueryMod) authCookieQuery

AuthCookies retrieves all the records using an executor.

func AuthDiscordStateExists

func AuthDiscordStateExists(ctx context.Context, exec boil.ContextExecutor, state string) (bool, error)

AuthDiscordStateExists checks if the AuthDiscordState row exists.

func AuthDiscordStateExistsG

func AuthDiscordStateExistsG(ctx context.Context, state string) (bool, error)

AuthDiscordStateExistsG checks if the AuthDiscordState row exists.

func AuthDiscordStates

func AuthDiscordStates(mods ...qm.QueryMod) authDiscordStateQuery

AuthDiscordStates retrieves all the records using an executor.

func AuthGithubStateExists

func AuthGithubStateExists(ctx context.Context, exec boil.ContextExecutor, state string) (bool, error)

AuthGithubStateExists checks if the AuthGithubState row exists.

func AuthGithubStateExistsG

func AuthGithubStateExistsG(ctx context.Context, state string) (bool, error)

AuthGithubStateExistsG checks if the AuthGithubState row exists.

func AuthGithubStates

func AuthGithubStates(mods ...qm.QueryMod) authGithubStateQuery

AuthGithubStates retrieves all the records using an executor.

func CardExists

func CardExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

CardExists checks if the Card row exists.

func CardExistsG

func CardExistsG(ctx context.Context, iD string) (bool, error)

CardExistsG checks if the Card row exists.

func CardTypeExists

func CardTypeExists(ctx context.Context, exec boil.ContextExecutor, cardType string) (bool, error)

CardTypeExists checks if the CardType row exists.

func CardTypeExistsG

func CardTypeExistsG(ctx context.Context, cardType string) (bool, error)

CardTypeExistsG checks if the CardType row exists.

func CardTypes

func CardTypes(mods ...qm.QueryMod) cardTypeQuery

CardTypes retrieves all the records using an executor.

func Cards

func Cards(mods ...qm.QueryMod) cardQuery

Cards retrieves all the records using an executor.

func CardsStatExists

func CardsStatExists(ctx context.Context, exec boil.ContextExecutor, cardID string) (bool, error)

CardsStatExists checks if the CardsStat row exists.

func CardsStatExistsG

func CardsStatExistsG(ctx context.Context, cardID string) (bool, error)

CardsStatExistsG checks if the CardsStat row exists.

func CardsStats

func CardsStats(mods ...qm.QueryMod) cardsStatQuery

CardsStats retrieves all the records using an executor.

func Dailies

func Dailies(mods ...qm.QueryMod) dailyQuery

Dailies retrieves all the records using an executor.

func DailyExists

func DailyExists(ctx context.Context, exec boil.ContextExecutor, playerID string) (bool, error)

DailyExists checks if the Daily row exists.

func DailyExistsG

func DailyExistsG(ctx context.Context, playerID string) (bool, error)

DailyExistsG checks if the Daily row exists.

func DungeonExists

func DungeonExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

DungeonExists checks if the Dungeon row exists.

func DungeonExistsG

func DungeonExistsG(ctx context.Context, iD string) (bool, error)

DungeonExistsG checks if the Dungeon row exists.

func Dungeons

func Dungeons(mods ...qm.QueryMod) dungeonQuery

Dungeons retrieves all the records using an executor.

func GithubStarExists

func GithubStarExists(ctx context.Context, exec boil.ContextExecutor, playerID string) (bool, error)

GithubStarExists checks if the GithubStar row exists.

func GithubStarExistsG

func GithubStarExistsG(ctx context.Context, playerID string) (bool, error)

GithubStarExistsG checks if the GithubStar row exists.

func GithubStars

func GithubStars(mods ...qm.QueryMod) githubStarQuery

GithubStars retrieves all the records using an executor.

func JobExists

func JobExists(ctx context.Context, exec boil.ContextExecutor, iD string, jobkey string) (bool, error)

JobExists checks if the Job row exists.

func JobExistsG

func JobExistsG(ctx context.Context, iD string, jobkey string) (bool, error)

JobExistsG checks if the Job row exists.

func Jobs

func Jobs(mods ...qm.QueryMod) jobQuery

Jobs retrieves all the records using an executor.

func ListingExists

func ListingExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

ListingExists checks if the Listing row exists.

func ListingExistsG

func ListingExistsG(ctx context.Context, iD string) (bool, error)

ListingExistsG checks if the Listing row exists.

func Listings

func Listings(mods ...qm.QueryMod) listingQuery

Listings retrieves all the records using an executor.

func LootBoxExists

func LootBoxExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

LootBoxExists checks if the LootBox row exists.

func LootBoxExistsG

func LootBoxExistsG(ctx context.Context, iD string) (bool, error)

LootBoxExistsG checks if the LootBox row exists.

func LootBoxes

func LootBoxes(mods ...qm.QueryMod) lootBoxQuery

LootBoxes 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 PlayerCardExists

func PlayerCardExists(ctx context.Context, exec boil.ContextExecutor, playerID string, cardID string) (bool, error)

PlayerCardExists checks if the PlayerCard row exists.

func PlayerCardExistsG

func PlayerCardExistsG(ctx context.Context, playerID string, cardID string) (bool, error)

PlayerCardExistsG checks if the PlayerCard row exists.

func PlayerCardFavoriteExists

func PlayerCardFavoriteExists(ctx context.Context, exec boil.ContextExecutor, playerID string, cardID string) (bool, error)

PlayerCardFavoriteExists checks if the PlayerCardFavorite row exists.

func PlayerCardFavoriteExistsG

func PlayerCardFavoriteExistsG(ctx context.Context, playerID string, cardID string) (bool, error)

PlayerCardFavoriteExistsG checks if the PlayerCardFavorite row exists.

func PlayerCardFavorites

func PlayerCardFavorites(mods ...qm.QueryMod) playerCardFavoriteQuery

PlayerCardFavorites retrieves all the records using an executor.

func PlayerCards

func PlayerCards(mods ...qm.QueryMod) playerCardQuery

PlayerCards retrieves all the records using an executor.

func PlayerCardsDeckExists

func PlayerCardsDeckExists(ctx context.Context, exec boil.ContextExecutor, playerID string, cardID string) (bool, error)

PlayerCardsDeckExists checks if the PlayerCardsDeck row exists.

func PlayerCardsDeckExistsG

func PlayerCardsDeckExistsG(ctx context.Context, playerID string, cardID string) (bool, error)

PlayerCardsDeckExistsG checks if the PlayerCardsDeck row exists.

func PlayerCardsDecks

func PlayerCardsDecks(mods ...qm.QueryMod) playerCardsDeckQuery

PlayerCardsDecks retrieves all the records using an executor.

func PlayerExists

func PlayerExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

PlayerExists checks if the Player row exists.

func PlayerExistsG

func PlayerExistsG(ctx context.Context, iD string) (bool, error)

PlayerExistsG checks if the Player row exists.

func PlayerLimitExists

func PlayerLimitExists(ctx context.Context, exec boil.ContextExecutor, playerID string) (bool, error)

PlayerLimitExists checks if the PlayerLimit row exists.

func PlayerLimitExistsG

func PlayerLimitExistsG(ctx context.Context, playerID string) (bool, error)

PlayerLimitExistsG checks if the PlayerLimit row exists.

func PlayerLimits

func PlayerLimits(mods ...qm.QueryMod) playerLimitQuery

PlayerLimits retrieves all the records using an executor.

func Players

func Players(mods ...qm.QueryMod) playerQuery

Players retrieves all the records using an executor.

Types

type Auction

type Auction struct {
	ID             string    `boil:"id" json:"id" toml:"id" yaml:"id"`
	PlayerID       string    `boil:"player_id" json:"player_id" toml:"player_id" yaml:"player_id"`
	CardID         string    `boil:"card_id" json:"card_id" toml:"card_id" yaml:"card_id"`
	TimeExtensions int       `boil:"time_extensions" json:"time_extensions" toml:"time_extensions" yaml:"time_extensions"`
	EndsAt         time.Time `boil:"ends_at" json:"ends_at" toml:"ends_at" yaml:"ends_at"`
	CreatedAt      time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	DeletedAt      null.Time `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"`

	R *auctionR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L auctionL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Auction is an object representing the database table.

func FindAuction

func FindAuction(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*Auction, error)

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

func FindAuctionG

func FindAuctionG(ctx context.Context, iD string, selectCols ...string) (*Auction, error)

FindAuctionG retrieves a single record by ID.

func (*Auction) AddAuctionsBids

func (o *Auction) AddAuctionsBids(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*AuctionsBid) error

AddAuctionsBids adds the given related objects to the existing relationships of the auction, optionally inserting them as new records. Appends related to o.R.AuctionsBids. Sets related.R.Auction appropriately.

func (*Auction) AddAuctionsBidsG

func (o *Auction) AddAuctionsBidsG(ctx context.Context, insert bool, related ...*AuctionsBid) error

AddAuctionsBidsG adds the given related objects to the existing relationships of the auction, optionally inserting them as new records. Appends related to o.R.AuctionsBids. Sets related.R.Auction appropriately. Uses the global database handle.

func (*Auction) AuctionsBids

func (o *Auction) AuctionsBids(mods ...qm.QueryMod) auctionsBidQuery

AuctionsBids retrieves all the auctions_bid's AuctionsBids with an executor.

func (*Auction) Card

func (o *Auction) Card(mods ...qm.QueryMod) cardQuery

Card pointed to by the foreign key.

func (*Auction) Delete

func (o *Auction) Delete(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

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

func (*Auction) DeleteG

func (o *Auction) DeleteG(ctx context.Context, hardDelete bool) (int64, error)

DeleteG deletes a single Auction record. DeleteG will match against the primary key column to find the record to delete.

func (*Auction) Exists

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

Exists checks if the Auction row exists.

func (*Auction) Insert

func (o *Auction) 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 (*Auction) InsertG

func (o *Auction) InsertG(ctx context.Context, columns boil.Columns) error

InsertG a single record. See Insert for whitelist behavior description.

func (*Auction) Player

func (o *Auction) Player(mods ...qm.QueryMod) playerQuery

Player pointed to by the foreign key.

func (*Auction) Reload

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

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

func (*Auction) ReloadG

func (o *Auction) ReloadG(ctx context.Context) error

ReloadG refetches the object from the database using the primary keys.

func (*Auction) SetCard

func (o *Auction) SetCard(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Card) error

SetCard of the auction to the related item. Sets o.R.Card to related. Adds o to related.R.Auctions.

func (*Auction) SetCardG

func (o *Auction) SetCardG(ctx context.Context, insert bool, related *Card) error

SetCardG of the auction to the related item. Sets o.R.Card to related. Adds o to related.R.Auctions. Uses the global database handle.

func (*Auction) SetPlayer

func (o *Auction) SetPlayer(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Player) error

SetPlayer of the auction to the related item. Sets o.R.Player to related. Adds o to related.R.Auctions.

func (*Auction) SetPlayerG

func (o *Auction) SetPlayerG(ctx context.Context, insert bool, related *Player) error

SetPlayerG of the auction to the related item. Sets o.R.Player to related. Adds o to related.R.Auctions. Uses the global database handle.

func (*Auction) Update

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

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

func (o *Auction) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)

UpdateG a single Auction record using the global executor. See Update for more documentation.

func (*Auction) Upsert

func (o *Auction) 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 (*Auction) UpsertG

func (o *Auction) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

UpsertG attempts an insert, and does an update or ignore on conflict.

type AuctionHook

type AuctionHook func(context.Context, boil.ContextExecutor, *Auction) error

AuctionHook is the signature for custom Auction hook methods

type AuctionSlice

type AuctionSlice []*Auction

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

func (AuctionSlice) DeleteAll

func (o AuctionSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

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

func (AuctionSlice) DeleteAllG

func (o AuctionSlice) DeleteAllG(ctx context.Context, hardDelete bool) (int64, error)

DeleteAllG deletes all rows in the slice.

func (*AuctionSlice) ReloadAll

func (o *AuctionSlice) 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 (*AuctionSlice) ReloadAllG

func (o *AuctionSlice) ReloadAllG(ctx context.Context) error

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

func (AuctionSlice) UpdateAll

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

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

func (AuctionSlice) UpdateAllG

func (o AuctionSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)

UpdateAllG updates all rows with the specified column values.

type AuctionsBid

type AuctionsBid struct {
	ID        string    `boil:"id" json:"id" toml:"id" yaml:"id"`
	AuctionID string    `boil:"auction_id" json:"auction_id" toml:"auction_id" yaml:"auction_id"`
	PlayerID  string    `boil:"player_id" json:"player_id" toml:"player_id" yaml:"player_id"`
	Price     int64     `boil:"price" json:"price" toml:"price" yaml:"price"`
	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"`
	DeletedAt null.Time `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"`

	R *auctionsBidR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L auctionsBidL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

AuctionsBid is an object representing the database table.

func FindAuctionsBid

func FindAuctionsBid(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*AuctionsBid, error)

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

func FindAuctionsBidG

func FindAuctionsBidG(ctx context.Context, iD string, selectCols ...string) (*AuctionsBid, error)

FindAuctionsBidG retrieves a single record by ID.

func (*AuctionsBid) Auction

func (o *AuctionsBid) Auction(mods ...qm.QueryMod) auctionQuery

Auction pointed to by the foreign key.

func (*AuctionsBid) Delete

func (o *AuctionsBid) Delete(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

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

func (*AuctionsBid) DeleteG

func (o *AuctionsBid) DeleteG(ctx context.Context, hardDelete bool) (int64, error)

DeleteG deletes a single AuctionsBid record. DeleteG will match against the primary key column to find the record to delete.

func (*AuctionsBid) Exists

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

Exists checks if the AuctionsBid row exists.

func (*AuctionsBid) Insert

func (o *AuctionsBid) 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 (*AuctionsBid) InsertG

func (o *AuctionsBid) InsertG(ctx context.Context, columns boil.Columns) error

InsertG a single record. See Insert for whitelist behavior description.

func (*AuctionsBid) Player

func (o *AuctionsBid) Player(mods ...qm.QueryMod) playerQuery

Player pointed to by the foreign key.

func (*AuctionsBid) Reload

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

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

func (*AuctionsBid) ReloadG

func (o *AuctionsBid) ReloadG(ctx context.Context) error

ReloadG refetches the object from the database using the primary keys.

func (*AuctionsBid) SetAuction

func (o *AuctionsBid) SetAuction(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Auction) error

SetAuction of the auctionsBid to the related item. Sets o.R.Auction to related. Adds o to related.R.AuctionsBids.

func (*AuctionsBid) SetAuctionG

func (o *AuctionsBid) SetAuctionG(ctx context.Context, insert bool, related *Auction) error

SetAuctionG of the auctionsBid to the related item. Sets o.R.Auction to related. Adds o to related.R.AuctionsBids. Uses the global database handle.

func (*AuctionsBid) SetPlayer

func (o *AuctionsBid) SetPlayer(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Player) error

SetPlayer of the auctionsBid to the related item. Sets o.R.Player to related. Adds o to related.R.AuctionsBids.

func (*AuctionsBid) SetPlayerG

func (o *AuctionsBid) SetPlayerG(ctx context.Context, insert bool, related *Player) error

SetPlayerG of the auctionsBid to the related item. Sets o.R.Player to related. Adds o to related.R.AuctionsBids. Uses the global database handle.

func (*AuctionsBid) Update

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

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

func (o *AuctionsBid) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)

UpdateG a single AuctionsBid record using the global executor. See Update for more documentation.

func (*AuctionsBid) Upsert

func (o *AuctionsBid) 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 (*AuctionsBid) UpsertG

func (o *AuctionsBid) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

UpsertG attempts an insert, and does an update or ignore on conflict.

type AuctionsBidHook

type AuctionsBidHook func(context.Context, boil.ContextExecutor, *AuctionsBid) error

AuctionsBidHook is the signature for custom AuctionsBid hook methods

type AuctionsBidSlice

type AuctionsBidSlice []*AuctionsBid

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

func (AuctionsBidSlice) DeleteAll

func (o AuctionsBidSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

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

func (AuctionsBidSlice) DeleteAllG

func (o AuctionsBidSlice) DeleteAllG(ctx context.Context, hardDelete bool) (int64, error)

DeleteAllG deletes all rows in the slice.

func (*AuctionsBidSlice) ReloadAll

func (o *AuctionsBidSlice) 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 (*AuctionsBidSlice) ReloadAllG

func (o *AuctionsBidSlice) ReloadAllG(ctx context.Context) error

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

func (AuctionsBidSlice) UpdateAll

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

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

func (AuctionsBidSlice) UpdateAllG

func (o AuctionsBidSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)

UpdateAllG updates all rows with the specified column values.

type AuthCookie

type AuthCookie struct {
	ID        string    `boil:"id" json:"id" toml:"id" yaml:"id"`
	PlayerID  string    `boil:"player_id" json:"player_id" toml:"player_id" yaml:"player_id"`
	ExpiresAt time.Time `boil:"expires_at" json:"expires_at" toml:"expires_at" yaml:"expires_at"`
	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"`
	DeletedAt null.Time `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"`

	R *authCookieR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L authCookieL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

AuthCookie is an object representing the database table.

func FindAuthCookie

func FindAuthCookie(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*AuthCookie, error)

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

func FindAuthCookieG

func FindAuthCookieG(ctx context.Context, iD string, selectCols ...string) (*AuthCookie, error)

FindAuthCookieG retrieves a single record by ID.

func (*AuthCookie) Delete

func (o *AuthCookie) Delete(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

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

func (*AuthCookie) DeleteG

func (o *AuthCookie) DeleteG(ctx context.Context, hardDelete bool) (int64, error)

DeleteG deletes a single AuthCookie record. DeleteG will match against the primary key column to find the record to delete.

func (*AuthCookie) Exists

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

Exists checks if the AuthCookie row exists.

func (*AuthCookie) Insert

func (o *AuthCookie) 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 (*AuthCookie) InsertG

func (o *AuthCookie) InsertG(ctx context.Context, columns boil.Columns) error

InsertG a single record. See Insert for whitelist behavior description.

func (*AuthCookie) Player

func (o *AuthCookie) Player(mods ...qm.QueryMod) playerQuery

Player pointed to by the foreign key.

func (*AuthCookie) Reload

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

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

func (*AuthCookie) ReloadG

func (o *AuthCookie) ReloadG(ctx context.Context) error

ReloadG refetches the object from the database using the primary keys.

func (*AuthCookie) SetPlayer

func (o *AuthCookie) SetPlayer(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Player) error

SetPlayer of the authCookie to the related item. Sets o.R.Player to related. Adds o to related.R.AuthCookies.

func (*AuthCookie) SetPlayerG

func (o *AuthCookie) SetPlayerG(ctx context.Context, insert bool, related *Player) error

SetPlayerG of the authCookie to the related item. Sets o.R.Player to related. Adds o to related.R.AuthCookies. Uses the global database handle.

func (*AuthCookie) Update

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

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

func (o *AuthCookie) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)

UpdateG a single AuthCookie record using the global executor. See Update for more documentation.

func (*AuthCookie) Upsert

func (o *AuthCookie) 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 (*AuthCookie) UpsertG

func (o *AuthCookie) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

UpsertG attempts an insert, and does an update or ignore on conflict.

type AuthCookieHook

type AuthCookieHook func(context.Context, boil.ContextExecutor, *AuthCookie) error

AuthCookieHook is the signature for custom AuthCookie hook methods

type AuthCookieSlice

type AuthCookieSlice []*AuthCookie

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

func (AuthCookieSlice) DeleteAll

func (o AuthCookieSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

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

func (AuthCookieSlice) DeleteAllG

func (o AuthCookieSlice) DeleteAllG(ctx context.Context, hardDelete bool) (int64, error)

DeleteAllG deletes all rows in the slice.

func (*AuthCookieSlice) ReloadAll

func (o *AuthCookieSlice) 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 (*AuthCookieSlice) ReloadAllG

func (o *AuthCookieSlice) ReloadAllG(ctx context.Context) error

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

func (AuthCookieSlice) UpdateAll

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

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

func (AuthCookieSlice) UpdateAllG

func (o AuthCookieSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)

UpdateAllG updates all rows with the specified column values.

type AuthDiscordState

type AuthDiscordState struct {
	State       string                `boil:"state" json:"state" toml:"state" yaml:"state"`
	PlayerID    null.String           `boil:"player_id" json:"player_id,omitempty" toml:"player_id" yaml:"player_id,omitempty"`
	RedirectURI string                `boil:"redirect_uri" json:"redirect_uri" toml:"redirect_uri" yaml:"redirect_uri"`
	ExpiresAt   time.Time             `boil:"expires_at" json:"expires_at" toml:"expires_at" yaml:"expires_at"`
	Type        AuthDiscordStatesType `boil:"type" json:"type" toml:"type" yaml:"type"`
	CreatedAt   time.Time             `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt   time.Time             `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
	DeletedAt   null.Time             `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"`

	R *authDiscordStateR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L authDiscordStateL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

AuthDiscordState is an object representing the database table.

func FindAuthDiscordState

func FindAuthDiscordState(ctx context.Context, exec boil.ContextExecutor, state string, selectCols ...string) (*AuthDiscordState, error)

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

func FindAuthDiscordStateG

func FindAuthDiscordStateG(ctx context.Context, state string, selectCols ...string) (*AuthDiscordState, error)

FindAuthDiscordStateG retrieves a single record by ID.

func (*AuthDiscordState) Delete

func (o *AuthDiscordState) Delete(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

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

func (*AuthDiscordState) DeleteG

func (o *AuthDiscordState) DeleteG(ctx context.Context, hardDelete bool) (int64, error)

DeleteG deletes a single AuthDiscordState record. DeleteG will match against the primary key column to find the record to delete.

func (*AuthDiscordState) Exists

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

Exists checks if the AuthDiscordState row exists.

func (*AuthDiscordState) Insert

func (o *AuthDiscordState) 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 (*AuthDiscordState) InsertG

func (o *AuthDiscordState) InsertG(ctx context.Context, columns boil.Columns) error

InsertG a single record. See Insert for whitelist behavior description.

func (*AuthDiscordState) Player

func (o *AuthDiscordState) Player(mods ...qm.QueryMod) playerQuery

Player pointed to by the foreign key.

func (*AuthDiscordState) Reload

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

func (*AuthDiscordState) ReloadG

func (o *AuthDiscordState) ReloadG(ctx context.Context) error

ReloadG refetches the object from the database using the primary keys.

func (*AuthDiscordState) RemovePlayer

func (o *AuthDiscordState) RemovePlayer(ctx context.Context, exec boil.ContextExecutor, related *Player) error

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

func (*AuthDiscordState) RemovePlayerG

func (o *AuthDiscordState) RemovePlayerG(ctx context.Context, related *Player) error

RemovePlayerG relationship. Sets o.R.Player to nil. Removes o from all passed in related items' relationships struct. Uses the global database handle.

func (*AuthDiscordState) SetPlayer

func (o *AuthDiscordState) SetPlayer(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Player) error

SetPlayer of the authDiscordState to the related item. Sets o.R.Player to related. Adds o to related.R.AuthDiscordStates.

func (*AuthDiscordState) SetPlayerG

func (o *AuthDiscordState) SetPlayerG(ctx context.Context, insert bool, related *Player) error

SetPlayerG of the authDiscordState to the related item. Sets o.R.Player to related. Adds o to related.R.AuthDiscordStates. Uses the global database handle.

func (*AuthDiscordState) Update

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

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

func (o *AuthDiscordState) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)

UpdateG a single AuthDiscordState record using the global executor. See Update for more documentation.

func (*AuthDiscordState) Upsert

func (o *AuthDiscordState) 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 (*AuthDiscordState) UpsertG

func (o *AuthDiscordState) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

UpsertG attempts an insert, and does an update or ignore on conflict.

type AuthDiscordStateHook

type AuthDiscordStateHook func(context.Context, boil.ContextExecutor, *AuthDiscordState) error

AuthDiscordStateHook is the signature for custom AuthDiscordState hook methods

type AuthDiscordStateSlice

type AuthDiscordStateSlice []*AuthDiscordState

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

func (AuthDiscordStateSlice) DeleteAll

func (o AuthDiscordStateSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

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

func (AuthDiscordStateSlice) DeleteAllG

func (o AuthDiscordStateSlice) DeleteAllG(ctx context.Context, hardDelete bool) (int64, error)

DeleteAllG deletes all rows in the slice.

func (*AuthDiscordStateSlice) ReloadAll

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

func (*AuthDiscordStateSlice) ReloadAllG

func (o *AuthDiscordStateSlice) ReloadAllG(ctx context.Context) error

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

func (AuthDiscordStateSlice) UpdateAll

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

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

func (AuthDiscordStateSlice) UpdateAllG

func (o AuthDiscordStateSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)

UpdateAllG updates all rows with the specified column values.

type AuthDiscordStatesType

type AuthDiscordStatesType string
const (
	AuthDiscordStatesTypeLogin AuthDiscordStatesType = "login"
)

Enum values for AuthDiscordStatesType

func AllAuthDiscordStatesType

func AllAuthDiscordStatesType() []AuthDiscordStatesType

func (AuthDiscordStatesType) IsValid

func (e AuthDiscordStatesType) IsValid() error

func (AuthDiscordStatesType) Ordinal

func (e AuthDiscordStatesType) Ordinal() int

func (AuthDiscordStatesType) String

func (e AuthDiscordStatesType) String() string

type AuthGithubState

type AuthGithubState struct {
	State     string               `boil:"state" json:"state" toml:"state" yaml:"state"`
	PlayerID  string               `boil:"player_id" json:"player_id" toml:"player_id" yaml:"player_id"`
	ExpiresAt time.Time            `boil:"expires_at" json:"expires_at" toml:"expires_at" yaml:"expires_at"`
	Type      AuthGithubStatesType `boil:"type" json:"type" toml:"type" yaml:"type"`
	CreatedAt time.Time            `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt time.Time            `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
	DeletedAt null.Time            `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"`

	R *authGithubStateR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L authGithubStateL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

AuthGithubState is an object representing the database table.

func FindAuthGithubState

func FindAuthGithubState(ctx context.Context, exec boil.ContextExecutor, state string, selectCols ...string) (*AuthGithubState, error)

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

func FindAuthGithubStateG

func FindAuthGithubStateG(ctx context.Context, state string, selectCols ...string) (*AuthGithubState, error)

FindAuthGithubStateG retrieves a single record by ID.

func (*AuthGithubState) Delete

func (o *AuthGithubState) Delete(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

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

func (*AuthGithubState) DeleteG

func (o *AuthGithubState) DeleteG(ctx context.Context, hardDelete bool) (int64, error)

DeleteG deletes a single AuthGithubState record. DeleteG will match against the primary key column to find the record to delete.

func (*AuthGithubState) Exists

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

Exists checks if the AuthGithubState row exists.

func (*AuthGithubState) Insert

func (o *AuthGithubState) 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 (*AuthGithubState) InsertG

func (o *AuthGithubState) InsertG(ctx context.Context, columns boil.Columns) error

InsertG a single record. See Insert for whitelist behavior description.

func (*AuthGithubState) Player

func (o *AuthGithubState) Player(mods ...qm.QueryMod) playerQuery

Player pointed to by the foreign key.

func (*AuthGithubState) Reload

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

func (*AuthGithubState) ReloadG

func (o *AuthGithubState) ReloadG(ctx context.Context) error

ReloadG refetches the object from the database using the primary keys.

func (*AuthGithubState) SetPlayer

func (o *AuthGithubState) SetPlayer(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Player) error

SetPlayer of the authGithubState to the related item. Sets o.R.Player to related. Adds o to related.R.AuthGithubStates.

func (*AuthGithubState) SetPlayerG

func (o *AuthGithubState) SetPlayerG(ctx context.Context, insert bool, related *Player) error

SetPlayerG of the authGithubState to the related item. Sets o.R.Player to related. Adds o to related.R.AuthGithubStates. Uses the global database handle.

func (*AuthGithubState) Update

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

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

func (o *AuthGithubState) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)

UpdateG a single AuthGithubState record using the global executor. See Update for more documentation.

func (*AuthGithubState) Upsert

func (o *AuthGithubState) 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 (*AuthGithubState) UpsertG

func (o *AuthGithubState) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

UpsertG attempts an insert, and does an update or ignore on conflict.

type AuthGithubStateHook

type AuthGithubStateHook func(context.Context, boil.ContextExecutor, *AuthGithubState) error

AuthGithubStateHook is the signature for custom AuthGithubState hook methods

type AuthGithubStateSlice

type AuthGithubStateSlice []*AuthGithubState

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

func (AuthGithubStateSlice) DeleteAll

func (o AuthGithubStateSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

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

func (AuthGithubStateSlice) DeleteAllG

func (o AuthGithubStateSlice) DeleteAllG(ctx context.Context, hardDelete bool) (int64, error)

DeleteAllG deletes all rows in the slice.

func (*AuthGithubStateSlice) ReloadAll

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

func (*AuthGithubStateSlice) ReloadAllG

func (o *AuthGithubStateSlice) ReloadAllG(ctx context.Context) error

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

func (AuthGithubStateSlice) UpdateAll

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

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

func (AuthGithubStateSlice) UpdateAllG

func (o AuthGithubStateSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)

UpdateAllG updates all rows with the specified column values.

type AuthGithubStatesType

type AuthGithubStatesType string
const (
	AuthGithubStatesTypeCheckStar AuthGithubStatesType = "check_star"
)

Enum values for AuthGithubStatesType

func AllAuthGithubStatesType

func AllAuthGithubStatesType() []AuthGithubStatesType

func (AuthGithubStatesType) IsValid

func (e AuthGithubStatesType) IsValid() error

func (AuthGithubStatesType) Ordinal

func (e AuthGithubStatesType) Ordinal() int

func (AuthGithubStatesType) String

func (e AuthGithubStatesType) String() string

type Card

type Card struct {
	ID              string     `boil:"id" json:"id" toml:"id" yaml:"id"`
	PlayerID        string     `boil:"player_id" json:"player_id" toml:"player_id" yaml:"player_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"`
	DeletedAt       null.Time  `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"`
	XP              int64      `boil:"xp" json:"xp" toml:"xp" yaml:"xp"`
	NextLevelXP     int64      `boil:"next_level_xp" json:"next_level_xp" toml:"next_level_xp" yaml:"next_level_xp"`
	CardType        string     `boil:"card_type" json:"card_type" toml:"card_type" yaml:"card_type"`
	IndividualValue float64    `boil:"individual_value" json:"individual_value" toml:"individual_value" yaml:"individual_value"`
	Rarity          int        `boil:"rarity" json:"rarity" toml:"rarity" yaml:"rarity"`
	Level           int        `boil:"level" json:"level" toml:"level" yaml:"level"`
	Buffs           int        `boil:"buffs" json:"buffs" toml:"buffs" yaml:"buffs"`
	Metadata        types.JSON `boil:"metadata" json:"metadata" toml:"metadata" yaml:"metadata"`
	Available       bool       `boil:"available" json:"available" toml:"available" yaml:"available"`
	OwnedAt         time.Time  `boil:"owned_at" json:"owned_at" toml:"owned_at" yaml:"owned_at"`

	R *cardR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L cardL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Card is an object representing the database table.

func FindCard

func FindCard(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*Card, error)

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

func FindCardG

func FindCardG(ctx context.Context, iD string, selectCols ...string) (*Card, error)

FindCardG retrieves a single record by ID.

func (*Card) AddAuctions

func (o *Card) AddAuctions(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Auction) error

AddAuctions adds the given related objects to the existing relationships of the card, optionally inserting them as new records. Appends related to o.R.Auctions. Sets related.R.Card appropriately.

func (*Card) AddAuctionsG

func (o *Card) AddAuctionsG(ctx context.Context, insert bool, related ...*Auction) error

AddAuctionsG adds the given related objects to the existing relationships of the card, optionally inserting them as new records. Appends related to o.R.Auctions. Sets related.R.Card appropriately. Uses the global database handle.

func (*Card) AddListings

func (o *Card) AddListings(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Listing) error

AddListings adds the given related objects to the existing relationships of the card, optionally inserting them as new records. Appends related to o.R.Listings. Sets related.R.Card appropriately.

func (*Card) AddListingsG

func (o *Card) AddListingsG(ctx context.Context, insert bool, related ...*Listing) error

AddListingsG adds the given related objects to the existing relationships of the card, optionally inserting them as new records. Appends related to o.R.Listings. Sets related.R.Card appropriately. Uses the global database handle.

func (*Card) AddPlayerCardFavorites

func (o *Card) AddPlayerCardFavorites(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*PlayerCardFavorite) error

AddPlayerCardFavorites adds the given related objects to the existing relationships of the card, optionally inserting them as new records. Appends related to o.R.PlayerCardFavorites. Sets related.R.Card appropriately.

func (*Card) AddPlayerCardFavoritesG

func (o *Card) AddPlayerCardFavoritesG(ctx context.Context, insert bool, related ...*PlayerCardFavorite) error

AddPlayerCardFavoritesG adds the given related objects to the existing relationships of the card, optionally inserting them as new records. Appends related to o.R.PlayerCardFavorites. Sets related.R.Card appropriately. Uses the global database handle.

func (*Card) AddPlayerCards

func (o *Card) AddPlayerCards(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*PlayerCard) error

AddPlayerCards adds the given related objects to the existing relationships of the card, optionally inserting them as new records. Appends related to o.R.PlayerCards. Sets related.R.Card appropriately.

func (*Card) AddPlayerCardsDecks

func (o *Card) AddPlayerCardsDecks(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*PlayerCardsDeck) error

AddPlayerCardsDecks adds the given related objects to the existing relationships of the card, optionally inserting them as new records. Appends related to o.R.PlayerCardsDecks. Sets related.R.Card appropriately.

func (*Card) AddPlayerCardsDecksG

func (o *Card) AddPlayerCardsDecksG(ctx context.Context, insert bool, related ...*PlayerCardsDeck) error

AddPlayerCardsDecksG adds the given related objects to the existing relationships of the card, optionally inserting them as new records. Appends related to o.R.PlayerCardsDecks. Sets related.R.Card appropriately. Uses the global database handle.

func (*Card) AddPlayerCardsG

func (o *Card) AddPlayerCardsG(ctx context.Context, insert bool, related ...*PlayerCard) error

AddPlayerCardsG adds the given related objects to the existing relationships of the card, optionally inserting them as new records. Appends related to o.R.PlayerCards. Sets related.R.Card appropriately. Uses the global database handle.

func (*Card) AddSelectedCardPlayers

func (o *Card) AddSelectedCardPlayers(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Player) error

AddSelectedCardPlayers adds the given related objects to the existing relationships of the card, optionally inserting them as new records. Appends related to o.R.SelectedCardPlayers. Sets related.R.SelectedCard appropriately.

func (*Card) AddSelectedCardPlayersG

func (o *Card) AddSelectedCardPlayersG(ctx context.Context, insert bool, related ...*Player) error

AddSelectedCardPlayersG adds the given related objects to the existing relationships of the card, optionally inserting them as new records. Appends related to o.R.SelectedCardPlayers. Sets related.R.SelectedCard appropriately. Uses the global database handle.

func (*Card) Auctions

func (o *Card) Auctions(mods ...qm.QueryMod) auctionQuery

Auctions retrieves all the auction's Auctions with an executor.

func (*Card) CardsStat

func (o *Card) CardsStat(mods ...qm.QueryMod) cardsStatQuery

CardsStat pointed to by the foreign key.

func (*Card) Delete

func (o *Card) Delete(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

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

func (*Card) DeleteG

func (o *Card) DeleteG(ctx context.Context, hardDelete bool) (int64, error)

DeleteG deletes a single Card record. DeleteG will match against the primary key column to find the record to delete.

func (*Card) Exists

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

Exists checks if the Card row exists.

func (*Card) IDCardsStat

func (o *Card) IDCardsStat(mods ...qm.QueryMod) cardsStatQuery

IDCardsStat pointed to by the foreign key.

func (*Card) Insert

func (o *Card) 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 (*Card) InsertG

func (o *Card) InsertG(ctx context.Context, columns boil.Columns) error

InsertG a single record. See Insert for whitelist behavior description.

func (*Card) Listings

func (o *Card) Listings(mods ...qm.QueryMod) listingQuery

Listings retrieves all the listing's Listings with an executor.

func (*Card) Player

func (o *Card) Player(mods ...qm.QueryMod) playerQuery

Player pointed to by the foreign key.

func (*Card) PlayerCardFavorites

func (o *Card) PlayerCardFavorites(mods ...qm.QueryMod) playerCardFavoriteQuery

PlayerCardFavorites retrieves all the player_card_favorite's PlayerCardFavorites with an executor.

func (*Card) PlayerCards

func (o *Card) PlayerCards(mods ...qm.QueryMod) playerCardQuery

PlayerCards retrieves all the player_card's PlayerCards with an executor.

func (*Card) PlayerCardsDecks

func (o *Card) PlayerCardsDecks(mods ...qm.QueryMod) playerCardsDeckQuery

PlayerCardsDecks retrieves all the player_cards_deck's PlayerCardsDecks with an executor.

func (*Card) Reload

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

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

func (*Card) ReloadG

func (o *Card) ReloadG(ctx context.Context) error

ReloadG refetches the object from the database using the primary keys.

func (*Card) RemoveSelectedCardPlayers

func (o *Card) RemoveSelectedCardPlayers(ctx context.Context, exec boil.ContextExecutor, related ...*Player) error

RemoveSelectedCardPlayers relationships from objects passed in. Removes related items from R.SelectedCardPlayers (uses pointer comparison, removal does not keep order) Sets related.R.SelectedCard.

func (*Card) RemoveSelectedCardPlayersG

func (o *Card) RemoveSelectedCardPlayersG(ctx context.Context, related ...*Player) error

RemoveSelectedCardPlayersG relationships from objects passed in. Removes related items from R.SelectedCardPlayers (uses pointer comparison, removal does not keep order) Sets related.R.SelectedCard. Uses the global database handle.

func (*Card) SelectedCardPlayers

func (o *Card) SelectedCardPlayers(mods ...qm.QueryMod) playerQuery

SelectedCardPlayers retrieves all the player's Players with an executor via selected_card_id column.

func (*Card) SetCardsStat

func (o *Card) SetCardsStat(ctx context.Context, exec boil.ContextExecutor, insert bool, related *CardsStat) error

SetCardsStat of the card to the related item. Sets o.R.CardsStat to related. Adds o to related.R.Card.

func (*Card) SetCardsStatG

func (o *Card) SetCardsStatG(ctx context.Context, insert bool, related *CardsStat) error

SetCardsStatG of the card to the related item. Sets o.R.CardsStat to related. Adds o to related.R.Card. Uses the global database handle.

func (*Card) SetIDCardsStat

func (o *Card) SetIDCardsStat(ctx context.Context, exec boil.ContextExecutor, insert bool, related *CardsStat) error

SetIDCardsStat of the card to the related item. Sets o.R.IDCardsStat to related. Adds o to related.R.IDCard.

func (*Card) SetIDCardsStatG

func (o *Card) SetIDCardsStatG(ctx context.Context, insert bool, related *CardsStat) error

SetIDCardsStatG of the card to the related item. Sets o.R.IDCardsStat to related. Adds o to related.R.IDCard. Uses the global database handle.

func (*Card) SetPlayer

func (o *Card) SetPlayer(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Player) error

SetPlayer of the card to the related item. Sets o.R.Player to related. Adds o to related.R.Cards.

func (*Card) SetPlayerG

func (o *Card) SetPlayerG(ctx context.Context, insert bool, related *Player) error

SetPlayerG of the card to the related item. Sets o.R.Player to related. Adds o to related.R.Cards. Uses the global database handle.

func (*Card) SetSelectedCardPlayers

func (o *Card) SetSelectedCardPlayers(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Player) error

SetSelectedCardPlayers removes all previously related items of the card replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.SelectedCard's SelectedCardPlayers accordingly. Replaces o.R.SelectedCardPlayers with related. Sets related.R.SelectedCard's SelectedCardPlayers accordingly.

func (*Card) SetSelectedCardPlayersG

func (o *Card) SetSelectedCardPlayersG(ctx context.Context, insert bool, related ...*Player) error

SetSelectedCardPlayersG removes all previously related items of the card replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.SelectedCard's SelectedCardPlayers accordingly. Replaces o.R.SelectedCardPlayers with related. Sets related.R.SelectedCard's SelectedCardPlayers accordingly. Uses the global database handle.

func (*Card) Update

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

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

func (o *Card) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)

UpdateG a single Card record using the global executor. See Update for more documentation.

func (*Card) Upsert

func (o *Card) 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 (*Card) UpsertG

func (o *Card) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

UpsertG attempts an insert, and does an update or ignore on conflict.

type CardHook

type CardHook func(context.Context, boil.ContextExecutor, *Card) error

CardHook is the signature for custom Card hook methods

type CardSlice

type CardSlice []*Card

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

func (CardSlice) DeleteAll

func (o CardSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

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

func (CardSlice) DeleteAllG

func (o CardSlice) DeleteAllG(ctx context.Context, hardDelete bool) (int64, error)

DeleteAllG deletes all rows in the slice.

func (*CardSlice) ReloadAll

func (o *CardSlice) 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 (*CardSlice) ReloadAllG

func (o *CardSlice) ReloadAllG(ctx context.Context) error

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

func (CardSlice) UpdateAll

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

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

func (CardSlice) UpdateAllG

func (o CardSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)

UpdateAllG updates all rows with the specified column values.

type CardType

type CardType struct {
	CardType   string `boil:"card_type" json:"card_type" toml:"card_type" yaml:"card_type"`
	Name       string `boil:"name" json:"name" toml:"name" yaml:"name"`
	Categories string `boil:"categories" json:"categories" toml:"categories" yaml:"categories"`

	R *cardTypeR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L cardTypeL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

CardType is an object representing the database table.

func FindCardType

func FindCardType(ctx context.Context, exec boil.ContextExecutor, cardType string, selectCols ...string) (*CardType, error)

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

func FindCardTypeG

func FindCardTypeG(ctx context.Context, cardType string, selectCols ...string) (*CardType, error)

FindCardTypeG retrieves a single record by ID.

func (*CardType) Delete

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

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

func (*CardType) DeleteG

func (o *CardType) DeleteG(ctx context.Context) (int64, error)

DeleteG deletes a single CardType record. DeleteG will match against the primary key column to find the record to delete.

func (*CardType) Exists

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

Exists checks if the CardType row exists.

func (*CardType) Insert

func (o *CardType) 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 (*CardType) InsertG

func (o *CardType) InsertG(ctx context.Context, columns boil.Columns) error

InsertG a single record. See Insert for whitelist behavior description.

func (*CardType) Reload

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

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

func (*CardType) ReloadG

func (o *CardType) ReloadG(ctx context.Context) error

ReloadG refetches the object from the database using the primary keys.

func (*CardType) Update

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

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

func (o *CardType) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)

UpdateG a single CardType record using the global executor. See Update for more documentation.

func (*CardType) Upsert

func (o *CardType) 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 (*CardType) UpsertG

func (o *CardType) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

UpsertG attempts an insert, and does an update or ignore on conflict.

type CardTypeHook

type CardTypeHook func(context.Context, boil.ContextExecutor, *CardType) error

CardTypeHook is the signature for custom CardType hook methods

type CardTypeSlice

type CardTypeSlice []*CardType

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

func (CardTypeSlice) DeleteAll

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

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

func (CardTypeSlice) DeleteAllG

func (o CardTypeSlice) DeleteAllG(ctx context.Context) (int64, error)

DeleteAllG deletes all rows in the slice.

func (*CardTypeSlice) ReloadAll

func (o *CardTypeSlice) 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 (*CardTypeSlice) ReloadAllG

func (o *CardTypeSlice) ReloadAllG(ctx context.Context) error

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

func (CardTypeSlice) UpdateAll

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

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

func (CardTypeSlice) UpdateAllG

func (o CardTypeSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)

UpdateAllG updates all rows with the specified column values.

type CardsStat

type CardsStat struct {
	CardID    string    `boil:"card_id" json:"card_id" toml:"card_id" yaml:"card_id"`
	Health    int       `boil:"health" json:"health" toml:"health" yaml:"health"`
	Armor     int       `boil:"armor" json:"armor" toml:"armor" yaml:"armor"`
	Damage    int       `boil:"damage" json:"damage" toml:"damage" yaml:"damage"`
	Healing   int       `boil:"healing" json:"healing" toml:"healing" yaml:"healing"`
	Speed     int       `boil:"speed" json:"speed" toml:"speed" yaml:"speed"`
	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"`
	DeletedAt null.Time `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"`

	R *cardsStatR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L cardsStatL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

CardsStat is an object representing the database table.

func FindCardsStat

func FindCardsStat(ctx context.Context, exec boil.ContextExecutor, cardID string, selectCols ...string) (*CardsStat, error)

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

func FindCardsStatG

func FindCardsStatG(ctx context.Context, cardID string, selectCols ...string) (*CardsStat, error)

FindCardsStatG retrieves a single record by ID.

func (*CardsStat) Card

func (o *CardsStat) Card(mods ...qm.QueryMod) cardQuery

Card pointed to by the foreign key.

func (*CardsStat) Delete

func (o *CardsStat) Delete(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

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

func (*CardsStat) DeleteG

func (o *CardsStat) DeleteG(ctx context.Context, hardDelete bool) (int64, error)

DeleteG deletes a single CardsStat record. DeleteG will match against the primary key column to find the record to delete.

func (*CardsStat) Exists

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

Exists checks if the CardsStat row exists.

func (*CardsStat) IDCard

func (o *CardsStat) IDCard(mods ...qm.QueryMod) cardQuery

IDCard pointed to by the foreign key.

func (*CardsStat) Insert

func (o *CardsStat) 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 (*CardsStat) InsertG

func (o *CardsStat) InsertG(ctx context.Context, columns boil.Columns) error

InsertG a single record. See Insert for whitelist behavior description.

func (*CardsStat) Reload

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

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

func (*CardsStat) ReloadG

func (o *CardsStat) ReloadG(ctx context.Context) error

ReloadG refetches the object from the database using the primary keys.

func (*CardsStat) SetCard

func (o *CardsStat) SetCard(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Card) error

SetCard of the cardsStat to the related item. Sets o.R.Card to related. Adds o to related.R.CardsStat.

func (*CardsStat) SetCardG

func (o *CardsStat) SetCardG(ctx context.Context, insert bool, related *Card) error

SetCardG of the cardsStat to the related item. Sets o.R.Card to related. Adds o to related.R.CardsStat. Uses the global database handle.

func (*CardsStat) SetIDCard

func (o *CardsStat) SetIDCard(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Card) error

SetIDCard of the cardsStat to the related item. Sets o.R.IDCard to related. Adds o to related.R.IDCardsStat.

func (*CardsStat) SetIDCardG

func (o *CardsStat) SetIDCardG(ctx context.Context, insert bool, related *Card) error

SetIDCardG of the cardsStat to the related item. Sets o.R.IDCard to related. Adds o to related.R.IDCardsStat. Uses the global database handle.

func (*CardsStat) Update

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

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

func (o *CardsStat) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)

UpdateG a single CardsStat record using the global executor. See Update for more documentation.

func (*CardsStat) Upsert

func (o *CardsStat) 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 (*CardsStat) UpsertG

func (o *CardsStat) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

UpsertG attempts an insert, and does an update or ignore on conflict.

type CardsStatHook

type CardsStatHook func(context.Context, boil.ContextExecutor, *CardsStat) error

CardsStatHook is the signature for custom CardsStat hook methods

type CardsStatSlice

type CardsStatSlice []*CardsStat

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

func (CardsStatSlice) DeleteAll

func (o CardsStatSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

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

func (CardsStatSlice) DeleteAllG

func (o CardsStatSlice) DeleteAllG(ctx context.Context, hardDelete bool) (int64, error)

DeleteAllG deletes all rows in the slice.

func (*CardsStatSlice) ReloadAll

func (o *CardsStatSlice) 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 (*CardsStatSlice) ReloadAllG

func (o *CardsStatSlice) ReloadAllG(ctx context.Context) error

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

func (CardsStatSlice) UpdateAll

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

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

func (CardsStatSlice) UpdateAllG

func (o CardsStatSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)

UpdateAllG updates all rows with the specified column values.

type Daily

type Daily struct {
	PlayerID   string    `boil:"player_id" json:"player_id" toml:"player_id" yaml:"player_id"`
	HasVoted   bool      `boil:"has_voted" json:"has_voted" toml:"has_voted" yaml:"has_voted"`
	LastVoteAt time.Time `boil:"last_vote_at" json:"last_vote_at" toml:"last_vote_at" yaml:"last_vote_at"`
	Streak     int       `boil:"streak" json:"streak" toml:"streak" yaml:"streak"`
	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"`
	DeletedAt  null.Time `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"`

	R *dailyR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L dailyL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Daily is an object representing the database table.

func FindDaily

func FindDaily(ctx context.Context, exec boil.ContextExecutor, playerID string, selectCols ...string) (*Daily, error)

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

func FindDailyG

func FindDailyG(ctx context.Context, playerID string, selectCols ...string) (*Daily, error)

FindDailyG retrieves a single record by ID.

func (*Daily) Delete

func (o *Daily) Delete(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

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

func (*Daily) DeleteG

func (o *Daily) DeleteG(ctx context.Context, hardDelete bool) (int64, error)

DeleteG deletes a single Daily record. DeleteG will match against the primary key column to find the record to delete.

func (*Daily) Exists

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

Exists checks if the Daily row exists.

func (*Daily) Insert

func (o *Daily) 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 (*Daily) InsertG

func (o *Daily) InsertG(ctx context.Context, columns boil.Columns) error

InsertG a single record. See Insert for whitelist behavior description.

func (*Daily) Player

func (o *Daily) Player(mods ...qm.QueryMod) playerQuery

Player pointed to by the foreign key.

func (*Daily) Reload

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

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

func (*Daily) ReloadG

func (o *Daily) ReloadG(ctx context.Context) error

ReloadG refetches the object from the database using the primary keys.

func (*Daily) SetPlayer

func (o *Daily) SetPlayer(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Player) error

SetPlayer of the daily to the related item. Sets o.R.Player to related. Adds o to related.R.Daily.

func (*Daily) SetPlayerG

func (o *Daily) SetPlayerG(ctx context.Context, insert bool, related *Player) error

SetPlayerG of the daily to the related item. Sets o.R.Player to related. Adds o to related.R.Daily. Uses the global database handle.

func (*Daily) Update

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

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

func (o *Daily) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)

UpdateG a single Daily record using the global executor. See Update for more documentation.

func (*Daily) Upsert

func (o *Daily) 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 (*Daily) UpsertG

func (o *Daily) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

UpsertG attempts an insert, and does an update or ignore on conflict.

type DailyHook

type DailyHook func(context.Context, boil.ContextExecutor, *Daily) error

DailyHook is the signature for custom Daily hook methods

type DailySlice

type DailySlice []*Daily

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

func (DailySlice) DeleteAll

func (o DailySlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

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

func (DailySlice) DeleteAllG

func (o DailySlice) DeleteAllG(ctx context.Context, hardDelete bool) (int64, error)

DeleteAllG deletes all rows in the slice.

func (*DailySlice) ReloadAll

func (o *DailySlice) 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 (*DailySlice) ReloadAllG

func (o *DailySlice) ReloadAllG(ctx context.Context) error

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

func (DailySlice) UpdateAll

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

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

func (DailySlice) UpdateAllG

func (o DailySlice) UpdateAllG(ctx context.Context, cols M) (int64, error)

UpdateAllG updates all rows with the specified column values.

type Dungeon

type Dungeon struct {
	ID        string    `boil:"id" json:"id" toml:"id" yaml:"id"`
	PlayerID  string    `boil:"player_id" json:"player_id" toml:"player_id" yaml:"player_id"`
	Seed      int64     `boil:"seed" json:"seed" toml:"seed" yaml:"seed"`
	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"`
	DeletedAt null.Time `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"`

	R *dungeonR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L dungeonL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Dungeon is an object representing the database table.

func FindDungeon

func FindDungeon(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*Dungeon, error)

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

func FindDungeonG

func FindDungeonG(ctx context.Context, iD string, selectCols ...string) (*Dungeon, error)

FindDungeonG retrieves a single record by ID.

func (*Dungeon) Delete

func (o *Dungeon) Delete(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

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

func (*Dungeon) DeleteG

func (o *Dungeon) DeleteG(ctx context.Context, hardDelete bool) (int64, error)

DeleteG deletes a single Dungeon record. DeleteG will match against the primary key column to find the record to delete.

func (*Dungeon) Exists

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

Exists checks if the Dungeon row exists.

func (*Dungeon) Insert

func (o *Dungeon) 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 (*Dungeon) InsertG

func (o *Dungeon) InsertG(ctx context.Context, columns boil.Columns) error

InsertG a single record. See Insert for whitelist behavior description.

func (*Dungeon) Player

func (o *Dungeon) Player(mods ...qm.QueryMod) playerQuery

Player pointed to by the foreign key.

func (*Dungeon) Reload

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

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

func (*Dungeon) ReloadG

func (o *Dungeon) ReloadG(ctx context.Context) error

ReloadG refetches the object from the database using the primary keys.

func (*Dungeon) SetPlayer

func (o *Dungeon) SetPlayer(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Player) error

SetPlayer of the dungeon to the related item. Sets o.R.Player to related. Adds o to related.R.Dungeons.

func (*Dungeon) SetPlayerG

func (o *Dungeon) SetPlayerG(ctx context.Context, insert bool, related *Player) error

SetPlayerG of the dungeon to the related item. Sets o.R.Player to related. Adds o to related.R.Dungeons. Uses the global database handle.

func (*Dungeon) Update

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

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

func (o *Dungeon) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)

UpdateG a single Dungeon record using the global executor. See Update for more documentation.

func (*Dungeon) Upsert

func (o *Dungeon) 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 (*Dungeon) UpsertG

func (o *Dungeon) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

UpsertG attempts an insert, and does an update or ignore on conflict.

type DungeonHook

type DungeonHook func(context.Context, boil.ContextExecutor, *Dungeon) error

DungeonHook is the signature for custom Dungeon hook methods

type DungeonSlice

type DungeonSlice []*Dungeon

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

func (DungeonSlice) DeleteAll

func (o DungeonSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

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

func (DungeonSlice) DeleteAllG

func (o DungeonSlice) DeleteAllG(ctx context.Context, hardDelete bool) (int64, error)

DeleteAllG deletes all rows in the slice.

func (*DungeonSlice) ReloadAll

func (o *DungeonSlice) 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 (*DungeonSlice) ReloadAllG

func (o *DungeonSlice) ReloadAllG(ctx context.Context) error

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

func (DungeonSlice) UpdateAll

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

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

func (DungeonSlice) UpdateAllG

func (o DungeonSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)

UpdateAllG updates all rows with the specified column values.

type GithubStar

type GithubStar struct {
	PlayerID     string      `boil:"player_id" json:"player_id" toml:"player_id" yaml:"player_id"`
	GithubUserID null.String `boil:"github_user_id" json:"github_user_id,omitempty" toml:"github_user_id" yaml:"github_user_id,omitempty"`
	HasStarred   bool        `boil:"has_starred" json:"has_starred" toml:"has_starred" yaml:"has_starred"`
	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"`
	DeletedAt    null.Time   `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"`

	R *githubStarR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L githubStarL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

GithubStar is an object representing the database table.

func FindGithubStar

func FindGithubStar(ctx context.Context, exec boil.ContextExecutor, playerID string, selectCols ...string) (*GithubStar, error)

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

func FindGithubStarG

func FindGithubStarG(ctx context.Context, playerID string, selectCols ...string) (*GithubStar, error)

FindGithubStarG retrieves a single record by ID.

func (*GithubStar) Delete

func (o *GithubStar) Delete(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

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

func (*GithubStar) DeleteG

func (o *GithubStar) DeleteG(ctx context.Context, hardDelete bool) (int64, error)

DeleteG deletes a single GithubStar record. DeleteG will match against the primary key column to find the record to delete.

func (*GithubStar) Exists

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

Exists checks if the GithubStar row exists.

func (*GithubStar) IDPlayer

func (o *GithubStar) IDPlayer(mods ...qm.QueryMod) playerQuery

IDPlayer pointed to by the foreign key.

func (*GithubStar) Insert

func (o *GithubStar) 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 (*GithubStar) InsertG

func (o *GithubStar) InsertG(ctx context.Context, columns boil.Columns) error

InsertG a single record. See Insert for whitelist behavior description.

func (*GithubStar) Player

func (o *GithubStar) Player(mods ...qm.QueryMod) playerQuery

Player pointed to by the foreign key.

func (*GithubStar) Reload

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

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

func (*GithubStar) ReloadG

func (o *GithubStar) ReloadG(ctx context.Context) error

ReloadG refetches the object from the database using the primary keys.

func (*GithubStar) SetIDPlayer

func (o *GithubStar) SetIDPlayer(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Player) error

SetIDPlayer of the githubStar to the related item. Sets o.R.IDPlayer to related. Adds o to related.R.IDGithubStar.

func (*GithubStar) SetIDPlayerG

func (o *GithubStar) SetIDPlayerG(ctx context.Context, insert bool, related *Player) error

SetIDPlayerG of the githubStar to the related item. Sets o.R.IDPlayer to related. Adds o to related.R.IDGithubStar. Uses the global database handle.

func (*GithubStar) SetPlayer

func (o *GithubStar) SetPlayer(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Player) error

SetPlayer of the githubStar to the related item. Sets o.R.Player to related. Adds o to related.R.GithubStar.

func (*GithubStar) SetPlayerG

func (o *GithubStar) SetPlayerG(ctx context.Context, insert bool, related *Player) error

SetPlayerG of the githubStar to the related item. Sets o.R.Player to related. Adds o to related.R.GithubStar. Uses the global database handle.

func (*GithubStar) Update

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

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

func (o *GithubStar) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)

UpdateG a single GithubStar record using the global executor. See Update for more documentation.

func (*GithubStar) Upsert

func (o *GithubStar) 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 (*GithubStar) UpsertG

func (o *GithubStar) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

UpsertG attempts an insert, and does an update or ignore on conflict.

type GithubStarHook

type GithubStarHook func(context.Context, boil.ContextExecutor, *GithubStar) error

GithubStarHook is the signature for custom GithubStar hook methods

type GithubStarSlice

type GithubStarSlice []*GithubStar

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

func (GithubStarSlice) DeleteAll

func (o GithubStarSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

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

func (GithubStarSlice) DeleteAllG

func (o GithubStarSlice) DeleteAllG(ctx context.Context, hardDelete bool) (int64, error)

DeleteAllG deletes all rows in the slice.

func (*GithubStarSlice) ReloadAll

func (o *GithubStarSlice) 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 (*GithubStarSlice) ReloadAllG

func (o *GithubStarSlice) ReloadAllG(ctx context.Context) error

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

func (GithubStarSlice) UpdateAll

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

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

func (GithubStarSlice) UpdateAllG

func (o GithubStarSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)

UpdateAllG updates all rows with the specified column values.

type Job

type Job struct {
	ID        string     `boil:"id" json:"id" toml:"id" yaml:"id"`
	Jobkey    string     `boil:"jobkey" json:"jobkey" toml:"jobkey" yaml:"jobkey"`
	Retries   int        `boil:"retries" json:"retries" toml:"retries" yaml:"retries"`
	RunAt     time.Time  `boil:"run_at" json:"run_at" toml:"run_at" yaml:"run_at"`
	Params    types.JSON `boil:"params" json:"params" toml:"params" yaml:"params"`
	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"`
	DeletedAt null.Time  `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"`
	LastRunID int64      `boil:"last_run_id" json:"last_run_id" toml:"last_run_id" yaml:"last_run_id"`
	Recurring bool       `boil:"recurring" json:"recurring" toml:"recurring" yaml:"recurring"`
	DeltaTime int64      `boil:"delta_time" json:"delta_time" toml:"delta_time" yaml:"delta_time"`
	Errored   bool       `boil:"errored" json:"errored" toml:"errored" yaml:"errored"`

	R *jobR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L jobL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Job is an object representing the database table.

func FindJob

func FindJob(ctx context.Context, exec boil.ContextExecutor, iD string, jobkey string, selectCols ...string) (*Job, error)

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

func FindJobG

func FindJobG(ctx context.Context, iD string, jobkey string, selectCols ...string) (*Job, error)

FindJobG retrieves a single record by ID.

func (*Job) Delete

func (o *Job) Delete(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

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

func (*Job) DeleteG

func (o *Job) DeleteG(ctx context.Context, hardDelete bool) (int64, error)

DeleteG deletes a single Job record. DeleteG will match against the primary key column to find the record to delete.

func (*Job) Exists

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

Exists checks if the Job row exists.

func (*Job) Insert

func (o *Job) 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 (*Job) InsertG

func (o *Job) InsertG(ctx context.Context, columns boil.Columns) error

InsertG a single record. See Insert for whitelist behavior description.

func (*Job) Reload

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

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

func (*Job) ReloadG

func (o *Job) ReloadG(ctx context.Context) error

ReloadG refetches the object from the database using the primary keys.

func (*Job) Update

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

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

func (o *Job) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)

UpdateG a single Job record using the global executor. See Update for more documentation.

func (*Job) Upsert

func (o *Job) 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 (*Job) UpsertG

func (o *Job) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

UpsertG attempts an insert, and does an update or ignore on conflict.

type JobHook

type JobHook func(context.Context, boil.ContextExecutor, *Job) error

JobHook is the signature for custom Job hook methods

type JobSlice

type JobSlice []*Job

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

func (JobSlice) DeleteAll

func (o JobSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

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

func (JobSlice) DeleteAllG

func (o JobSlice) DeleteAllG(ctx context.Context, hardDelete bool) (int64, error)

DeleteAllG deletes all rows in the slice.

func (*JobSlice) ReloadAll

func (o *JobSlice) 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 (*JobSlice) ReloadAllG

func (o *JobSlice) ReloadAllG(ctx context.Context) error

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

func (JobSlice) UpdateAll

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

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

func (JobSlice) UpdateAllG

func (o JobSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)

UpdateAllG updates all rows with the specified column values.

type Listing

type Listing struct {
	ID        string    `boil:"id" json:"id" toml:"id" yaml:"id"`
	PlayerID  string    `boil:"player_id" json:"player_id" toml:"player_id" yaml:"player_id"`
	CardID    string    `boil:"card_id" json:"card_id" toml:"card_id" yaml:"card_id"`
	Price     int64     `boil:"price" json:"price" toml:"price" yaml:"price"`
	Note      string    `boil:"note" json:"note" toml:"note" yaml:"note"`
	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"`
	DeletedAt null.Time `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"`

	R *listingR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L listingL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Listing is an object representing the database table.

func FindListing

func FindListing(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*Listing, error)

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

func FindListingG

func FindListingG(ctx context.Context, iD string, selectCols ...string) (*Listing, error)

FindListingG retrieves a single record by ID.

func (*Listing) Card

func (o *Listing) Card(mods ...qm.QueryMod) cardQuery

Card pointed to by the foreign key.

func (*Listing) Delete

func (o *Listing) Delete(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

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

func (*Listing) DeleteG

func (o *Listing) DeleteG(ctx context.Context, hardDelete bool) (int64, error)

DeleteG deletes a single Listing record. DeleteG will match against the primary key column to find the record to delete.

func (*Listing) Exists

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

Exists checks if the Listing row exists.

func (*Listing) Insert

func (o *Listing) 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 (*Listing) InsertG

func (o *Listing) InsertG(ctx context.Context, columns boil.Columns) error

InsertG a single record. See Insert for whitelist behavior description.

func (*Listing) Player

func (o *Listing) Player(mods ...qm.QueryMod) playerQuery

Player pointed to by the foreign key.

func (*Listing) Reload

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

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

func (*Listing) ReloadG

func (o *Listing) ReloadG(ctx context.Context) error

ReloadG refetches the object from the database using the primary keys.

func (*Listing) SetCard

func (o *Listing) SetCard(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Card) error

SetCard of the listing to the related item. Sets o.R.Card to related. Adds o to related.R.Listings.

func (*Listing) SetCardG

func (o *Listing) SetCardG(ctx context.Context, insert bool, related *Card) error

SetCardG of the listing to the related item. Sets o.R.Card to related. Adds o to related.R.Listings. Uses the global database handle.

func (*Listing) SetPlayer

func (o *Listing) SetPlayer(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Player) error

SetPlayer of the listing to the related item. Sets o.R.Player to related. Adds o to related.R.Listings.

func (*Listing) SetPlayerG

func (o *Listing) SetPlayerG(ctx context.Context, insert bool, related *Player) error

SetPlayerG of the listing to the related item. Sets o.R.Player to related. Adds o to related.R.Listings. Uses the global database handle.

func (*Listing) Update

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

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

func (o *Listing) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)

UpdateG a single Listing record using the global executor. See Update for more documentation.

func (*Listing) Upsert

func (o *Listing) 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 (*Listing) UpsertG

func (o *Listing) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

UpsertG attempts an insert, and does an update or ignore on conflict.

type ListingHook

type ListingHook func(context.Context, boil.ContextExecutor, *Listing) error

ListingHook is the signature for custom Listing hook methods

type ListingSlice

type ListingSlice []*Listing

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

func (ListingSlice) DeleteAll

func (o ListingSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

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

func (ListingSlice) DeleteAllG

func (o ListingSlice) DeleteAllG(ctx context.Context, hardDelete bool) (int64, error)

DeleteAllG deletes all rows in the slice.

func (*ListingSlice) ReloadAll

func (o *ListingSlice) 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 (*ListingSlice) ReloadAllG

func (o *ListingSlice) ReloadAllG(ctx context.Context) error

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

func (ListingSlice) UpdateAll

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

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

func (ListingSlice) UpdateAllG

func (o ListingSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)

UpdateAllG updates all rows with the specified column values.

type LootBox

type LootBox struct {
	ID        string        `boil:"id" json:"id" toml:"id" yaml:"id"`
	PlayerID  string        `boil:"player_id" json:"player_id" toml:"player_id" yaml:"player_id"`
	Type      LootBoxesType `boil:"type" json:"type" toml:"type" yaml:"type"`
	Metadata  null.JSON     `boil:"metadata" json:"metadata,omitempty" toml:"metadata" yaml:"metadata,omitempty"`
	CreatedAt time.Time     `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt time.Time     `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
	DeletedAt null.Time     `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"`

	R *lootBoxR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L lootBoxL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

LootBox is an object representing the database table.

func FindLootBox

func FindLootBox(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*LootBox, error)

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

func FindLootBoxG

func FindLootBoxG(ctx context.Context, iD string, selectCols ...string) (*LootBox, error)

FindLootBoxG retrieves a single record by ID.

func (*LootBox) Delete

func (o *LootBox) Delete(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

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

func (*LootBox) DeleteG

func (o *LootBox) DeleteG(ctx context.Context, hardDelete bool) (int64, error)

DeleteG deletes a single LootBox record. DeleteG will match against the primary key column to find the record to delete.

func (*LootBox) Exists

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

Exists checks if the LootBox row exists.

func (*LootBox) Insert

func (o *LootBox) 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 (*LootBox) InsertG

func (o *LootBox) InsertG(ctx context.Context, columns boil.Columns) error

InsertG a single record. See Insert for whitelist behavior description.

func (*LootBox) Player

func (o *LootBox) Player(mods ...qm.QueryMod) playerQuery

Player pointed to by the foreign key.

func (*LootBox) Reload

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

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

func (*LootBox) ReloadG

func (o *LootBox) ReloadG(ctx context.Context) error

ReloadG refetches the object from the database using the primary keys.

func (*LootBox) SetPlayer

func (o *LootBox) SetPlayer(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Player) error

SetPlayer of the lootBox to the related item. Sets o.R.Player to related. Adds o to related.R.LootBoxes.

func (*LootBox) SetPlayerG

func (o *LootBox) SetPlayerG(ctx context.Context, insert bool, related *Player) error

SetPlayerG of the lootBox to the related item. Sets o.R.Player to related. Adds o to related.R.LootBoxes. Uses the global database handle.

func (*LootBox) Update

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

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

func (o *LootBox) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)

UpdateG a single LootBox record using the global executor. See Update for more documentation.

func (*LootBox) Upsert

func (o *LootBox) 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 (*LootBox) UpsertG

func (o *LootBox) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

UpsertG attempts an insert, and does an update or ignore on conflict.

type LootBoxHook

type LootBoxHook func(context.Context, boil.ContextExecutor, *LootBox) error

LootBoxHook is the signature for custom LootBox hook methods

type LootBoxSlice

type LootBoxSlice []*LootBox

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

func (LootBoxSlice) DeleteAll

func (o LootBoxSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

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

func (LootBoxSlice) DeleteAllG

func (o LootBoxSlice) DeleteAllG(ctx context.Context, hardDelete bool) (int64, error)

DeleteAllG deletes all rows in the slice.

func (*LootBoxSlice) ReloadAll

func (o *LootBoxSlice) 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 (*LootBoxSlice) ReloadAllG

func (o *LootBoxSlice) ReloadAllG(ctx context.Context) error

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

func (LootBoxSlice) UpdateAll

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

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

func (LootBoxSlice) UpdateAllG

func (o LootBoxSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)

UpdateAllG updates all rows with the specified column values.

type LootBoxesType

type LootBoxesType string
const (
	LootBoxesTypeClassic LootBoxesType = "classic"
	LootBoxesTypeRare    LootBoxesType = "rare"
	LootBoxesTypeSpecial LootBoxesType = "special"
	LootBoxesTypeLimited LootBoxesType = "limited"
)

Enum values for LootBoxesType

func AllLootBoxesType

func AllLootBoxesType() []LootBoxesType

func (LootBoxesType) IsValid

func (e LootBoxesType) IsValid() error

func (LootBoxesType) Ordinal

func (e LootBoxesType) Ordinal() int

func (LootBoxesType) String

func (e LootBoxesType) String() string

type M

type M map[string]interface{}

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

type Player

type Player struct {
	ID             string      `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"`
	DeletedAt      null.Time   `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"`
	SelectedCardID null.String `boil:"selected_card_id" json:"selected_card_id,omitempty" toml:"selected_card_id" yaml:"selected_card_id,omitempty"`
	Liens          int64       `boil:"liens" json:"liens" toml:"liens" yaml:"liens"`
	Level          int         `boil:"level" json:"level" toml:"level" yaml:"level"`
	XP             int64       `boil:"xp" json:"xp" toml:"xp" yaml:"xp"`
	NextLevelXP    int64       `boil:"next_level_xp" json:"next_level_xp" toml:"next_level_xp" yaml:"next_level_xp"`
	BackpackLevel  int         `boil:"backpack_level" json:"backpack_level" toml:"backpack_level" yaml:"backpack_level"`
	LiensBidded    int64       `boil:"liens_bidded" json:"liens_bidded" toml:"liens_bidded" yaml:"liens_bidded"`
	Username       string      `boil:"username" json:"username" toml:"username" yaml:"username"`
	SlotsReserved  int         `boil:"slots_reserved" json:"slots_reserved" toml:"slots_reserved" yaml:"slots_reserved"`

	R *playerR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L playerL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Player is an object representing the database table.

func FindPlayer

func FindPlayer(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*Player, error)

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

func FindPlayerG

func FindPlayerG(ctx context.Context, iD string, selectCols ...string) (*Player, error)

FindPlayerG retrieves a single record by ID.

func (*Player) AddAuctions

func (o *Player) AddAuctions(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Auction) error

AddAuctions adds the given related objects to the existing relationships of the player, optionally inserting them as new records. Appends related to o.R.Auctions. Sets related.R.Player appropriately.

func (*Player) AddAuctionsBids

func (o *Player) AddAuctionsBids(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*AuctionsBid) error

AddAuctionsBids adds the given related objects to the existing relationships of the player, optionally inserting them as new records. Appends related to o.R.AuctionsBids. Sets related.R.Player appropriately.

func (*Player) AddAuctionsBidsG

func (o *Player) AddAuctionsBidsG(ctx context.Context, insert bool, related ...*AuctionsBid) error

AddAuctionsBidsG adds the given related objects to the existing relationships of the player, optionally inserting them as new records. Appends related to o.R.AuctionsBids. Sets related.R.Player appropriately. Uses the global database handle.

func (*Player) AddAuctionsG

func (o *Player) AddAuctionsG(ctx context.Context, insert bool, related ...*Auction) error

AddAuctionsG adds the given related objects to the existing relationships of the player, optionally inserting them as new records. Appends related to o.R.Auctions. Sets related.R.Player appropriately. Uses the global database handle.

func (*Player) AddAuthCookies

func (o *Player) AddAuthCookies(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*AuthCookie) error

AddAuthCookies adds the given related objects to the existing relationships of the player, optionally inserting them as new records. Appends related to o.R.AuthCookies. Sets related.R.Player appropriately.

func (*Player) AddAuthCookiesG

func (o *Player) AddAuthCookiesG(ctx context.Context, insert bool, related ...*AuthCookie) error

AddAuthCookiesG adds the given related objects to the existing relationships of the player, optionally inserting them as new records. Appends related to o.R.AuthCookies. Sets related.R.Player appropriately. Uses the global database handle.

func (*Player) AddAuthDiscordStates

func (o *Player) AddAuthDiscordStates(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*AuthDiscordState) error

AddAuthDiscordStates adds the given related objects to the existing relationships of the player, optionally inserting them as new records. Appends related to o.R.AuthDiscordStates. Sets related.R.Player appropriately.

func (*Player) AddAuthDiscordStatesG

func (o *Player) AddAuthDiscordStatesG(ctx context.Context, insert bool, related ...*AuthDiscordState) error

AddAuthDiscordStatesG adds the given related objects to the existing relationships of the player, optionally inserting them as new records. Appends related to o.R.AuthDiscordStates. Sets related.R.Player appropriately. Uses the global database handle.

func (*Player) AddAuthGithubStates

func (o *Player) AddAuthGithubStates(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*AuthGithubState) error

AddAuthGithubStates adds the given related objects to the existing relationships of the player, optionally inserting them as new records. Appends related to o.R.AuthGithubStates. Sets related.R.Player appropriately.

func (*Player) AddAuthGithubStatesG

func (o *Player) AddAuthGithubStatesG(ctx context.Context, insert bool, related ...*AuthGithubState) error

AddAuthGithubStatesG adds the given related objects to the existing relationships of the player, optionally inserting them as new records. Appends related to o.R.AuthGithubStates. Sets related.R.Player appropriately. Uses the global database handle.

func (*Player) AddCards

func (o *Player) AddCards(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Card) error

AddCards adds the given related objects to the existing relationships of the player, optionally inserting them as new records. Appends related to o.R.Cards. Sets related.R.Player appropriately.

func (*Player) AddCardsG

func (o *Player) AddCardsG(ctx context.Context, insert bool, related ...*Card) error

AddCardsG adds the given related objects to the existing relationships of the player, optionally inserting them as new records. Appends related to o.R.Cards. Sets related.R.Player appropriately. Uses the global database handle.

func (*Player) AddDungeons

func (o *Player) AddDungeons(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Dungeon) error

AddDungeons adds the given related objects to the existing relationships of the player, optionally inserting them as new records. Appends related to o.R.Dungeons. Sets related.R.Player appropriately.

func (*Player) AddDungeonsG

func (o *Player) AddDungeonsG(ctx context.Context, insert bool, related ...*Dungeon) error

AddDungeonsG adds the given related objects to the existing relationships of the player, optionally inserting them as new records. Appends related to o.R.Dungeons. Sets related.R.Player appropriately. Uses the global database handle.

func (*Player) AddListings

func (o *Player) AddListings(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Listing) error

AddListings adds the given related objects to the existing relationships of the player, optionally inserting them as new records. Appends related to o.R.Listings. Sets related.R.Player appropriately.

func (*Player) AddListingsG

func (o *Player) AddListingsG(ctx context.Context, insert bool, related ...*Listing) error

AddListingsG adds the given related objects to the existing relationships of the player, optionally inserting them as new records. Appends related to o.R.Listings. Sets related.R.Player appropriately. Uses the global database handle.

func (*Player) AddLootBoxes

func (o *Player) AddLootBoxes(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*LootBox) error

AddLootBoxes adds the given related objects to the existing relationships of the player, optionally inserting them as new records. Appends related to o.R.LootBoxes. Sets related.R.Player appropriately.

func (*Player) AddLootBoxesG

func (o *Player) AddLootBoxesG(ctx context.Context, insert bool, related ...*LootBox) error

AddLootBoxesG adds the given related objects to the existing relationships of the player, optionally inserting them as new records. Appends related to o.R.LootBoxes. Sets related.R.Player appropriately. Uses the global database handle.

func (*Player) AddPlayerCardFavorites

func (o *Player) AddPlayerCardFavorites(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*PlayerCardFavorite) error

AddPlayerCardFavorites adds the given related objects to the existing relationships of the player, optionally inserting them as new records. Appends related to o.R.PlayerCardFavorites. Sets related.R.Player appropriately.

func (*Player) AddPlayerCardFavoritesG

func (o *Player) AddPlayerCardFavoritesG(ctx context.Context, insert bool, related ...*PlayerCardFavorite) error

AddPlayerCardFavoritesG adds the given related objects to the existing relationships of the player, optionally inserting them as new records. Appends related to o.R.PlayerCardFavorites. Sets related.R.Player appropriately. Uses the global database handle.

func (*Player) AddPlayerCards

func (o *Player) AddPlayerCards(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*PlayerCard) error

AddPlayerCards adds the given related objects to the existing relationships of the player, optionally inserting them as new records. Appends related to o.R.PlayerCards. Sets related.R.Player appropriately.

func (*Player) AddPlayerCardsDecks

func (o *Player) AddPlayerCardsDecks(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*PlayerCardsDeck) error

AddPlayerCardsDecks adds the given related objects to the existing relationships of the player, optionally inserting them as new records. Appends related to o.R.PlayerCardsDecks. Sets related.R.Player appropriately.

func (*Player) AddPlayerCardsDecksG

func (o *Player) AddPlayerCardsDecksG(ctx context.Context, insert bool, related ...*PlayerCardsDeck) error

AddPlayerCardsDecksG adds the given related objects to the existing relationships of the player, optionally inserting them as new records. Appends related to o.R.PlayerCardsDecks. Sets related.R.Player appropriately. Uses the global database handle.

func (*Player) AddPlayerCardsG

func (o *Player) AddPlayerCardsG(ctx context.Context, insert bool, related ...*PlayerCard) error

AddPlayerCardsG adds the given related objects to the existing relationships of the player, optionally inserting them as new records. Appends related to o.R.PlayerCards. Sets related.R.Player appropriately. Uses the global database handle.

func (*Player) Auctions

func (o *Player) Auctions(mods ...qm.QueryMod) auctionQuery

Auctions retrieves all the auction's Auctions with an executor.

func (*Player) AuctionsBids

func (o *Player) AuctionsBids(mods ...qm.QueryMod) auctionsBidQuery

AuctionsBids retrieves all the auctions_bid's AuctionsBids with an executor.

func (*Player) AuthCookies

func (o *Player) AuthCookies(mods ...qm.QueryMod) authCookieQuery

AuthCookies retrieves all the auth_cookie's AuthCookies with an executor.

func (*Player) AuthDiscordStates

func (o *Player) AuthDiscordStates(mods ...qm.QueryMod) authDiscordStateQuery

AuthDiscordStates retrieves all the auth_discord_state's AuthDiscordStates with an executor.

func (*Player) AuthGithubStates

func (o *Player) AuthGithubStates(mods ...qm.QueryMod) authGithubStateQuery

AuthGithubStates retrieves all the auth_github_state's AuthGithubStates with an executor.

func (*Player) Cards

func (o *Player) Cards(mods ...qm.QueryMod) cardQuery

Cards retrieves all the card's Cards with an executor.

func (*Player) Daily

func (o *Player) Daily(mods ...qm.QueryMod) dailyQuery

Daily pointed to by the foreign key.

func (*Player) Delete

func (o *Player) Delete(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

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

func (*Player) DeleteG

func (o *Player) DeleteG(ctx context.Context, hardDelete bool) (int64, error)

DeleteG deletes a single Player record. DeleteG will match against the primary key column to find the record to delete.

func (*Player) Dungeons

func (o *Player) Dungeons(mods ...qm.QueryMod) dungeonQuery

Dungeons retrieves all the dungeon's Dungeons with an executor.

func (*Player) Exists

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

Exists checks if the Player row exists.

func (*Player) GithubStar

func (o *Player) GithubStar(mods ...qm.QueryMod) githubStarQuery

GithubStar pointed to by the foreign key.

func (*Player) IDGithubStar

func (o *Player) IDGithubStar(mods ...qm.QueryMod) githubStarQuery

IDGithubStar pointed to by the foreign key.

func (*Player) Insert

func (o *Player) 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 (*Player) InsertG

func (o *Player) InsertG(ctx context.Context, columns boil.Columns) error

InsertG a single record. See Insert for whitelist behavior description.

func (*Player) Listings

func (o *Player) Listings(mods ...qm.QueryMod) listingQuery

Listings retrieves all the listing's Listings with an executor.

func (*Player) LootBoxes

func (o *Player) LootBoxes(mods ...qm.QueryMod) lootBoxQuery

LootBoxes retrieves all the loot_box's LootBoxes with an executor.

func (*Player) PlayerCardFavorites

func (o *Player) PlayerCardFavorites(mods ...qm.QueryMod) playerCardFavoriteQuery

PlayerCardFavorites retrieves all the player_card_favorite's PlayerCardFavorites with an executor.

func (*Player) PlayerCards

func (o *Player) PlayerCards(mods ...qm.QueryMod) playerCardQuery

PlayerCards retrieves all the player_card's PlayerCards with an executor.

func (*Player) PlayerCardsDecks

func (o *Player) PlayerCardsDecks(mods ...qm.QueryMod) playerCardsDeckQuery

PlayerCardsDecks retrieves all the player_cards_deck's PlayerCardsDecks with an executor.

func (*Player) PlayerLimit

func (o *Player) PlayerLimit(mods ...qm.QueryMod) playerLimitQuery

PlayerLimit pointed to by the foreign key.

func (*Player) Reload

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

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

func (*Player) ReloadG

func (o *Player) ReloadG(ctx context.Context) error

ReloadG refetches the object from the database using the primary keys.

func (*Player) RemoveAuthDiscordStates

func (o *Player) RemoveAuthDiscordStates(ctx context.Context, exec boil.ContextExecutor, related ...*AuthDiscordState) error

RemoveAuthDiscordStates relationships from objects passed in. Removes related items from R.AuthDiscordStates (uses pointer comparison, removal does not keep order) Sets related.R.Player.

func (*Player) RemoveAuthDiscordStatesG

func (o *Player) RemoveAuthDiscordStatesG(ctx context.Context, related ...*AuthDiscordState) error

RemoveAuthDiscordStatesG relationships from objects passed in. Removes related items from R.AuthDiscordStates (uses pointer comparison, removal does not keep order) Sets related.R.Player. Uses the global database handle.

func (*Player) RemoveSelectedCard

func (o *Player) RemoveSelectedCard(ctx context.Context, exec boil.ContextExecutor, related *Card) error

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

func (*Player) RemoveSelectedCardG

func (o *Player) RemoveSelectedCardG(ctx context.Context, related *Card) error

RemoveSelectedCardG relationship. Sets o.R.SelectedCard to nil. Removes o from all passed in related items' relationships struct. Uses the global database handle.

func (*Player) SelectedCard

func (o *Player) SelectedCard(mods ...qm.QueryMod) cardQuery

SelectedCard pointed to by the foreign key.

func (*Player) SetAuthDiscordStates

func (o *Player) SetAuthDiscordStates(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*AuthDiscordState) error

SetAuthDiscordStates removes all previously related items of the player replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Player's AuthDiscordStates accordingly. Replaces o.R.AuthDiscordStates with related. Sets related.R.Player's AuthDiscordStates accordingly.

func (*Player) SetAuthDiscordStatesG

func (o *Player) SetAuthDiscordStatesG(ctx context.Context, insert bool, related ...*AuthDiscordState) error

SetAuthDiscordStatesG removes all previously related items of the player replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Player's AuthDiscordStates accordingly. Replaces o.R.AuthDiscordStates with related. Sets related.R.Player's AuthDiscordStates accordingly. Uses the global database handle.

func (*Player) SetDaily

func (o *Player) SetDaily(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Daily) error

SetDaily of the player to the related item. Sets o.R.Daily to related. Adds o to related.R.Player.

func (*Player) SetDailyG

func (o *Player) SetDailyG(ctx context.Context, insert bool, related *Daily) error

SetDailyG of the player to the related item. Sets o.R.Daily to related. Adds o to related.R.Player. Uses the global database handle.

func (*Player) SetGithubStar

func (o *Player) SetGithubStar(ctx context.Context, exec boil.ContextExecutor, insert bool, related *GithubStar) error

SetGithubStar of the player to the related item. Sets o.R.GithubStar to related. Adds o to related.R.Player.

func (*Player) SetGithubStarG

func (o *Player) SetGithubStarG(ctx context.Context, insert bool, related *GithubStar) error

SetGithubStarG of the player to the related item. Sets o.R.GithubStar to related. Adds o to related.R.Player. Uses the global database handle.

func (*Player) SetIDGithubStar

func (o *Player) SetIDGithubStar(ctx context.Context, exec boil.ContextExecutor, insert bool, related *GithubStar) error

SetIDGithubStar of the player to the related item. Sets o.R.IDGithubStar to related. Adds o to related.R.IDPlayer.

func (*Player) SetIDGithubStarG

func (o *Player) SetIDGithubStarG(ctx context.Context, insert bool, related *GithubStar) error

SetIDGithubStarG of the player to the related item. Sets o.R.IDGithubStar to related. Adds o to related.R.IDPlayer. Uses the global database handle.

func (*Player) SetPlayerLimit

func (o *Player) SetPlayerLimit(ctx context.Context, exec boil.ContextExecutor, insert bool, related *PlayerLimit) error

SetPlayerLimit of the player to the related item. Sets o.R.PlayerLimit to related. Adds o to related.R.Player.

func (*Player) SetPlayerLimitG

func (o *Player) SetPlayerLimitG(ctx context.Context, insert bool, related *PlayerLimit) error

SetPlayerLimitG of the player to the related item. Sets o.R.PlayerLimit to related. Adds o to related.R.Player. Uses the global database handle.

func (*Player) SetSelectedCard

func (o *Player) SetSelectedCard(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Card) error

SetSelectedCard of the player to the related item. Sets o.R.SelectedCard to related. Adds o to related.R.SelectedCardPlayers.

func (*Player) SetSelectedCardG

func (o *Player) SetSelectedCardG(ctx context.Context, insert bool, related *Card) error

SetSelectedCardG of the player to the related item. Sets o.R.SelectedCard to related. Adds o to related.R.SelectedCardPlayers. Uses the global database handle.

func (*Player) Update

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

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

func (o *Player) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)

UpdateG a single Player record using the global executor. See Update for more documentation.

func (*Player) Upsert

func (o *Player) 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 (*Player) UpsertG

func (o *Player) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

UpsertG attempts an insert, and does an update or ignore on conflict.

type PlayerCard

type PlayerCard struct {
	PlayerID string `boil:"player_id" json:"player_id" toml:"player_id" yaml:"player_id"`
	CardID   string `boil:"card_id" json:"card_id" toml:"card_id" yaml:"card_id"`
	Position int    `boil:"position" json:"position" toml:"position" yaml:"position"`

	R *playerCardR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L playerCardL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

PlayerCard is an object representing the database table.

func FindPlayerCard

func FindPlayerCard(ctx context.Context, exec boil.ContextExecutor, playerID string, cardID string, selectCols ...string) (*PlayerCard, error)

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

func FindPlayerCardG

func FindPlayerCardG(ctx context.Context, playerID string, cardID string, selectCols ...string) (*PlayerCard, error)

FindPlayerCardG retrieves a single record by ID.

func (*PlayerCard) Card

func (o *PlayerCard) Card(mods ...qm.QueryMod) cardQuery

Card pointed to by the foreign key.

func (*PlayerCard) Delete

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

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

func (*PlayerCard) DeleteG

func (o *PlayerCard) DeleteG(ctx context.Context) (int64, error)

DeleteG deletes a single PlayerCard record. DeleteG will match against the primary key column to find the record to delete.

func (*PlayerCard) Exists

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

Exists checks if the PlayerCard row exists.

func (*PlayerCard) Insert

func (o *PlayerCard) 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 (*PlayerCard) InsertG

func (o *PlayerCard) InsertG(ctx context.Context, columns boil.Columns) error

InsertG a single record. See Insert for whitelist behavior description.

func (*PlayerCard) Player

func (o *PlayerCard) Player(mods ...qm.QueryMod) playerQuery

Player pointed to by the foreign key.

func (*PlayerCard) Reload

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

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

func (*PlayerCard) ReloadG

func (o *PlayerCard) ReloadG(ctx context.Context) error

ReloadG refetches the object from the database using the primary keys.

func (*PlayerCard) SetCard

func (o *PlayerCard) SetCard(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Card) error

SetCard of the playerCard to the related item. Sets o.R.Card to related. Adds o to related.R.PlayerCards.

func (*PlayerCard) SetCardG

func (o *PlayerCard) SetCardG(ctx context.Context, insert bool, related *Card) error

SetCardG of the playerCard to the related item. Sets o.R.Card to related. Adds o to related.R.PlayerCards. Uses the global database handle.

func (*PlayerCard) SetPlayer

func (o *PlayerCard) SetPlayer(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Player) error

SetPlayer of the playerCard to the related item. Sets o.R.Player to related. Adds o to related.R.PlayerCards.

func (*PlayerCard) SetPlayerG

func (o *PlayerCard) SetPlayerG(ctx context.Context, insert bool, related *Player) error

SetPlayerG of the playerCard to the related item. Sets o.R.Player to related. Adds o to related.R.PlayerCards. Uses the global database handle.

func (*PlayerCard) Update

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

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

func (o *PlayerCard) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)

UpdateG a single PlayerCard record using the global executor. See Update for more documentation.

func (*PlayerCard) Upsert

func (o *PlayerCard) 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 (*PlayerCard) UpsertG

func (o *PlayerCard) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

UpsertG attempts an insert, and does an update or ignore on conflict.

type PlayerCardFavorite

type PlayerCardFavorite struct {
	PlayerID string `boil:"player_id" json:"player_id" toml:"player_id" yaml:"player_id"`
	CardID   string `boil:"card_id" json:"card_id" toml:"card_id" yaml:"card_id"`
	Position int    `boil:"position" json:"position" toml:"position" yaml:"position"`

	R *playerCardFavoriteR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L playerCardFavoriteL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

PlayerCardFavorite is an object representing the database table.

func FindPlayerCardFavorite

func FindPlayerCardFavorite(ctx context.Context, exec boil.ContextExecutor, playerID string, cardID string, selectCols ...string) (*PlayerCardFavorite, error)

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

func FindPlayerCardFavoriteG

func FindPlayerCardFavoriteG(ctx context.Context, playerID string, cardID string, selectCols ...string) (*PlayerCardFavorite, error)

FindPlayerCardFavoriteG retrieves a single record by ID.

func (*PlayerCardFavorite) Card

func (o *PlayerCardFavorite) Card(mods ...qm.QueryMod) cardQuery

Card pointed to by the foreign key.

func (*PlayerCardFavorite) Delete

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

func (*PlayerCardFavorite) DeleteG

func (o *PlayerCardFavorite) DeleteG(ctx context.Context) (int64, error)

DeleteG deletes a single PlayerCardFavorite record. DeleteG will match against the primary key column to find the record to delete.

func (*PlayerCardFavorite) Exists

Exists checks if the PlayerCardFavorite row exists.

func (*PlayerCardFavorite) Insert

func (o *PlayerCardFavorite) 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 (*PlayerCardFavorite) InsertG

func (o *PlayerCardFavorite) InsertG(ctx context.Context, columns boil.Columns) error

InsertG a single record. See Insert for whitelist behavior description.

func (*PlayerCardFavorite) Player

func (o *PlayerCardFavorite) Player(mods ...qm.QueryMod) playerQuery

Player pointed to by the foreign key.

func (*PlayerCardFavorite) Reload

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

func (*PlayerCardFavorite) ReloadG

func (o *PlayerCardFavorite) ReloadG(ctx context.Context) error

ReloadG refetches the object from the database using the primary keys.

func (*PlayerCardFavorite) SetCard

func (o *PlayerCardFavorite) SetCard(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Card) error

SetCard of the playerCardFavorite to the related item. Sets o.R.Card to related. Adds o to related.R.PlayerCardFavorites.

func (*PlayerCardFavorite) SetCardG

func (o *PlayerCardFavorite) SetCardG(ctx context.Context, insert bool, related *Card) error

SetCardG of the playerCardFavorite to the related item. Sets o.R.Card to related. Adds o to related.R.PlayerCardFavorites. Uses the global database handle.

func (*PlayerCardFavorite) SetPlayer

func (o *PlayerCardFavorite) SetPlayer(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Player) error

SetPlayer of the playerCardFavorite to the related item. Sets o.R.Player to related. Adds o to related.R.PlayerCardFavorites.

func (*PlayerCardFavorite) SetPlayerG

func (o *PlayerCardFavorite) SetPlayerG(ctx context.Context, insert bool, related *Player) error

SetPlayerG of the playerCardFavorite to the related item. Sets o.R.Player to related. Adds o to related.R.PlayerCardFavorites. Uses the global database handle.

func (*PlayerCardFavorite) Update

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

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

func (o *PlayerCardFavorite) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)

UpdateG a single PlayerCardFavorite record using the global executor. See Update for more documentation.

func (*PlayerCardFavorite) Upsert

func (o *PlayerCardFavorite) 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 (*PlayerCardFavorite) UpsertG

func (o *PlayerCardFavorite) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

UpsertG attempts an insert, and does an update or ignore on conflict.

type PlayerCardFavoriteHook

type PlayerCardFavoriteHook func(context.Context, boil.ContextExecutor, *PlayerCardFavorite) error

PlayerCardFavoriteHook is the signature for custom PlayerCardFavorite hook methods

type PlayerCardFavoriteSlice

type PlayerCardFavoriteSlice []*PlayerCardFavorite

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

func (PlayerCardFavoriteSlice) DeleteAll

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

func (PlayerCardFavoriteSlice) DeleteAllG

func (o PlayerCardFavoriteSlice) DeleteAllG(ctx context.Context) (int64, error)

DeleteAllG deletes all rows in the slice.

func (*PlayerCardFavoriteSlice) ReloadAll

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

func (*PlayerCardFavoriteSlice) ReloadAllG

func (o *PlayerCardFavoriteSlice) ReloadAllG(ctx context.Context) error

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

func (PlayerCardFavoriteSlice) UpdateAll

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

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

func (PlayerCardFavoriteSlice) UpdateAllG

func (o PlayerCardFavoriteSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)

UpdateAllG updates all rows with the specified column values.

type PlayerCardHook

type PlayerCardHook func(context.Context, boil.ContextExecutor, *PlayerCard) error

PlayerCardHook is the signature for custom PlayerCard hook methods

type PlayerCardSlice

type PlayerCardSlice []*PlayerCard

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

func (PlayerCardSlice) DeleteAll

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

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

func (PlayerCardSlice) DeleteAllG

func (o PlayerCardSlice) DeleteAllG(ctx context.Context) (int64, error)

DeleteAllG deletes all rows in the slice.

func (*PlayerCardSlice) ReloadAll

func (o *PlayerCardSlice) 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 (*PlayerCardSlice) ReloadAllG

func (o *PlayerCardSlice) ReloadAllG(ctx context.Context) error

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

func (PlayerCardSlice) UpdateAll

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

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

func (PlayerCardSlice) UpdateAllG

func (o PlayerCardSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)

UpdateAllG updates all rows with the specified column values.

type PlayerCardsDeck

type PlayerCardsDeck struct {
	PlayerID string `boil:"player_id" json:"player_id" toml:"player_id" yaml:"player_id"`
	CardID   string `boil:"card_id" json:"card_id" toml:"card_id" yaml:"card_id"`
	Position int    `boil:"position" json:"position" toml:"position" yaml:"position"`

	R *playerCardsDeckR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L playerCardsDeckL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

PlayerCardsDeck is an object representing the database table.

func FindPlayerCardsDeck

func FindPlayerCardsDeck(ctx context.Context, exec boil.ContextExecutor, playerID string, cardID string, selectCols ...string) (*PlayerCardsDeck, error)

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

func FindPlayerCardsDeckG

func FindPlayerCardsDeckG(ctx context.Context, playerID string, cardID string, selectCols ...string) (*PlayerCardsDeck, error)

FindPlayerCardsDeckG retrieves a single record by ID.

func (*PlayerCardsDeck) Card

func (o *PlayerCardsDeck) Card(mods ...qm.QueryMod) cardQuery

Card pointed to by the foreign key.

func (*PlayerCardsDeck) Delete

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

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

func (*PlayerCardsDeck) DeleteG

func (o *PlayerCardsDeck) DeleteG(ctx context.Context) (int64, error)

DeleteG deletes a single PlayerCardsDeck record. DeleteG will match against the primary key column to find the record to delete.

func (*PlayerCardsDeck) Exists

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

Exists checks if the PlayerCardsDeck row exists.

func (*PlayerCardsDeck) Insert

func (o *PlayerCardsDeck) 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 (*PlayerCardsDeck) InsertG

func (o *PlayerCardsDeck) InsertG(ctx context.Context, columns boil.Columns) error

InsertG a single record. See Insert for whitelist behavior description.

func (*PlayerCardsDeck) Player

func (o *PlayerCardsDeck) Player(mods ...qm.QueryMod) playerQuery

Player pointed to by the foreign key.

func (*PlayerCardsDeck) Reload

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

func (*PlayerCardsDeck) ReloadG

func (o *PlayerCardsDeck) ReloadG(ctx context.Context) error

ReloadG refetches the object from the database using the primary keys.

func (*PlayerCardsDeck) SetCard

func (o *PlayerCardsDeck) SetCard(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Card) error

SetCard of the playerCardsDeck to the related item. Sets o.R.Card to related. Adds o to related.R.PlayerCardsDecks.

func (*PlayerCardsDeck) SetCardG

func (o *PlayerCardsDeck) SetCardG(ctx context.Context, insert bool, related *Card) error

SetCardG of the playerCardsDeck to the related item. Sets o.R.Card to related. Adds o to related.R.PlayerCardsDecks. Uses the global database handle.

func (*PlayerCardsDeck) SetPlayer

func (o *PlayerCardsDeck) SetPlayer(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Player) error

SetPlayer of the playerCardsDeck to the related item. Sets o.R.Player to related. Adds o to related.R.PlayerCardsDecks.

func (*PlayerCardsDeck) SetPlayerG

func (o *PlayerCardsDeck) SetPlayerG(ctx context.Context, insert bool, related *Player) error

SetPlayerG of the playerCardsDeck to the related item. Sets o.R.Player to related. Adds o to related.R.PlayerCardsDecks. Uses the global database handle.

func (*PlayerCardsDeck) Update

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

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

func (o *PlayerCardsDeck) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)

UpdateG a single PlayerCardsDeck record using the global executor. See Update for more documentation.

func (*PlayerCardsDeck) Upsert

func (o *PlayerCardsDeck) 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 (*PlayerCardsDeck) UpsertG

func (o *PlayerCardsDeck) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

UpsertG attempts an insert, and does an update or ignore on conflict.

type PlayerCardsDeckHook

type PlayerCardsDeckHook func(context.Context, boil.ContextExecutor, *PlayerCardsDeck) error

PlayerCardsDeckHook is the signature for custom PlayerCardsDeck hook methods

type PlayerCardsDeckSlice

type PlayerCardsDeckSlice []*PlayerCardsDeck

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

func (PlayerCardsDeckSlice) DeleteAll

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

func (PlayerCardsDeckSlice) DeleteAllG

func (o PlayerCardsDeckSlice) DeleteAllG(ctx context.Context) (int64, error)

DeleteAllG deletes all rows in the slice.

func (*PlayerCardsDeckSlice) ReloadAll

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

func (*PlayerCardsDeckSlice) ReloadAllG

func (o *PlayerCardsDeckSlice) ReloadAllG(ctx context.Context) error

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

func (PlayerCardsDeckSlice) UpdateAll

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

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

func (PlayerCardsDeckSlice) UpdateAllG

func (o PlayerCardsDeckSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)

UpdateAllG updates all rows with the specified column values.

type PlayerHook

type PlayerHook func(context.Context, boil.ContextExecutor, *Player) error

PlayerHook is the signature for custom Player hook methods

type PlayerLimit

type PlayerLimit struct {
	PlayerID        string    `boil:"player_id" json:"player_id" toml:"player_id" yaml:"player_id"`
	DungeonsLeft    int       `boil:"dungeons_left" json:"dungeons_left" toml:"dungeons_left" yaml:"dungeons_left"`
	DungeonsResetAt null.Time `boil:"dungeons_reset_at" json:"dungeons_reset_at,omitempty" toml:"dungeons_reset_at" yaml:"dungeons_reset_at,omitempty"`
	CreatedAt       time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt       time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
	DeletedAt       null.Time `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"`

	R *playerLimitR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L playerLimitL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

PlayerLimit is an object representing the database table.

func FindPlayerLimit

func FindPlayerLimit(ctx context.Context, exec boil.ContextExecutor, playerID string, selectCols ...string) (*PlayerLimit, error)

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

func FindPlayerLimitG

func FindPlayerLimitG(ctx context.Context, playerID string, selectCols ...string) (*PlayerLimit, error)

FindPlayerLimitG retrieves a single record by ID.

func (*PlayerLimit) Delete

func (o *PlayerLimit) Delete(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

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

func (*PlayerLimit) DeleteG

func (o *PlayerLimit) DeleteG(ctx context.Context, hardDelete bool) (int64, error)

DeleteG deletes a single PlayerLimit record. DeleteG will match against the primary key column to find the record to delete.

func (*PlayerLimit) Exists

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

Exists checks if the PlayerLimit row exists.

func (*PlayerLimit) Insert

func (o *PlayerLimit) 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 (*PlayerLimit) InsertG

func (o *PlayerLimit) InsertG(ctx context.Context, columns boil.Columns) error

InsertG a single record. See Insert for whitelist behavior description.

func (*PlayerLimit) Player

func (o *PlayerLimit) Player(mods ...qm.QueryMod) playerQuery

Player pointed to by the foreign key.

func (*PlayerLimit) Reload

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

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

func (*PlayerLimit) ReloadG

func (o *PlayerLimit) ReloadG(ctx context.Context) error

ReloadG refetches the object from the database using the primary keys.

func (*PlayerLimit) SetPlayer

func (o *PlayerLimit) SetPlayer(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Player) error

SetPlayer of the playerLimit to the related item. Sets o.R.Player to related. Adds o to related.R.PlayerLimit.

func (*PlayerLimit) SetPlayerG

func (o *PlayerLimit) SetPlayerG(ctx context.Context, insert bool, related *Player) error

SetPlayerG of the playerLimit to the related item. Sets o.R.Player to related. Adds o to related.R.PlayerLimit. Uses the global database handle.

func (*PlayerLimit) Update

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

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

func (o *PlayerLimit) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)

UpdateG a single PlayerLimit record using the global executor. See Update for more documentation.

func (*PlayerLimit) Upsert

func (o *PlayerLimit) 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 (*PlayerLimit) UpsertG

func (o *PlayerLimit) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

UpsertG attempts an insert, and does an update or ignore on conflict.

type PlayerLimitHook

type PlayerLimitHook func(context.Context, boil.ContextExecutor, *PlayerLimit) error

PlayerLimitHook is the signature for custom PlayerLimit hook methods

type PlayerLimitSlice

type PlayerLimitSlice []*PlayerLimit

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

func (PlayerLimitSlice) DeleteAll

func (o PlayerLimitSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

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

func (PlayerLimitSlice) DeleteAllG

func (o PlayerLimitSlice) DeleteAllG(ctx context.Context, hardDelete bool) (int64, error)

DeleteAllG deletes all rows in the slice.

func (*PlayerLimitSlice) ReloadAll

func (o *PlayerLimitSlice) 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 (*PlayerLimitSlice) ReloadAllG

func (o *PlayerLimitSlice) ReloadAllG(ctx context.Context) error

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

func (PlayerLimitSlice) UpdateAll

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

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

func (PlayerLimitSlice) UpdateAllG

func (o PlayerLimitSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)

UpdateAllG updates all rows with the specified column values.

type PlayerSlice

type PlayerSlice []*Player

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

func (PlayerSlice) DeleteAll

func (o PlayerSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

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

func (PlayerSlice) DeleteAllG

func (o PlayerSlice) DeleteAllG(ctx context.Context, hardDelete bool) (int64, error)

DeleteAllG deletes all rows in the slice.

func (*PlayerSlice) ReloadAll

func (o *PlayerSlice) 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 (*PlayerSlice) ReloadAllG

func (o *PlayerSlice) ReloadAllG(ctx context.Context) error

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

func (PlayerSlice) UpdateAll

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

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

func (PlayerSlice) UpdateAllG

func (o PlayerSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)

UpdateAllG updates all rows with the specified column values.

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
}

Jump to

Keyboard shortcuts

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