models

package
v0.0.0-...-36a3ffb Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2019 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CompetitionColumns = struct {
	ID               string
	Name             string
	Type             string
	ExternalEntityID string
	CreatedAt        string
	UpdatedAt        string
}{
	ID:               "id",
	Name:             "name",
	Type:             "type",
	ExternalEntityID: "external_entity_id",
	CreatedAt:        "created_at",
	UpdatedAt:        "updated_at",
}
View Source
var CompetitionRels = struct {
}{}

CompetitionRels is where relationship names are stored.

View Source
var CompetitionWhere = struct {
	ID               whereHelperint
	Name             whereHelperstring
	Type             whereHelperstring
	ExternalEntityID whereHelpernull_String
	CreatedAt        whereHelpernull_Time
	UpdatedAt        whereHelpernull_Time
}{
	ID:               whereHelperint{/* contains filtered or unexported fields */},
	Name:             whereHelperstring{/* contains filtered or unexported fields */},
	Type:             whereHelperstring{/* contains filtered or unexported fields */},
	ExternalEntityID: whereHelpernull_String{/* contains filtered or unexported fields */},
	CreatedAt:        whereHelpernull_Time{/* contains filtered or unexported fields */},
	UpdatedAt:        whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var CompetitionsStageColumns = struct {
	ID            string
	CompetitionID string
	StageID       string
	CreatedAt     string
	UpdatedAt     string
}{
	ID:            "id",
	CompetitionID: "competition_id",
	StageID:       "stage_id",
	CreatedAt:     "created_at",
	UpdatedAt:     "updated_at",
}
View Source
var CompetitionsStageRels = struct {
}{}

CompetitionsStageRels is where relationship names are stored.

View Source
var CompetitionsStageWhere = struct {
	ID            whereHelperint
	CompetitionID whereHelperint
	StageID       whereHelperint
	CreatedAt     whereHelpernull_Time
	UpdatedAt     whereHelpernull_Time
}{
	ID:            whereHelperint{/* contains filtered or unexported fields */},
	CompetitionID: whereHelperint{/* contains filtered or unexported fields */},
	StageID:       whereHelperint{/* contains filtered or unexported fields */},
	CreatedAt:     whereHelpernull_Time{/* contains filtered or unexported fields */},
	UpdatedAt:     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 ExternalEntityColumns = struct {
	ID               string
	EntityType       string
	VendorID         string
	VendorExternalID string
	CreatedAt        string
	UpdatedAt        string
}{
	ID:               "id",
	EntityType:       "entity_type",
	VendorID:         "vendor_id",
	VendorExternalID: "vendor_external_id",
	CreatedAt:        "created_at",
	UpdatedAt:        "updated_at",
}
View Source
var ExternalEntityRels = struct {
}{}

ExternalEntityRels is where relationship names are stored.

View Source
var ExternalEntityWhere = struct {
	ID               whereHelperint
	EntityType       whereHelperstring
	VendorID         whereHelperint
	VendorExternalID whereHelperstring
	CreatedAt        whereHelpernull_Time
	UpdatedAt        whereHelpernull_Time
}{
	ID:               whereHelperint{/* contains filtered or unexported fields */},
	EntityType:       whereHelperstring{/* contains filtered or unexported fields */},
	VendorID:         whereHelperint{/* contains filtered or unexported fields */},
	VendorExternalID: whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt:        whereHelpernull_Time{/* contains filtered or unexported fields */},
	UpdatedAt:        whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var FixtureColumns = struct {
	ID                 string
	CompetitionID      string
	CompetitionStageID string
	TeamAID            string
	TeamBID            string
	TeamAScore         string
	TeamBScore         string
	StartingAt         string
	EndingAt           string
	Ended              string
	ExternalEntityID   string
	CreatedAt          string
	UpdatedAt          string
}{
	ID:                 "id",
	CompetitionID:      "competition_id",
	CompetitionStageID: "competition_stage_id",
	TeamAID:            "team_a_id",
	TeamBID:            "team_b_id",
	TeamAScore:         "team_a_score",
	TeamBScore:         "team_b_score",
	StartingAt:         "starting_at",
	EndingAt:           "ending_at",
	Ended:              "ended",
	ExternalEntityID:   "external_entity_id",
	CreatedAt:          "created_at",
	UpdatedAt:          "updated_at",
}
View Source
var FixturePredictionColumns = struct {
	ID                 string
	GroupCompetitionID string
	FixtureID          string
	UserID             string
	Direction          string
	HomeScore          string
	AwayScore          string
	CreatedAt          string
	UpdatedAt          string
}{
	ID:                 "id",
	GroupCompetitionID: "group_competition_id",
	FixtureID:          "fixture_id",
	UserID:             "user_id",
	Direction:          "direction",
	HomeScore:          "home_score",
	AwayScore:          "away_score",
	CreatedAt:          "created_at",
	UpdatedAt:          "updated_at",
}
View Source
var FixturePredictionRels = struct {
}{}

FixturePredictionRels is where relationship names are stored.

View Source
var FixturePredictionWhere = struct {
	ID                 whereHelperint
	GroupCompetitionID whereHelperint
	FixtureID          whereHelperint
	UserID             whereHelperint
	Direction          whereHelpernull_Int
	HomeScore          whereHelpernull_Int
	AwayScore          whereHelpernull_Int
	CreatedAt          whereHelpernull_Time
	UpdatedAt          whereHelpernull_Time
}{
	ID:                 whereHelperint{/* contains filtered or unexported fields */},
	GroupCompetitionID: whereHelperint{/* contains filtered or unexported fields */},
	FixtureID:          whereHelperint{/* contains filtered or unexported fields */},
	UserID:             whereHelperint{/* contains filtered or unexported fields */},
	Direction:          whereHelpernull_Int{/* contains filtered or unexported fields */},
	HomeScore:          whereHelpernull_Int{/* contains filtered or unexported fields */},
	AwayScore:          whereHelpernull_Int{/* contains filtered or unexported fields */},
	CreatedAt:          whereHelpernull_Time{/* contains filtered or unexported fields */},
	UpdatedAt:          whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var FixtureRels = struct {
}{}

FixtureRels is where relationship names are stored.

View Source
var FixtureWhere = struct {
	ID                 whereHelperint
	CompetitionID      whereHelperint
	CompetitionStageID whereHelperint
	TeamAID            whereHelperint
	TeamBID            whereHelperint
	TeamAScore         whereHelperint
	TeamBScore         whereHelperint
	StartingAt         whereHelpernull_Time
	EndingAt           whereHelpernull_Time
	Ended              whereHelpernull_Bool
	ExternalEntityID   whereHelpernull_Int
	CreatedAt          whereHelpernull_Time
	UpdatedAt          whereHelpernull_Time
}{
	ID:                 whereHelperint{/* contains filtered or unexported fields */},
	CompetitionID:      whereHelperint{/* contains filtered or unexported fields */},
	CompetitionStageID: whereHelperint{/* contains filtered or unexported fields */},
	TeamAID:            whereHelperint{/* contains filtered or unexported fields */},
	TeamBID:            whereHelperint{/* contains filtered or unexported fields */},
	TeamAScore:         whereHelperint{/* contains filtered or unexported fields */},
	TeamBScore:         whereHelperint{/* contains filtered or unexported fields */},
	StartingAt:         whereHelpernull_Time{/* contains filtered or unexported fields */},
	EndingAt:           whereHelpernull_Time{/* contains filtered or unexported fields */},
	Ended:              whereHelpernull_Bool{/* contains filtered or unexported fields */},
	ExternalEntityID:   whereHelpernull_Int{/* contains filtered or unexported fields */},
	CreatedAt:          whereHelpernull_Time{/* contains filtered or unexported fields */},
	UpdatedAt:          whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var GroupColumns = struct {
	ID        string
	Name      string
	Password  string
	IsPublic  string
	CreatedAt string
	UpdatedAt string
}{
	ID:        "id",
	Name:      "name",
	Password:  "password",
	IsPublic:  "is_public",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
}
View Source
var GroupCompetitionColumns = struct {
	ID            string
	GroupID       string
	CompetitionID string
	CreatedAt     string
	UpdatedAt     string
}{
	ID:            "id",
	GroupID:       "group_id",
	CompetitionID: "competition_id",
	CreatedAt:     "created_at",
	UpdatedAt:     "updated_at",
}
View Source
var GroupCompetitionRels = struct {
}{}

GroupCompetitionRels is where relationship names are stored.

View Source
var GroupCompetitionWhere = struct {
	ID            whereHelperint
	GroupID       whereHelperint
	CompetitionID whereHelperint
	CreatedAt     whereHelpernull_Time
	UpdatedAt     whereHelpernull_Time
}{
	ID:            whereHelperint{/* contains filtered or unexported fields */},
	GroupID:       whereHelperint{/* contains filtered or unexported fields */},
	CompetitionID: whereHelperint{/* contains filtered or unexported fields */},
	CreatedAt:     whereHelpernull_Time{/* contains filtered or unexported fields */},
	UpdatedAt:     whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var GroupRels = struct {
}{}

GroupRels is where relationship names are stored.

View Source
var GroupWhere = struct {
	ID        whereHelperint
	Name      whereHelperstring
	Password  whereHelpernull_String
	IsPublic  whereHelpernull_Bool
	CreatedAt whereHelpernull_Time
	UpdatedAt whereHelpernull_Time
}{
	ID:        whereHelperint{/* contains filtered or unexported fields */},
	Name:      whereHelperstring{/* contains filtered or unexported fields */},
	Password:  whereHelpernull_String{/* contains filtered or unexported fields */},
	IsPublic:  whereHelpernull_Bool{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var RoleTypeColumns = struct {
	ID        string
	Name      string
	CreatedAt string
	UpdatedAt string
}{
	ID:        "id",
	Name:      "name",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
}
View Source
var RoleTypeRels = struct {
}{}

RoleTypeRels is where relationship names are stored.

View Source
var RoleTypeWhere = struct {
	ID        whereHelperint
	Name      whereHelperstring
	CreatedAt whereHelpernull_Time
	UpdatedAt whereHelpernull_Time
}{
	ID:        whereHelperint{/* contains filtered or unexported fields */},
	Name:      whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var StageColumns = struct {
	ID              string
	Name            string
	CompetitionType string
	CreatedAt       string
	UpdatedAt       string
}{
	ID:              "id",
	Name:            "name",
	CompetitionType: "competition_type",
	CreatedAt:       "created_at",
	UpdatedAt:       "updated_at",
}
View Source
var StagePredictionColumns = struct {
	ID                 string
	GroupCompetitionID string
	CompetitionStageID string
	UserID             string
	TeamID             string
	Position           string
	CreatedAt          string
	UpdatedAt          string
}{
	ID:                 "id",
	GroupCompetitionID: "group_competition_id",
	CompetitionStageID: "competition_stage_id",
	UserID:             "user_id",
	TeamID:             "team_id",
	Position:           "position",
	CreatedAt:          "created_at",
	UpdatedAt:          "updated_at",
}
View Source
var StagePredictionRels = struct {
}{}

StagePredictionRels is where relationship names are stored.

View Source
var StagePredictionWhere = struct {
	ID                 whereHelperint
	GroupCompetitionID whereHelperint
	CompetitionStageID whereHelperint
	UserID             whereHelperint
	TeamID             whereHelperint
	Position           whereHelpernull_Int
	CreatedAt          whereHelpernull_Time
	UpdatedAt          whereHelpernull_Time
}{
	ID:                 whereHelperint{/* contains filtered or unexported fields */},
	GroupCompetitionID: whereHelperint{/* contains filtered or unexported fields */},
	CompetitionStageID: whereHelperint{/* contains filtered or unexported fields */},
	UserID:             whereHelperint{/* contains filtered or unexported fields */},
	TeamID:             whereHelperint{/* contains filtered or unexported fields */},
	Position:           whereHelpernull_Int{/* contains filtered or unexported fields */},
	CreatedAt:          whereHelpernull_Time{/* contains filtered or unexported fields */},
	UpdatedAt:          whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var StageRels = struct {
}{}

StageRels is where relationship names are stored.

View Source
var StageWhere = struct {
	ID              whereHelperint
	Name            whereHelperstring
	CompetitionType whereHelperstring
	CreatedAt       whereHelpernull_Time
	UpdatedAt       whereHelpernull_Time
}{
	ID:              whereHelperint{/* contains filtered or unexported fields */},
	Name:            whereHelperstring{/* contains filtered or unexported fields */},
	CompetitionType: whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt:       whereHelpernull_Time{/* contains filtered or unexported fields */},
	UpdatedAt:       whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var TableNames = struct {
	Competitions            string
	CompetitionsStages      string
	ExternalEntities        string
	FixturePredictions      string
	Fixtures                string
	GroupCompetitions       string
	Groups                  string
	RoleTypes               string
	StagePredictions        string
	Stages                  string
	Teams                   string
	TeamsCompetitions       string
	TeamsCompetitionsStages string
	Users                   string
	UsersInGroups           string
	Vendors                 string
}{
	Competitions:            "competitions",
	CompetitionsStages:      "competitions_stages",
	ExternalEntities:        "external_entities",
	FixturePredictions:      "fixture_predictions",
	Fixtures:                "fixtures",
	GroupCompetitions:       "group_competitions",
	Groups:                  "groups",
	RoleTypes:               "role_types",
	StagePredictions:        "stage_predictions",
	Stages:                  "stages",
	Teams:                   "teams",
	TeamsCompetitions:       "teams_competitions",
	TeamsCompetitionsStages: "teams_competitions_stages",
	Users:                   "users",
	UsersInGroups:           "users_in_groups",
	Vendors:                 "vendors",
}
View Source
var TeamColumns = struct {
	ID               string
	Name             string
	ExternalEntityID string
	ImageURL         string
	CreatedAt        string
	UpdatedAt        string
}{
	ID:               "id",
	Name:             "name",
	ExternalEntityID: "external_entity_id",
	ImageURL:         "image_url",
	CreatedAt:        "created_at",
	UpdatedAt:        "updated_at",
}
View Source
var TeamRels = struct {
}{}

TeamRels is where relationship names are stored.

View Source
var TeamWhere = struct {
	ID               whereHelperint
	Name             whereHelperstring
	ExternalEntityID whereHelpernull_String
	ImageURL         whereHelpernull_String
	CreatedAt        whereHelpernull_Time
	UpdatedAt        whereHelpernull_Time
}{
	ID:               whereHelperint{/* contains filtered or unexported fields */},
	Name:             whereHelperstring{/* contains filtered or unexported fields */},
	ExternalEntityID: whereHelpernull_String{/* contains filtered or unexported fields */},
	ImageURL:         whereHelpernull_String{/* contains filtered or unexported fields */},
	CreatedAt:        whereHelpernull_Time{/* contains filtered or unexported fields */},
	UpdatedAt:        whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var TeamsCompetitionColumns = struct {
	ID               string
	TeamID           string
	CompetitionID    string
	ExternalEntityID string
	CreatedAt        string
	UpdatedAt        string
}{
	ID:               "id",
	TeamID:           "team_id",
	CompetitionID:    "competition_id",
	ExternalEntityID: "external_entity_id",
	CreatedAt:        "created_at",
	UpdatedAt:        "updated_at",
}
View Source
var TeamsCompetitionRels = struct {
}{}

TeamsCompetitionRels is where relationship names are stored.

View Source
var TeamsCompetitionWhere = struct {
	ID               whereHelperint
	TeamID           whereHelperint
	CompetitionID    whereHelperint
	ExternalEntityID whereHelpernull_Int
	CreatedAt        whereHelpernull_Time
	UpdatedAt        whereHelpernull_Time
}{
	ID:               whereHelperint{/* contains filtered or unexported fields */},
	TeamID:           whereHelperint{/* contains filtered or unexported fields */},
	CompetitionID:    whereHelperint{/* contains filtered or unexported fields */},
	ExternalEntityID: whereHelpernull_Int{/* contains filtered or unexported fields */},
	CreatedAt:        whereHelpernull_Time{/* contains filtered or unexported fields */},
	UpdatedAt:        whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var TeamsCompetitionsStageColumns = struct {
	ID                 string
	TeamCompetitionID  string
	CompetitionStageID string
	Position           string
	Points             string
	GoalsFor           string
	GoalsAgainst       string
	GamesPlayed        string
	CreatedAt          string
	UpdatedAt          string
}{
	ID:                 "id",
	TeamCompetitionID:  "team_competition_id",
	CompetitionStageID: "competition_stage_id",
	Position:           "position",
	Points:             "points",
	GoalsFor:           "goals_for",
	GoalsAgainst:       "goals_against",
	GamesPlayed:        "games_played",
	CreatedAt:          "created_at",
	UpdatedAt:          "updated_at",
}
View Source
var TeamsCompetitionsStageRels = struct {
}{}

TeamsCompetitionsStageRels is where relationship names are stored.

View Source
var TeamsCompetitionsStageWhere = struct {
	ID                 whereHelperint
	TeamCompetitionID  whereHelperint
	CompetitionStageID whereHelperint
	Position           whereHelperint
	Points             whereHelperint
	GoalsFor           whereHelperint
	GoalsAgainst       whereHelperint
	GamesPlayed        whereHelperint
	CreatedAt          whereHelpernull_Time
	UpdatedAt          whereHelpernull_Time
}{
	ID:                 whereHelperint{/* contains filtered or unexported fields */},
	TeamCompetitionID:  whereHelperint{/* contains filtered or unexported fields */},
	CompetitionStageID: whereHelperint{/* contains filtered or unexported fields */},
	Position:           whereHelperint{/* contains filtered or unexported fields */},
	Points:             whereHelperint{/* contains filtered or unexported fields */},
	GoalsFor:           whereHelperint{/* contains filtered or unexported fields */},
	GoalsAgainst:       whereHelperint{/* contains filtered or unexported fields */},
	GamesPlayed:        whereHelperint{/* contains filtered or unexported fields */},
	CreatedAt:          whereHelpernull_Time{/* contains filtered or unexported fields */},
	UpdatedAt:          whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var UserColumns = struct {
	ID          string
	Name        string
	DisplayName string
	CreatedAt   string
	UpdatedAt   string
}{
	ID:          "id",
	Name:        "name",
	DisplayName: "display_name",
	CreatedAt:   "created_at",
	UpdatedAt:   "updated_at",
}
View Source
var UserRels = struct {
}{}

UserRels is where relationship names are stored.

View Source
var UserWhere = struct {
	ID          whereHelperint
	Name        whereHelperstring
	DisplayName whereHelperstring
	CreatedAt   whereHelpernull_Time
	UpdatedAt   whereHelpernull_Time
}{
	ID:          whereHelperint{/* contains filtered or unexported fields */},
	Name:        whereHelperstring{/* contains filtered or unexported fields */},
	DisplayName: whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt:   whereHelpernull_Time{/* contains filtered or unexported fields */},
	UpdatedAt:   whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var UsersInGroupColumns = struct {
	ID        string
	UserID    string
	GroupID   string
	RoleID    string
	CreatedAt string
	UpdatedAt string
}{
	ID:        "id",
	UserID:    "user_id",
	GroupID:   "group_id",
	RoleID:    "role_id",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
}
View Source
var UsersInGroupRels = struct {
}{}

UsersInGroupRels is where relationship names are stored.

View Source
var UsersInGroupWhere = struct {
	ID        whereHelperint
	UserID    whereHelperint
	GroupID   whereHelperint
	RoleID    whereHelpernull_Int
	CreatedAt whereHelpernull_Time
	UpdatedAt whereHelpernull_Time
}{
	ID:        whereHelperint{/* contains filtered or unexported fields */},
	UserID:    whereHelperint{/* contains filtered or unexported fields */},
	GroupID:   whereHelperint{/* contains filtered or unexported fields */},
	RoleID:    whereHelpernull_Int{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var VendorColumns = struct {
	ID        string
	Type      string
	Name      string
	Token     string
	CreatedAt string
	UpdatedAt string
}{
	ID:        "id",
	Type:      "type",
	Name:      "name",
	Token:     "token",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
}
View Source
var VendorRels = struct {
}{}

VendorRels is where relationship names are stored.

View Source
var VendorWhere = struct {
	ID        whereHelperint
	Type      whereHelperstring
	Name      whereHelperstring
	Token     whereHelpernull_String
	CreatedAt whereHelpernull_Time
	UpdatedAt whereHelpernull_Time
}{
	ID:        whereHelperint{/* contains filtered or unexported fields */},
	Type:      whereHelperstring{/* contains filtered or unexported fields */},
	Name:      whereHelperstring{/* contains filtered or unexported fields */},
	Token:     whereHelpernull_String{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
}

Functions

func AddCompetitionHook

func AddCompetitionHook(hookPoint boil.HookPoint, competitionHook CompetitionHook)

AddCompetitionHook registers your hook function for all future operations.

func AddCompetitionsStageHook

func AddCompetitionsStageHook(hookPoint boil.HookPoint, competitionsStageHook CompetitionsStageHook)

AddCompetitionsStageHook registers your hook function for all future operations.

func AddExternalEntityHook

func AddExternalEntityHook(hookPoint boil.HookPoint, externalEntityHook ExternalEntityHook)

AddExternalEntityHook registers your hook function for all future operations.

func AddFixtureHook

func AddFixtureHook(hookPoint boil.HookPoint, fixtureHook FixtureHook)

AddFixtureHook registers your hook function for all future operations.

func AddFixturePredictionHook

func AddFixturePredictionHook(hookPoint boil.HookPoint, fixturePredictionHook FixturePredictionHook)

AddFixturePredictionHook registers your hook function for all future operations.

func AddGroupCompetitionHook

func AddGroupCompetitionHook(hookPoint boil.HookPoint, groupCompetitionHook GroupCompetitionHook)

AddGroupCompetitionHook registers your hook function for all future operations.

func AddGroupHook

func AddGroupHook(hookPoint boil.HookPoint, groupHook GroupHook)

AddGroupHook registers your hook function for all future operations.

func AddRoleTypeHook

func AddRoleTypeHook(hookPoint boil.HookPoint, roleTypeHook RoleTypeHook)

AddRoleTypeHook registers your hook function for all future operations.

func AddStageHook

func AddStageHook(hookPoint boil.HookPoint, stageHook StageHook)

AddStageHook registers your hook function for all future operations.

func AddStagePredictionHook

func AddStagePredictionHook(hookPoint boil.HookPoint, stagePredictionHook StagePredictionHook)

AddStagePredictionHook registers your hook function for all future operations.

func AddTeamHook

func AddTeamHook(hookPoint boil.HookPoint, teamHook TeamHook)

AddTeamHook registers your hook function for all future operations.

func AddTeamsCompetitionHook

func AddTeamsCompetitionHook(hookPoint boil.HookPoint, teamsCompetitionHook TeamsCompetitionHook)

AddTeamsCompetitionHook registers your hook function for all future operations.

func AddTeamsCompetitionsStageHook

func AddTeamsCompetitionsStageHook(hookPoint boil.HookPoint, teamsCompetitionsStageHook TeamsCompetitionsStageHook)

AddTeamsCompetitionsStageHook registers your hook function for all future operations.

func AddUserHook

func AddUserHook(hookPoint boil.HookPoint, userHook UserHook)

AddUserHook registers your hook function for all future operations.

func AddUsersInGroupHook

func AddUsersInGroupHook(hookPoint boil.HookPoint, usersInGroupHook UsersInGroupHook)

AddUsersInGroupHook registers your hook function for all future operations.

func AddVendorHook

func AddVendorHook(hookPoint boil.HookPoint, vendorHook VendorHook)

AddVendorHook registers your hook function for all future operations.

func CompetitionExists

func CompetitionExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)

CompetitionExists checks if the Competition row exists.

func Competitions

func Competitions(mods ...qm.QueryMod) competitionQuery

Competitions retrieves all the records using an executor.

func CompetitionsStageExists

func CompetitionsStageExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)

CompetitionsStageExists checks if the CompetitionsStage row exists.

func CompetitionsStages

func CompetitionsStages(mods ...qm.QueryMod) competitionsStageQuery

CompetitionsStages retrieves all the records using an executor.

func ExternalEntities

func ExternalEntities(mods ...qm.QueryMod) externalEntityQuery

ExternalEntities retrieves all the records using an executor.

func ExternalEntityExists

func ExternalEntityExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)

ExternalEntityExists checks if the ExternalEntity row exists.

func FixtureExists

func FixtureExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)

FixtureExists checks if the Fixture row exists.

func FixturePredictionExists

func FixturePredictionExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)

FixturePredictionExists checks if the FixturePrediction row exists.

func FixturePredictions

func FixturePredictions(mods ...qm.QueryMod) fixturePredictionQuery

FixturePredictions retrieves all the records using an executor.

func Fixtures

func Fixtures(mods ...qm.QueryMod) fixtureQuery

Fixtures retrieves all the records using an executor.

func GroupCompetitionExists

func GroupCompetitionExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)

GroupCompetitionExists checks if the GroupCompetition row exists.

func GroupCompetitions

func GroupCompetitions(mods ...qm.QueryMod) groupCompetitionQuery

GroupCompetitions retrieves all the records using an executor.

func GroupExists

func GroupExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)

GroupExists checks if the Group row exists.

func Groups

func Groups(mods ...qm.QueryMod) groupQuery

Groups 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 RoleTypeExists

func RoleTypeExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)

RoleTypeExists checks if the RoleType row exists.

func RoleTypes

func RoleTypes(mods ...qm.QueryMod) roleTypeQuery

RoleTypes retrieves all the records using an executor.

func StageExists

func StageExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)

StageExists checks if the Stage row exists.

func StagePredictionExists

func StagePredictionExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)

StagePredictionExists checks if the StagePrediction row exists.

func StagePredictions

func StagePredictions(mods ...qm.QueryMod) stagePredictionQuery

StagePredictions retrieves all the records using an executor.

func Stages

func Stages(mods ...qm.QueryMod) stageQuery

Stages retrieves all the records using an executor.

func TeamExists

func TeamExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)

TeamExists checks if the Team row exists.

func Teams

func Teams(mods ...qm.QueryMod) teamQuery

Teams retrieves all the records using an executor.

func TeamsCompetitionExists

func TeamsCompetitionExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)

TeamsCompetitionExists checks if the TeamsCompetition row exists.

func TeamsCompetitions

func TeamsCompetitions(mods ...qm.QueryMod) teamsCompetitionQuery

TeamsCompetitions retrieves all the records using an executor.

func TeamsCompetitionsStageExists

func TeamsCompetitionsStageExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)

TeamsCompetitionsStageExists checks if the TeamsCompetitionsStage row exists.

func TeamsCompetitionsStages

func TeamsCompetitionsStages(mods ...qm.QueryMod) teamsCompetitionsStageQuery

TeamsCompetitionsStages retrieves all the records using an executor.

func UserExists

func UserExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)

UserExists checks if the User row exists.

func Users

func Users(mods ...qm.QueryMod) userQuery

Users retrieves all the records using an executor.

func UsersInGroupExists

func UsersInGroupExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)

UsersInGroupExists checks if the UsersInGroup row exists.

func UsersInGroups

func UsersInGroups(mods ...qm.QueryMod) usersInGroupQuery

UsersInGroups retrieves all the records using an executor.

func VendorExists

func VendorExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)

VendorExists checks if the Vendor row exists.

func Vendors

func Vendors(mods ...qm.QueryMod) vendorQuery

Vendors retrieves all the records using an executor.

Types

type Competition

type Competition struct {
	ID               int         `boil:"id" json:"id" toml:"id" yaml:"id"`
	Name             string      `boil:"name" json:"name" toml:"name" yaml:"name"`
	Type             string      `boil:"type" json:"type" toml:"type" yaml:"type"`
	ExternalEntityID null.String `boil:"external_entity_id" json:"external_entity_id,omitempty" toml:"external_entity_id" yaml:"external_entity_id,omitempty"`
	CreatedAt        null.Time   `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"`
	UpdatedAt        null.Time   `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"`

	R *competitionR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L competitionL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Competition is an object representing the database table.

func FindCompetition

func FindCompetition(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*Competition, error)

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

func (*Competition) Delete

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

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

func (*Competition) Insert

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

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

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

func (*Competition) Update

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

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

func (o *Competition) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error

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

type CompetitionHook

type CompetitionHook func(context.Context, boil.ContextExecutor, *Competition) error

CompetitionHook is the signature for custom Competition hook methods

type CompetitionSlice

type CompetitionSlice []*Competition

CompetitionSlice is an alias for a slice of pointers to Competition. This should generally be used opposed to []Competition.

func (CompetitionSlice) DeleteAll

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

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

func (*CompetitionSlice) ReloadAll

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

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

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

type CompetitionsStage

type CompetitionsStage struct {
	ID            int       `boil:"id" json:"id" toml:"id" yaml:"id"`
	CompetitionID int       `boil:"competition_id" json:"competition_id" toml:"competition_id" yaml:"competition_id"`
	StageID       int       `boil:"stage_id" json:"stage_id" toml:"stage_id" yaml:"stage_id"`
	CreatedAt     null.Time `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"`
	UpdatedAt     null.Time `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"`

	R *competitionsStageR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L competitionsStageL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

CompetitionsStage is an object representing the database table.

func FindCompetitionsStage

func FindCompetitionsStage(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*CompetitionsStage, error)

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

func (*CompetitionsStage) Delete

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

func (*CompetitionsStage) Insert

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

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

func (*CompetitionsStage) Update

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

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

func (o *CompetitionsStage) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error

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

type CompetitionsStageHook

type CompetitionsStageHook func(context.Context, boil.ContextExecutor, *CompetitionsStage) error

CompetitionsStageHook is the signature for custom CompetitionsStage hook methods

type CompetitionsStageSlice

type CompetitionsStageSlice []*CompetitionsStage

CompetitionsStageSlice is an alias for a slice of pointers to CompetitionsStage. This should generally be used opposed to []CompetitionsStage.

func (CompetitionsStageSlice) DeleteAll

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

func (*CompetitionsStageSlice) ReloadAll

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

func (CompetitionsStageSlice) UpdateAll

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

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

type ExternalEntity

type ExternalEntity struct {
	ID               int       `boil:"id" json:"id" toml:"id" yaml:"id"`
	EntityType       string    `boil:"entity_type" json:"entity_type" toml:"entity_type" yaml:"entity_type"`
	VendorID         int       `boil:"vendor_id" json:"vendor_id" toml:"vendor_id" yaml:"vendor_id"`
	VendorExternalID string    `boil:"vendor_external_id" json:"vendor_external_id" toml:"vendor_external_id" yaml:"vendor_external_id"`
	CreatedAt        null.Time `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"`
	UpdatedAt        null.Time `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"`

	R *externalEntityR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L externalEntityL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

ExternalEntity is an object representing the database table.

func FindExternalEntity

func FindExternalEntity(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*ExternalEntity, error)

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

func (*ExternalEntity) Delete

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

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

func (*ExternalEntity) Insert

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

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

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

func (*ExternalEntity) Update

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

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

func (o *ExternalEntity) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error

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

type ExternalEntityHook

type ExternalEntityHook func(context.Context, boil.ContextExecutor, *ExternalEntity) error

ExternalEntityHook is the signature for custom ExternalEntity hook methods

type ExternalEntitySlice

type ExternalEntitySlice []*ExternalEntity

ExternalEntitySlice is an alias for a slice of pointers to ExternalEntity. This should generally be used opposed to []ExternalEntity.

func (ExternalEntitySlice) DeleteAll

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

func (*ExternalEntitySlice) ReloadAll

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

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

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

type Fixture

type Fixture struct {
	ID                 int       `boil:"id" json:"id" toml:"id" yaml:"id"`
	CompetitionID      int       `boil:"competition_id" json:"competition_id" toml:"competition_id" yaml:"competition_id"`
	CompetitionStageID int       `boil:"competition_stage_id" json:"competition_stage_id" toml:"competition_stage_id" yaml:"competition_stage_id"`
	TeamAID            int       `boil:"team_a_id" json:"team_a_id" toml:"team_a_id" yaml:"team_a_id"`
	TeamBID            int       `boil:"team_b_id" json:"team_b_id" toml:"team_b_id" yaml:"team_b_id"`
	TeamAScore         int       `boil:"team_a_score" json:"team_a_score" toml:"team_a_score" yaml:"team_a_score"`
	TeamBScore         int       `boil:"team_b_score" json:"team_b_score" toml:"team_b_score" yaml:"team_b_score"`
	StartingAt         null.Time `boil:"starting_at" json:"starting_at,omitempty" toml:"starting_at" yaml:"starting_at,omitempty"`
	EndingAt           null.Time `boil:"ending_at" json:"ending_at,omitempty" toml:"ending_at" yaml:"ending_at,omitempty"`
	Ended              null.Bool `boil:"ended" json:"ended,omitempty" toml:"ended" yaml:"ended,omitempty"`
	ExternalEntityID   null.Int  `boil:"external_entity_id" json:"external_entity_id,omitempty" toml:"external_entity_id" yaml:"external_entity_id,omitempty"`
	CreatedAt          null.Time `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"`
	UpdatedAt          null.Time `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"`

	R *fixtureR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L fixtureL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Fixture is an object representing the database table.

func FindFixture

func FindFixture(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*Fixture, error)

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

func (*Fixture) Delete

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

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

func (*Fixture) Insert

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

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

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

func (*Fixture) Update

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

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

func (o *Fixture) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error

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

type FixtureHook

type FixtureHook func(context.Context, boil.ContextExecutor, *Fixture) error

FixtureHook is the signature for custom Fixture hook methods

type FixturePrediction

type FixturePrediction struct {
	ID                 int       `boil:"id" json:"id" toml:"id" yaml:"id"`
	GroupCompetitionID int       `boil:"group_competition_id" json:"group_competition_id" toml:"group_competition_id" yaml:"group_competition_id"`
	FixtureID          int       `boil:"fixture_id" json:"fixture_id" toml:"fixture_id" yaml:"fixture_id"`
	UserID             int       `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"`
	Direction          null.Int  `boil:"direction" json:"direction,omitempty" toml:"direction" yaml:"direction,omitempty"`
	HomeScore          null.Int  `boil:"home_score" json:"home_score,omitempty" toml:"home_score" yaml:"home_score,omitempty"`
	AwayScore          null.Int  `boil:"away_score" json:"away_score,omitempty" toml:"away_score" yaml:"away_score,omitempty"`
	CreatedAt          null.Time `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"`
	UpdatedAt          null.Time `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"`

	R *fixturePredictionR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L fixturePredictionL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

FixturePrediction is an object representing the database table.

func FindFixturePrediction

func FindFixturePrediction(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*FixturePrediction, error)

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

func (*FixturePrediction) Delete

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

func (*FixturePrediction) Insert

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

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

func (*FixturePrediction) Update

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

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

func (o *FixturePrediction) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error

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

type FixturePredictionHook

type FixturePredictionHook func(context.Context, boil.ContextExecutor, *FixturePrediction) error

FixturePredictionHook is the signature for custom FixturePrediction hook methods

type FixturePredictionSlice

type FixturePredictionSlice []*FixturePrediction

FixturePredictionSlice is an alias for a slice of pointers to FixturePrediction. This should generally be used opposed to []FixturePrediction.

func (FixturePredictionSlice) DeleteAll

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

func (*FixturePredictionSlice) ReloadAll

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

func (FixturePredictionSlice) UpdateAll

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

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

type FixtureSlice

type FixtureSlice []*Fixture

FixtureSlice is an alias for a slice of pointers to Fixture. This should generally be used opposed to []Fixture.

func (FixtureSlice) DeleteAll

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

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

func (*FixtureSlice) ReloadAll

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

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

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

type Group

type Group struct {
	ID        int         `boil:"id" json:"id" toml:"id" yaml:"id"`
	Name      string      `boil:"name" json:"name" toml:"name" yaml:"name"`
	Password  null.String `boil:"password" json:"password,omitempty" toml:"password" yaml:"password,omitempty"`
	IsPublic  null.Bool   `boil:"is_public" json:"is_public,omitempty" toml:"is_public" yaml:"is_public,omitempty"`
	CreatedAt null.Time   `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"`
	UpdatedAt null.Time   `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"`

	R *groupR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L groupL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Group is an object representing the database table.

func FindGroup

func FindGroup(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*Group, error)

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

func (*Group) Delete

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

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

func (*Group) Insert

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

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

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

func (*Group) Update

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

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

func (o *Group) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error

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

type GroupCompetition

type GroupCompetition struct {
	ID            int       `boil:"id" json:"id" toml:"id" yaml:"id"`
	GroupID       int       `boil:"group_id" json:"group_id" toml:"group_id" yaml:"group_id"`
	CompetitionID int       `boil:"competition_id" json:"competition_id" toml:"competition_id" yaml:"competition_id"`
	CreatedAt     null.Time `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"`
	UpdatedAt     null.Time `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"`

	R *groupCompetitionR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L groupCompetitionL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

GroupCompetition is an object representing the database table.

func FindGroupCompetition

func FindGroupCompetition(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*GroupCompetition, error)

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

func (*GroupCompetition) Delete

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

func (*GroupCompetition) Insert

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

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

func (*GroupCompetition) Update

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

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

func (o *GroupCompetition) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error

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

type GroupCompetitionHook

type GroupCompetitionHook func(context.Context, boil.ContextExecutor, *GroupCompetition) error

GroupCompetitionHook is the signature for custom GroupCompetition hook methods

type GroupCompetitionSlice

type GroupCompetitionSlice []*GroupCompetition

GroupCompetitionSlice is an alias for a slice of pointers to GroupCompetition. This should generally be used opposed to []GroupCompetition.

func (GroupCompetitionSlice) DeleteAll

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

func (*GroupCompetitionSlice) ReloadAll

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

func (GroupCompetitionSlice) UpdateAll

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

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

type GroupHook

type GroupHook func(context.Context, boil.ContextExecutor, *Group) error

GroupHook is the signature for custom Group hook methods

type GroupSlice

type GroupSlice []*Group

GroupSlice is an alias for a slice of pointers to Group. This should generally be used opposed to []Group.

func (GroupSlice) DeleteAll

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

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

func (*GroupSlice) ReloadAll

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

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

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

type M

type M map[string]interface{}

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

type RoleType

type RoleType struct {
	ID        int       `boil:"id" json:"id" toml:"id" yaml:"id"`
	Name      string    `boil:"name" json:"name" toml:"name" yaml:"name"`
	CreatedAt null.Time `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"`
	UpdatedAt null.Time `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"`

	R *roleTypeR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L roleTypeL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

RoleType is an object representing the database table.

func FindRoleType

func FindRoleType(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*RoleType, error)

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

func (*RoleType) Delete

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

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

func (*RoleType) Insert

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

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

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

func (*RoleType) Update

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

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

func (o *RoleType) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error

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

type RoleTypeHook

type RoleTypeHook func(context.Context, boil.ContextExecutor, *RoleType) error

RoleTypeHook is the signature for custom RoleType hook methods

type RoleTypeSlice

type RoleTypeSlice []*RoleType

RoleTypeSlice is an alias for a slice of pointers to RoleType. This should generally be used opposed to []RoleType.

func (RoleTypeSlice) DeleteAll

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

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

func (*RoleTypeSlice) ReloadAll

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

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

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

type Stage

type Stage struct {
	ID              int       `boil:"id" json:"id" toml:"id" yaml:"id"`
	Name            string    `boil:"name" json:"name" toml:"name" yaml:"name"`
	CompetitionType string    `boil:"competition_type" json:"competition_type" toml:"competition_type" yaml:"competition_type"`
	CreatedAt       null.Time `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"`
	UpdatedAt       null.Time `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"`

	R *stageR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L stageL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Stage is an object representing the database table.

func FindStage

func FindStage(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*Stage, error)

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

func (*Stage) Delete

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

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

func (*Stage) Insert

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

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

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

func (*Stage) Update

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

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

func (o *Stage) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error

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

type StageHook

type StageHook func(context.Context, boil.ContextExecutor, *Stage) error

StageHook is the signature for custom Stage hook methods

type StagePrediction

type StagePrediction struct {
	ID                 int       `boil:"id" json:"id" toml:"id" yaml:"id"`
	GroupCompetitionID int       `boil:"group_competition_id" json:"group_competition_id" toml:"group_competition_id" yaml:"group_competition_id"`
	CompetitionStageID int       `boil:"competition_stage_id" json:"competition_stage_id" toml:"competition_stage_id" yaml:"competition_stage_id"`
	UserID             int       `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"`
	TeamID             int       `boil:"team_id" json:"team_id" toml:"team_id" yaml:"team_id"`
	Position           null.Int  `boil:"position" json:"position,omitempty" toml:"position" yaml:"position,omitempty"`
	CreatedAt          null.Time `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"`
	UpdatedAt          null.Time `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"`

	R *stagePredictionR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L stagePredictionL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

StagePrediction is an object representing the database table.

func FindStagePrediction

func FindStagePrediction(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*StagePrediction, error)

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

func (*StagePrediction) Delete

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

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

func (*StagePrediction) Insert

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

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

func (*StagePrediction) Update

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

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

func (o *StagePrediction) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error

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

type StagePredictionHook

type StagePredictionHook func(context.Context, boil.ContextExecutor, *StagePrediction) error

StagePredictionHook is the signature for custom StagePrediction hook methods

type StagePredictionSlice

type StagePredictionSlice []*StagePrediction

StagePredictionSlice is an alias for a slice of pointers to StagePrediction. This should generally be used opposed to []StagePrediction.

func (StagePredictionSlice) DeleteAll

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

func (*StagePredictionSlice) ReloadAll

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

func (StagePredictionSlice) UpdateAll

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

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

type StageSlice

type StageSlice []*Stage

StageSlice is an alias for a slice of pointers to Stage. This should generally be used opposed to []Stage.

func (StageSlice) DeleteAll

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

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

func (*StageSlice) ReloadAll

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

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

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

type Team

type Team struct {
	ID               int         `boil:"id" json:"id" toml:"id" yaml:"id"`
	Name             string      `boil:"name" json:"name" toml:"name" yaml:"name"`
	ExternalEntityID null.String `boil:"external_entity_id" json:"external_entity_id,omitempty" toml:"external_entity_id" yaml:"external_entity_id,omitempty"`
	ImageURL         null.String `boil:"image_url" json:"image_url,omitempty" toml:"image_url" yaml:"image_url,omitempty"`
	CreatedAt        null.Time   `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"`
	UpdatedAt        null.Time   `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"`

	R *teamR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L teamL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Team is an object representing the database table.

func FindTeam

func FindTeam(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*Team, error)

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

func (*Team) Delete

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

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

func (*Team) Insert

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

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

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

func (*Team) Update

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

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

func (o *Team) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error

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

type TeamHook

type TeamHook func(context.Context, boil.ContextExecutor, *Team) error

TeamHook is the signature for custom Team hook methods

type TeamSlice

type TeamSlice []*Team

TeamSlice is an alias for a slice of pointers to Team. This should generally be used opposed to []Team.

func (TeamSlice) DeleteAll

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

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

func (*TeamSlice) ReloadAll

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

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

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

type TeamsCompetition

type TeamsCompetition struct {
	ID               int       `boil:"id" json:"id" toml:"id" yaml:"id"`
	TeamID           int       `boil:"team_id" json:"team_id" toml:"team_id" yaml:"team_id"`
	CompetitionID    int       `boil:"competition_id" json:"competition_id" toml:"competition_id" yaml:"competition_id"`
	ExternalEntityID null.Int  `boil:"external_entity_id" json:"external_entity_id,omitempty" toml:"external_entity_id" yaml:"external_entity_id,omitempty"`
	CreatedAt        null.Time `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"`
	UpdatedAt        null.Time `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"`

	R *teamsCompetitionR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L teamsCompetitionL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

TeamsCompetition is an object representing the database table.

func FindTeamsCompetition

func FindTeamsCompetition(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*TeamsCompetition, error)

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

func (*TeamsCompetition) Delete

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

func (*TeamsCompetition) Insert

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

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

func (*TeamsCompetition) Update

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

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

func (o *TeamsCompetition) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error

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

type TeamsCompetitionHook

type TeamsCompetitionHook func(context.Context, boil.ContextExecutor, *TeamsCompetition) error

TeamsCompetitionHook is the signature for custom TeamsCompetition hook methods

type TeamsCompetitionSlice

type TeamsCompetitionSlice []*TeamsCompetition

TeamsCompetitionSlice is an alias for a slice of pointers to TeamsCompetition. This should generally be used opposed to []TeamsCompetition.

func (TeamsCompetitionSlice) DeleteAll

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

func (*TeamsCompetitionSlice) ReloadAll

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

func (TeamsCompetitionSlice) UpdateAll

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

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

type TeamsCompetitionsStage

type TeamsCompetitionsStage struct {
	ID                 int       `boil:"id" json:"id" toml:"id" yaml:"id"`
	TeamCompetitionID  int       `boil:"team_competition_id" json:"team_competition_id" toml:"team_competition_id" yaml:"team_competition_id"`
	CompetitionStageID int       `boil:"competition_stage_id" json:"competition_stage_id" toml:"competition_stage_id" yaml:"competition_stage_id"`
	Position           int       `boil:"position" json:"position" toml:"position" yaml:"position"`
	Points             int       `boil:"points" json:"points" toml:"points" yaml:"points"`
	GoalsFor           int       `boil:"goals_for" json:"goals_for" toml:"goals_for" yaml:"goals_for"`
	GoalsAgainst       int       `boil:"goals_against" json:"goals_against" toml:"goals_against" yaml:"goals_against"`
	GamesPlayed        int       `boil:"games_played" json:"games_played" toml:"games_played" yaml:"games_played"`
	CreatedAt          null.Time `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"`
	UpdatedAt          null.Time `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"`

	R *teamsCompetitionsStageR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L teamsCompetitionsStageL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

TeamsCompetitionsStage is an object representing the database table.

func FindTeamsCompetitionsStage

func FindTeamsCompetitionsStage(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*TeamsCompetitionsStage, error)

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

func (*TeamsCompetitionsStage) Delete

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

func (*TeamsCompetitionsStage) Insert

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*TeamsCompetitionsStage) Reload

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

func (*TeamsCompetitionsStage) Update

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

func (o *TeamsCompetitionsStage) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error

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

type TeamsCompetitionsStageHook

type TeamsCompetitionsStageHook func(context.Context, boil.ContextExecutor, *TeamsCompetitionsStage) error

TeamsCompetitionsStageHook is the signature for custom TeamsCompetitionsStage hook methods

type TeamsCompetitionsStageSlice

type TeamsCompetitionsStageSlice []*TeamsCompetitionsStage

TeamsCompetitionsStageSlice is an alias for a slice of pointers to TeamsCompetitionsStage. This should generally be used opposed to []TeamsCompetitionsStage.

func (TeamsCompetitionsStageSlice) DeleteAll

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

func (*TeamsCompetitionsStageSlice) ReloadAll

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

func (TeamsCompetitionsStageSlice) UpdateAll

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

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

type User

type User struct {
	ID          int       `boil:"id" json:"id" toml:"id" yaml:"id"`
	Name        string    `boil:"name" json:"name" toml:"name" yaml:"name"`
	DisplayName string    `boil:"display_name" json:"display_name" toml:"display_name" yaml:"display_name"`
	CreatedAt   null.Time `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"`
	UpdatedAt   null.Time `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"`

	R *userR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L userL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

User is an object representing the database table.

func FindUser

func FindUser(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*User, error)

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

func (*User) Delete

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

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

func (*User) Insert

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

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

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

func (*User) Update

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

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

func (o *User) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error

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

type UserHook

type UserHook func(context.Context, boil.ContextExecutor, *User) error

UserHook is the signature for custom User hook methods

type UserSlice

type UserSlice []*User

UserSlice is an alias for a slice of pointers to User. This should generally be used opposed to []User.

func (UserSlice) DeleteAll

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

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

func (*UserSlice) ReloadAll

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

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

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

type UsersInGroup

type UsersInGroup struct {
	ID        int       `boil:"id" json:"id" toml:"id" yaml:"id"`
	UserID    int       `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"`
	GroupID   int       `boil:"group_id" json:"group_id" toml:"group_id" yaml:"group_id"`
	RoleID    null.Int  `boil:"role_id" json:"role_id,omitempty" toml:"role_id" yaml:"role_id,omitempty"`
	CreatedAt null.Time `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"`
	UpdatedAt null.Time `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"`

	R *usersInGroupR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L usersInGroupL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

UsersInGroup is an object representing the database table.

func FindUsersInGroup

func FindUsersInGroup(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*UsersInGroup, error)

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

func (*UsersInGroup) Delete

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

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

func (*UsersInGroup) Insert

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

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

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

func (*UsersInGroup) Update

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

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

func (o *UsersInGroup) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error

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

type UsersInGroupHook

type UsersInGroupHook func(context.Context, boil.ContextExecutor, *UsersInGroup) error

UsersInGroupHook is the signature for custom UsersInGroup hook methods

type UsersInGroupSlice

type UsersInGroupSlice []*UsersInGroup

UsersInGroupSlice is an alias for a slice of pointers to UsersInGroup. This should generally be used opposed to []UsersInGroup.

func (UsersInGroupSlice) DeleteAll

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

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

func (*UsersInGroupSlice) ReloadAll

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

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

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

type Vendor

type Vendor struct {
	ID        int         `boil:"id" json:"id" toml:"id" yaml:"id"`
	Type      string      `boil:"type" json:"type" toml:"type" yaml:"type"`
	Name      string      `boil:"name" json:"name" toml:"name" yaml:"name"`
	Token     null.String `boil:"token" json:"token,omitempty" toml:"token" yaml:"token,omitempty"`
	CreatedAt null.Time   `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"`
	UpdatedAt null.Time   `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"`

	R *vendorR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L vendorL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Vendor is an object representing the database table.

func FindVendor

func FindVendor(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*Vendor, error)

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

func (*Vendor) Delete

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

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

func (*Vendor) Insert

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

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

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

func (*Vendor) Update

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

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

func (o *Vendor) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error

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

type VendorHook

type VendorHook func(context.Context, boil.ContextExecutor, *Vendor) error

VendorHook is the signature for custom Vendor hook methods

type VendorSlice

type VendorSlice []*Vendor

VendorSlice is an alias for a slice of pointers to Vendor. This should generally be used opposed to []Vendor.

func (VendorSlice) DeleteAll

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

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

func (*VendorSlice) ReloadAll

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

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

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

Jump to

Keyboard shortcuts

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