models

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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 ForgottenPasswordKeyColumns = struct {
	ID     string
	UserID string
	Key    string
	Valid  string
}{
	ID:     "id",
	UserID: "user_id",
	Key:    "key",
	Valid:  "valid",
}
View Source
var ForgottenPasswordKeyRels = struct {
	User string
}{
	User: "User",
}

ForgottenPasswordKeyRels is where relationship names are stored.

View Source
var ForgottenPasswordKeyTableColumns = struct {
	ID     string
	UserID string
	Key    string
	Valid  string
}{
	ID:     "forgotten_password_keys.id",
	UserID: "forgotten_password_keys.user_id",
	Key:    "forgotten_password_keys.key",
	Valid:  "forgotten_password_keys.valid",
}
View Source
var ForgottenPasswordKeyWhere = struct {
	ID     whereHelperint
	UserID whereHelperint
	Key    whereHelperstring
	Valid  whereHelpertime_Time
}{
	ID:     whereHelperint{/* contains filtered or unexported fields */},
	UserID: whereHelperint{/* contains filtered or unexported fields */},
	Key:    whereHelperstring{/* contains filtered or unexported fields */},
	Valid:  whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var JudgeColumns = struct {
	ID     string
	State  string
	Host   string
	Port   string
	Ping   string
	Online string
}{
	ID:     "id",
	State:  "state",
	Host:   "host",
	Port:   "port",
	Ping:   "ping",
	Online: "online",
}
View Source
var JudgeRels = struct {
}{}

JudgeRels is where relationship names are stored.

View Source
var JudgeTableColumns = struct {
	ID     string
	State  string
	Host   string
	Port   string
	Ping   string
	Online string
}{
	ID:     "judges.id",
	State:  "judges.state",
	Host:   "judges.host",
	Port:   "judges.port",
	Ping:   "judges.ping",
	Online: "judges.online",
}
View Source
var JudgeWhere = struct {
	ID     whereHelperint
	State  whereHelperstring
	Host   whereHelperstring
	Port   whereHelperstring
	Ping   whereHelperint
	Online whereHelperbool
}{
	ID:     whereHelperint{/* contains filtered or unexported fields */},
	State:  whereHelperstring{/* contains filtered or unexported fields */},
	Host:   whereHelperstring{/* contains filtered or unexported fields */},
	Port:   whereHelperstring{/* contains filtered or unexported fields */},
	Ping:   whereHelperint{/* contains filtered or unexported fields */},
	Online: whereHelperbool{/* contains filtered or unexported fields */},
}
View Source
var PartialColumns = struct {
	Name string
	HTML string
}{
	Name: "name",
	HTML: "html",
}
View Source
var PartialRels = struct {
}{}

PartialRels is where relationship names are stored.

View Source
var PartialTableColumns = struct {
	Name string
	HTML string
}{
	Name: "partials.name",
	HTML: "partials.html",
}
View Source
var PartialWhere = struct {
	Name whereHelperstring
	HTML whereHelperstring
}{
	Name: whereHelperstring{/* contains filtered or unexported fields */},
	HTML: whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var ProblemCategoryColumns = struct {
	ID       string
	Name     string
	ParentID string
}{
	ID:       "id",
	Name:     "name",
	ParentID: "parent_id",
}
View Source
var ProblemCategoryRels = struct {
	Parent                  string
	ParentProblemCategories string
	CategoryProblemRels     string
}{
	Parent:                  "Parent",
	ParentProblemCategories: "ParentProblemCategories",
	CategoryProblemRels:     "CategoryProblemRels",
}

ProblemCategoryRels is where relationship names are stored.

View Source
var ProblemCategoryTableColumns = struct {
	ID       string
	Name     string
	ParentID string
}{
	ID:       "problem_categories.id",
	Name:     "problem_categories.name",
	ParentID: "problem_categories.parent_id",
}
View Source
var ProblemCategoryWhere = struct {
	ID       whereHelperint
	Name     whereHelperstring
	ParentID whereHelpernull_Int
}{
	ID:       whereHelperint{/* contains filtered or unexported fields */},
	Name:     whereHelperstring{/* contains filtered or unexported fields */},
	ParentID: whereHelpernull_Int{/* contains filtered or unexported fields */},
}
View Source
var ProblemRelColumns = struct {
	Problemset  string
	Problem     string
	ID          string
	CategoryID  string
	SolverCount string
}{
	Problemset:  "problemset",
	Problem:     "problem",
	ID:          "id",
	CategoryID:  "category_id",
	SolverCount: "solver_count",
}
View Source
var ProblemRelRels = struct {
	Category           string
	ProblemProblemTags string
	ProblemSubmissions string
}{
	Category:           "Category",
	ProblemProblemTags: "ProblemProblemTags",
	ProblemSubmissions: "ProblemSubmissions",
}

ProblemRelRels is where relationship names are stored.

View Source
var ProblemRelTableColumns = struct {
	Problemset  string
	Problem     string
	ID          string
	CategoryID  string
	SolverCount string
}{
	Problemset:  "problem_rels.problemset",
	Problem:     "problem_rels.problem",
	ID:          "problem_rels.id",
	CategoryID:  "problem_rels.category_id",
	SolverCount: "problem_rels.solver_count",
}
View Source
var ProblemRelWhere = struct {
	Problemset  whereHelperstring
	Problem     whereHelperstring
	ID          whereHelperint
	CategoryID  whereHelpernull_Int
	SolverCount whereHelperint
}{
	Problemset:  whereHelperstring{/* contains filtered or unexported fields */},
	Problem:     whereHelperstring{/* contains filtered or unexported fields */},
	ID:          whereHelperint{/* contains filtered or unexported fields */},
	CategoryID:  whereHelpernull_Int{/* contains filtered or unexported fields */},
	SolverCount: whereHelperint{/* contains filtered or unexported fields */},
}
View Source
var ProblemTagColumns = struct {
	ProblemID string
	TagID     string
	UserID    string
	Added     string
}{
	ProblemID: "problem_id",
	TagID:     "tag_id",
	UserID:    "user_id",
	Added:     "added",
}
View Source
var ProblemTagRels = struct {
	Problem string
	Tag     string
	User    string
}{
	Problem: "Problem",
	Tag:     "Tag",
	User:    "User",
}

ProblemTagRels is where relationship names are stored.

View Source
var ProblemTagTableColumns = struct {
	ProblemID string
	TagID     string
	UserID    string
	Added     string
}{
	ProblemID: "problem_tags.problem_id",
	TagID:     "problem_tags.tag_id",
	UserID:    "problem_tags.user_id",
	Added:     "problem_tags.added",
}
View Source
var ProblemTagWhere = struct {
	ProblemID whereHelperint
	TagID     whereHelperint
	UserID    whereHelperint
	Added     whereHelpertime_Time
}{
	ProblemID: whereHelperint{/* contains filtered or unexported fields */},
	TagID:     whereHelperint{/* contains filtered or unexported fields */},
	UserID:    whereHelperint{/* contains filtered or unexported fields */},
	Added:     whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var SubmissionColumns = struct {
	ID        string
	Status    string
	Ontest    string
	UserID    string
	Language  string
	Private   string
	Verdict   string
	Source    string
	Started   string
	Submitted string
	Judged    string
	Score     string
	ProblemID string
}{
	ID:        "id",
	Status:    "status",
	Ontest:    "ontest",
	UserID:    "user_id",
	Language:  "language",
	Private:   "private",
	Verdict:   "verdict",
	Source:    "source",
	Started:   "started",
	Submitted: "submitted",
	Judged:    "judged",
	Score:     "score",
	ProblemID: "problem_id",
}
View Source
var SubmissionRels = struct {
	Problem string
	User    string
}{
	Problem: "Problem",
	User:    "User",
}

SubmissionRels is where relationship names are stored.

View Source
var SubmissionTableColumns = struct {
	ID        string
	Status    string
	Ontest    string
	UserID    string
	Language  string
	Private   string
	Verdict   string
	Source    string
	Started   string
	Submitted string
	Judged    string
	Score     string
	ProblemID string
}{
	ID:        "submissions.id",
	Status:    "submissions.status",
	Ontest:    "submissions.ontest",
	UserID:    "submissions.user_id",
	Language:  "submissions.language",
	Private:   "submissions.private",
	Verdict:   "submissions.verdict",
	Source:    "submissions.source",
	Started:   "submissions.started",
	Submitted: "submissions.submitted",
	Judged:    "submissions.judged",
	Score:     "submissions.score",
	ProblemID: "submissions.problem_id",
}
View Source
var SubmissionWhere = struct {
	ID        whereHelperint
	Status    whereHelperstring
	Ontest    whereHelpernull_String
	UserID    whereHelperint
	Language  whereHelperstring
	Private   whereHelperbool
	Verdict   whereHelperint
	Source    whereHelper__byte
	Started   whereHelperbool
	Submitted whereHelpertime_Time
	Judged    whereHelpernull_Time
	Score     whereHelpernull_Float32
	ProblemID whereHelperint
}{
	ID:        whereHelperint{/* contains filtered or unexported fields */},
	Status:    whereHelperstring{/* contains filtered or unexported fields */},
	Ontest:    whereHelpernull_String{/* contains filtered or unexported fields */},
	UserID:    whereHelperint{/* contains filtered or unexported fields */},
	Language:  whereHelperstring{/* contains filtered or unexported fields */},
	Private:   whereHelperbool{/* contains filtered or unexported fields */},
	Verdict:   whereHelperint{/* contains filtered or unexported fields */},
	Source:    whereHelper__byte{/* contains filtered or unexported fields */},
	Started:   whereHelperbool{/* contains filtered or unexported fields */},
	Submitted: whereHelpertime_Time{/* contains filtered or unexported fields */},
	Judged:    whereHelpernull_Time{/* contains filtered or unexported fields */},
	Score:     whereHelpernull_Float32{/* contains filtered or unexported fields */},
	ProblemID: whereHelperint{/* contains filtered or unexported fields */},
}
View Source
var TableNames = struct {
	ForgottenPasswordKeys string
	Judges                string
	Partials              string
	ProblemCategories     string
	ProblemRels           string
	ProblemTags           string
	Submissions           string
	Tags                  string
	Users                 string
}{
	ForgottenPasswordKeys: "forgotten_password_keys",
	Judges:                "judges",
	Partials:              "partials",
	ProblemCategories:     "problem_categories",
	ProblemRels:           "problem_rels",
	ProblemTags:           "problem_tags",
	Submissions:           "submissions",
	Tags:                  "tags",
	Users:                 "users",
}
View Source
var TagColumns = struct {
	ID   string
	Name string
}{
	ID:   "id",
	Name: "name",
}
View Source
var TagRels = struct {
	ProblemTags string
}{
	ProblemTags: "ProblemTags",
}

TagRels is where relationship names are stored.

View Source
var TagTableColumns = struct {
	ID   string
	Name string
}{
	ID:   "tags.id",
	Name: "tags.name",
}
View Source
var TagWhere = struct {
	ID   whereHelperint
	Name whereHelperstring
}{
	ID:   whereHelperint{/* contains filtered or unexported fields */},
	Name: whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var UserColumns = struct {
	ID               string
	Name             string
	Password         string
	Email            string
	ActivationKey    string
	Role             string
	Points           string
	ShowUnsolvedTags string
	Registered       string
}{
	ID:               "id",
	Name:             "name",
	Password:         "password",
	Email:            "email",
	ActivationKey:    "activation_key",
	Role:             "role",
	Points:           "points",
	ShowUnsolvedTags: "show_unsolved_tags",
	Registered:       "registered",
}
View Source
var UserRels = struct {
	ForgottenPasswordKey string
	ProblemTags          string
	Submissions          string
}{
	ForgottenPasswordKey: "ForgottenPasswordKey",
	ProblemTags:          "ProblemTags",
	Submissions:          "Submissions",
}

UserRels is where relationship names are stored.

View Source
var UserTableColumns = struct {
	ID               string
	Name             string
	Password         string
	Email            string
	ActivationKey    string
	Role             string
	Points           string
	ShowUnsolvedTags string
	Registered       string
}{
	ID:               "users.id",
	Name:             "users.name",
	Password:         "users.password",
	Email:            "users.email",
	ActivationKey:    "users.activation_key",
	Role:             "users.role",
	Points:           "users.points",
	ShowUnsolvedTags: "users.show_unsolved_tags",
	Registered:       "users.registered",
}
View Source
var UserWhere = struct {
	ID               whereHelperint
	Name             whereHelperstring
	Password         whereHelperstring
	Email            whereHelperstring
	ActivationKey    whereHelpernull_String
	Role             whereHelperstring
	Points           whereHelpernull_Float32
	ShowUnsolvedTags whereHelperbool
	Registered       whereHelpernull_Time
}{
	ID:               whereHelperint{/* contains filtered or unexported fields */},
	Name:             whereHelperstring{/* contains filtered or unexported fields */},
	Password:         whereHelperstring{/* contains filtered or unexported fields */},
	Email:            whereHelperstring{/* contains filtered or unexported fields */},
	ActivationKey:    whereHelpernull_String{/* contains filtered or unexported fields */},
	Role:             whereHelperstring{/* contains filtered or unexported fields */},
	Points:           whereHelpernull_Float32{/* contains filtered or unexported fields */},
	ShowUnsolvedTags: whereHelperbool{/* contains filtered or unexported fields */},
	Registered:       whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var ViewNames = struct {
}{}

Functions

func AddForgottenPasswordKeyHook

func AddForgottenPasswordKeyHook(hookPoint boil.HookPoint, forgottenPasswordKeyHook ForgottenPasswordKeyHook)

AddForgottenPasswordKeyHook registers your hook function for all future operations.

func AddJudgeHook

func AddJudgeHook(hookPoint boil.HookPoint, judgeHook JudgeHook)

AddJudgeHook registers your hook function for all future operations.

func AddPartialHook

func AddPartialHook(hookPoint boil.HookPoint, partialHook PartialHook)

AddPartialHook registers your hook function for all future operations.

func AddProblemCategoryHook

func AddProblemCategoryHook(hookPoint boil.HookPoint, problemCategoryHook ProblemCategoryHook)

AddProblemCategoryHook registers your hook function for all future operations.

func AddProblemRelHook

func AddProblemRelHook(hookPoint boil.HookPoint, problemRelHook ProblemRelHook)

AddProblemRelHook registers your hook function for all future operations.

func AddProblemTagHook

func AddProblemTagHook(hookPoint boil.HookPoint, problemTagHook ProblemTagHook)

AddProblemTagHook registers your hook function for all future operations.

func AddSubmissionHook

func AddSubmissionHook(hookPoint boil.HookPoint, submissionHook SubmissionHook)

AddSubmissionHook registers your hook function for all future operations.

func AddTagHook

func AddTagHook(hookPoint boil.HookPoint, tagHook TagHook)

AddTagHook 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 ForgottenPasswordKeyExists

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

ForgottenPasswordKeyExists checks if the ForgottenPasswordKey row exists.

func ForgottenPasswordKeyExistsG

func ForgottenPasswordKeyExistsG(ctx context.Context, iD int) (bool, error)

ForgottenPasswordKeyExistsG checks if the ForgottenPasswordKey row exists.

func ForgottenPasswordKeys

func ForgottenPasswordKeys(mods ...qm.QueryMod) forgottenPasswordKeyQuery

ForgottenPasswordKeys retrieves all the records using an executor.

func JudgeExists

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

JudgeExists checks if the Judge row exists.

func JudgeExistsG

func JudgeExistsG(ctx context.Context, iD int) (bool, error)

JudgeExistsG checks if the Judge row exists.

func Judges

func Judges(mods ...qm.QueryMod) judgeQuery

Judges 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 PartialExists

func PartialExists(ctx context.Context, exec boil.ContextExecutor, name string) (bool, error)

PartialExists checks if the Partial row exists.

func PartialExistsG

func PartialExistsG(ctx context.Context, name string) (bool, error)

PartialExistsG checks if the Partial row exists.

func Partials

func Partials(mods ...qm.QueryMod) partialQuery

Partials retrieves all the records using an executor.

func ProblemCategories

func ProblemCategories(mods ...qm.QueryMod) problemCategoryQuery

ProblemCategories retrieves all the records using an executor.

func ProblemCategoryExists

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

ProblemCategoryExists checks if the ProblemCategory row exists.

func ProblemCategoryExistsG

func ProblemCategoryExistsG(ctx context.Context, iD int) (bool, error)

ProblemCategoryExistsG checks if the ProblemCategory row exists.

func ProblemRelExists

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

ProblemRelExists checks if the ProblemRel row exists.

func ProblemRelExistsG

func ProblemRelExistsG(ctx context.Context, iD int) (bool, error)

ProblemRelExistsG checks if the ProblemRel row exists.

func ProblemRels

func ProblemRels(mods ...qm.QueryMod) problemRelQuery

ProblemRels retrieves all the records using an executor.

func ProblemTagExists

func ProblemTagExists(ctx context.Context, exec boil.ContextExecutor, problemID int, tagID int) (bool, error)

ProblemTagExists checks if the ProblemTag row exists.

func ProblemTagExistsG

func ProblemTagExistsG(ctx context.Context, problemID int, tagID int) (bool, error)

ProblemTagExistsG checks if the ProblemTag row exists.

func ProblemTags

func ProblemTags(mods ...qm.QueryMod) problemTagQuery

ProblemTags retrieves all the records using an executor.

func SubmissionExists

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

SubmissionExists checks if the Submission row exists.

func SubmissionExistsG

func SubmissionExistsG(ctx context.Context, iD int) (bool, error)

SubmissionExistsG checks if the Submission row exists.

func Submissions

func Submissions(mods ...qm.QueryMod) submissionQuery

Submissions retrieves all the records using an executor.

func TagExists

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

TagExists checks if the Tag row exists.

func TagExistsG

func TagExistsG(ctx context.Context, iD int) (bool, error)

TagExistsG checks if the Tag row exists.

func Tags

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

Tags 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 UserExistsG

func UserExistsG(ctx context.Context, iD int) (bool, error)

UserExistsG checks if the User row exists.

func Users

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

Users retrieves all the records using an executor.

Types

type ForgottenPasswordKey

type ForgottenPasswordKey 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"`
	Key    string    `boil:"key" json:"key" toml:"key" yaml:"key"`
	Valid  time.Time `boil:"valid" json:"valid" toml:"valid" yaml:"valid"`

	R *forgottenPasswordKeyR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L forgottenPasswordKeyL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

ForgottenPasswordKey is an object representing the database table.

func FindForgottenPasswordKey

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

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

func FindForgottenPasswordKeyG

func FindForgottenPasswordKeyG(ctx context.Context, iD int, selectCols ...string) (*ForgottenPasswordKey, error)

FindForgottenPasswordKeyG retrieves a single record by ID.

func (*ForgottenPasswordKey) Delete

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

func (*ForgottenPasswordKey) DeleteG

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

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

func (*ForgottenPasswordKey) Exists

Exists checks if the ForgottenPasswordKey row exists.

func (*ForgottenPasswordKey) Insert

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

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

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

func (*ForgottenPasswordKey) Reload

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

func (*ForgottenPasswordKey) ReloadG

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

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

func (*ForgottenPasswordKey) SetUser

func (o *ForgottenPasswordKey) SetUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error

SetUser of the forgottenPasswordKey to the related item. Sets o.R.User to related. Adds o to related.R.ForgottenPasswordKey.

func (*ForgottenPasswordKey) SetUserG

func (o *ForgottenPasswordKey) SetUserG(ctx context.Context, insert bool, related *User) error

SetUserG of the forgottenPasswordKey to the related item. Sets o.R.User to related. Adds o to related.R.ForgottenPasswordKey. Uses the global database handle.

func (*ForgottenPasswordKey) Update

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

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

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

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

func (*ForgottenPasswordKey) Upsert

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

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

func (*ForgottenPasswordKey) UpsertG

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

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

func (*ForgottenPasswordKey) User

func (o *ForgottenPasswordKey) User(mods ...qm.QueryMod) userQuery

User pointed to by the foreign key.

type ForgottenPasswordKeyHook

type ForgottenPasswordKeyHook func(context.Context, boil.ContextExecutor, *ForgottenPasswordKey) error

ForgottenPasswordKeyHook is the signature for custom ForgottenPasswordKey hook methods

type ForgottenPasswordKeySlice

type ForgottenPasswordKeySlice []*ForgottenPasswordKey

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

func (ForgottenPasswordKeySlice) DeleteAll

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

func (ForgottenPasswordKeySlice) DeleteAllG

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

DeleteAllG deletes all rows in the slice.

func (*ForgottenPasswordKeySlice) ReloadAll

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

func (*ForgottenPasswordKeySlice) ReloadAllG

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

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

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

func (ForgottenPasswordKeySlice) UpdateAllG

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

UpdateAllG updates all rows with the specified column values.

type Judge

type Judge struct {
	ID     int    `boil:"id" json:"id" toml:"id" yaml:"id"`
	State  string `boil:"state" json:"state" toml:"state" yaml:"state"`
	Host   string `boil:"host" json:"host" toml:"host" yaml:"host"`
	Port   string `boil:"port" json:"port" toml:"port" yaml:"port"`
	Ping   int    `boil:"ping" json:"ping" toml:"ping" yaml:"ping"`
	Online bool   `boil:"online" json:"online" toml:"online" yaml:"online"`

	R *judgeR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L judgeL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Judge is an object representing the database table.

func FindJudge

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

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

func FindJudgeG

func FindJudgeG(ctx context.Context, iD int, selectCols ...string) (*Judge, error)

FindJudgeG retrieves a single record by ID.

func (*Judge) Delete

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

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

func (*Judge) DeleteG

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

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

func (*Judge) Exists

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

Exists checks if the Judge row exists.

func (*Judge) Insert

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

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

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

func (*Judge) Reload

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

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

func (*Judge) ReloadG

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

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

func (*Judge) Update

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

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

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

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

func (*Judge) Upsert

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

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

func (*Judge) UpsertG

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

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

type JudgeHook

type JudgeHook func(context.Context, boil.ContextExecutor, *Judge) error

JudgeHook is the signature for custom Judge hook methods

type JudgeSlice

type JudgeSlice []*Judge

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

func (JudgeSlice) DeleteAll

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

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

func (JudgeSlice) DeleteAllG

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

DeleteAllG deletes all rows in the slice.

func (*JudgeSlice) ReloadAll

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

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

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

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

func (JudgeSlice) UpdateAllG

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

UpdateAllG updates all rows with the specified column values.

type M

type M map[string]interface{}

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

type Partial

type Partial struct {
	Name string `boil:"name" json:"name" toml:"name" yaml:"name"`
	HTML string `boil:"html" json:"html" toml:"html" yaml:"html"`

	R *partialR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L partialL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Partial is an object representing the database table.

func FindPartial

func FindPartial(ctx context.Context, exec boil.ContextExecutor, name string, selectCols ...string) (*Partial, error)

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

func FindPartialG

func FindPartialG(ctx context.Context, name string, selectCols ...string) (*Partial, error)

FindPartialG retrieves a single record by ID.

func (*Partial) Delete

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

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

func (*Partial) DeleteG

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

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

func (*Partial) Exists

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

Exists checks if the Partial row exists.

func (*Partial) Insert

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

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

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

func (*Partial) Reload

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

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

func (*Partial) ReloadG

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

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

func (*Partial) Update

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

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

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

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

func (*Partial) Upsert

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

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

func (*Partial) UpsertG

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

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

type PartialHook

type PartialHook func(context.Context, boil.ContextExecutor, *Partial) error

PartialHook is the signature for custom Partial hook methods

type PartialSlice

type PartialSlice []*Partial

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

func (PartialSlice) DeleteAll

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

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

func (PartialSlice) DeleteAllG

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

DeleteAllG deletes all rows in the slice.

func (*PartialSlice) ReloadAll

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

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

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

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

func (PartialSlice) UpdateAllG

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

UpdateAllG updates all rows with the specified column values.

type ProblemCategory

type ProblemCategory struct {
	ID       int      `boil:"id" json:"id" toml:"id" yaml:"id"`
	Name     string   `boil:"name" json:"name" toml:"name" yaml:"name"`
	ParentID null.Int `boil:"parent_id" json:"parent_id,omitempty" toml:"parent_id" yaml:"parent_id,omitempty"`

	R *problemCategoryR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L problemCategoryL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

ProblemCategory is an object representing the database table.

func FindProblemCategory

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

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

func FindProblemCategoryG

func FindProblemCategoryG(ctx context.Context, iD int, selectCols ...string) (*ProblemCategory, error)

FindProblemCategoryG retrieves a single record by ID.

func (*ProblemCategory) AddCategoryProblemRels

func (o *ProblemCategory) AddCategoryProblemRels(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*ProblemRel) error

AddCategoryProblemRels adds the given related objects to the existing relationships of the problem_category, optionally inserting them as new records. Appends related to o.R.CategoryProblemRels. Sets related.R.Category appropriately.

func (*ProblemCategory) AddCategoryProblemRelsG

func (o *ProblemCategory) AddCategoryProblemRelsG(ctx context.Context, insert bool, related ...*ProblemRel) error

AddCategoryProblemRelsG adds the given related objects to the existing relationships of the problem_category, optionally inserting them as new records. Appends related to o.R.CategoryProblemRels. Sets related.R.Category appropriately. Uses the global database handle.

func (*ProblemCategory) AddParentProblemCategories

func (o *ProblemCategory) AddParentProblemCategories(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*ProblemCategory) error

AddParentProblemCategories adds the given related objects to the existing relationships of the problem_category, optionally inserting them as new records. Appends related to o.R.ParentProblemCategories. Sets related.R.Parent appropriately.

func (*ProblemCategory) AddParentProblemCategoriesG

func (o *ProblemCategory) AddParentProblemCategoriesG(ctx context.Context, insert bool, related ...*ProblemCategory) error

AddParentProblemCategoriesG adds the given related objects to the existing relationships of the problem_category, optionally inserting them as new records. Appends related to o.R.ParentProblemCategories. Sets related.R.Parent appropriately. Uses the global database handle.

func (*ProblemCategory) CategoryProblemRels

func (o *ProblemCategory) CategoryProblemRels(mods ...qm.QueryMod) problemRelQuery

CategoryProblemRels retrieves all the problem_rel's ProblemRels with an executor via category_id column.

func (*ProblemCategory) Delete

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

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

func (*ProblemCategory) DeleteG

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

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

func (*ProblemCategory) Exists

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

Exists checks if the ProblemCategory row exists.

func (*ProblemCategory) Insert

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

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

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

func (*ProblemCategory) Parent

func (o *ProblemCategory) Parent(mods ...qm.QueryMod) problemCategoryQuery

Parent pointed to by the foreign key.

func (*ProblemCategory) ParentProblemCategories

func (o *ProblemCategory) ParentProblemCategories(mods ...qm.QueryMod) problemCategoryQuery

ParentProblemCategories retrieves all the problem_category's ProblemCategories with an executor via parent_id column.

func (*ProblemCategory) Reload

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

func (*ProblemCategory) ReloadG

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

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

func (*ProblemCategory) RemoveCategoryProblemRels

func (o *ProblemCategory) RemoveCategoryProblemRels(ctx context.Context, exec boil.ContextExecutor, related ...*ProblemRel) error

RemoveCategoryProblemRels relationships from objects passed in. Removes related items from R.CategoryProblemRels (uses pointer comparison, removal does not keep order) Sets related.R.Category.

func (*ProblemCategory) RemoveCategoryProblemRelsG

func (o *ProblemCategory) RemoveCategoryProblemRelsG(ctx context.Context, related ...*ProblemRel) error

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

func (*ProblemCategory) RemoveParent

func (o *ProblemCategory) RemoveParent(ctx context.Context, exec boil.ContextExecutor, related *ProblemCategory) error

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

func (*ProblemCategory) RemoveParentG

func (o *ProblemCategory) RemoveParentG(ctx context.Context, related *ProblemCategory) error

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

func (*ProblemCategory) RemoveParentProblemCategories

func (o *ProblemCategory) RemoveParentProblemCategories(ctx context.Context, exec boil.ContextExecutor, related ...*ProblemCategory) error

RemoveParentProblemCategories relationships from objects passed in. Removes related items from R.ParentProblemCategories (uses pointer comparison, removal does not keep order) Sets related.R.Parent.

func (*ProblemCategory) RemoveParentProblemCategoriesG

func (o *ProblemCategory) RemoveParentProblemCategoriesG(ctx context.Context, related ...*ProblemCategory) error

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

func (*ProblemCategory) SetCategoryProblemRels

func (o *ProblemCategory) SetCategoryProblemRels(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*ProblemRel) error

SetCategoryProblemRels removes all previously related items of the problem_category replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Category's CategoryProblemRels accordingly. Replaces o.R.CategoryProblemRels with related. Sets related.R.Category's CategoryProblemRels accordingly.

func (*ProblemCategory) SetCategoryProblemRelsG

func (o *ProblemCategory) SetCategoryProblemRelsG(ctx context.Context, insert bool, related ...*ProblemRel) error

SetCategoryProblemRelsG removes all previously related items of the problem_category replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Category's CategoryProblemRels accordingly. Replaces o.R.CategoryProblemRels with related. Sets related.R.Category's CategoryProblemRels accordingly. Uses the global database handle.

func (*ProblemCategory) SetParent

func (o *ProblemCategory) SetParent(ctx context.Context, exec boil.ContextExecutor, insert bool, related *ProblemCategory) error

SetParent of the problemCategory to the related item. Sets o.R.Parent to related. Adds o to related.R.ParentProblemCategories.

func (*ProblemCategory) SetParentG

func (o *ProblemCategory) SetParentG(ctx context.Context, insert bool, related *ProblemCategory) error

SetParentG of the problemCategory to the related item. Sets o.R.Parent to related. Adds o to related.R.ParentProblemCategories. Uses the global database handle.

func (*ProblemCategory) SetParentProblemCategories

func (o *ProblemCategory) SetParentProblemCategories(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*ProblemCategory) error

SetParentProblemCategories removes all previously related items of the problem_category replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Parent's ParentProblemCategories accordingly. Replaces o.R.ParentProblemCategories with related. Sets related.R.Parent's ParentProblemCategories accordingly.

func (*ProblemCategory) SetParentProblemCategoriesG

func (o *ProblemCategory) SetParentProblemCategoriesG(ctx context.Context, insert bool, related ...*ProblemCategory) error

SetParentProblemCategoriesG removes all previously related items of the problem_category replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Parent's ParentProblemCategories accordingly. Replaces o.R.ParentProblemCategories with related. Sets related.R.Parent's ParentProblemCategories accordingly. Uses the global database handle.

func (*ProblemCategory) Update

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

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

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

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

func (*ProblemCategory) Upsert

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

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

func (*ProblemCategory) UpsertG

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

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

type ProblemCategoryHook

type ProblemCategoryHook func(context.Context, boil.ContextExecutor, *ProblemCategory) error

ProblemCategoryHook is the signature for custom ProblemCategory hook methods

type ProblemCategorySlice

type ProblemCategorySlice []*ProblemCategory

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

func (ProblemCategorySlice) DeleteAll

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

func (ProblemCategorySlice) DeleteAllG

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

DeleteAllG deletes all rows in the slice.

func (*ProblemCategorySlice) ReloadAll

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

func (*ProblemCategorySlice) ReloadAllG

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

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

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

func (ProblemCategorySlice) UpdateAllG

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

UpdateAllG updates all rows with the specified column values.

type ProblemRel

type ProblemRel struct {
	Problemset  string   `boil:"problemset" json:"problemset" toml:"problemset" yaml:"problemset"`
	Problem     string   `boil:"problem" json:"problem" toml:"problem" yaml:"problem"`
	ID          int      `boil:"id" json:"id" toml:"id" yaml:"id"`
	CategoryID  null.Int `boil:"category_id" json:"category_id,omitempty" toml:"category_id" yaml:"category_id,omitempty"`
	SolverCount int      `boil:"solver_count" json:"solver_count" toml:"solver_count" yaml:"solver_count"`

	R *problemRelR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L problemRelL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

ProblemRel is an object representing the database table.

func FindProblemRel

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

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

func FindProblemRelG

func FindProblemRelG(ctx context.Context, iD int, selectCols ...string) (*ProblemRel, error)

FindProblemRelG retrieves a single record by ID.

func (*ProblemRel) AddProblemProblemTags

func (o *ProblemRel) AddProblemProblemTags(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*ProblemTag) error

AddProblemProblemTags adds the given related objects to the existing relationships of the problem_rel, optionally inserting them as new records. Appends related to o.R.ProblemProblemTags. Sets related.R.Problem appropriately.

func (*ProblemRel) AddProblemProblemTagsG

func (o *ProblemRel) AddProblemProblemTagsG(ctx context.Context, insert bool, related ...*ProblemTag) error

AddProblemProblemTagsG adds the given related objects to the existing relationships of the problem_rel, optionally inserting them as new records. Appends related to o.R.ProblemProblemTags. Sets related.R.Problem appropriately. Uses the global database handle.

func (*ProblemRel) AddProblemSubmissions

func (o *ProblemRel) AddProblemSubmissions(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Submission) error

AddProblemSubmissions adds the given related objects to the existing relationships of the problem_rel, optionally inserting them as new records. Appends related to o.R.ProblemSubmissions. Sets related.R.Problem appropriately.

func (*ProblemRel) AddProblemSubmissionsG

func (o *ProblemRel) AddProblemSubmissionsG(ctx context.Context, insert bool, related ...*Submission) error

AddProblemSubmissionsG adds the given related objects to the existing relationships of the problem_rel, optionally inserting them as new records. Appends related to o.R.ProblemSubmissions. Sets related.R.Problem appropriately. Uses the global database handle.

func (*ProblemRel) Category

func (o *ProblemRel) Category(mods ...qm.QueryMod) problemCategoryQuery

Category pointed to by the foreign key.

func (*ProblemRel) Delete

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

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

func (*ProblemRel) DeleteG

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

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

func (*ProblemRel) Exists

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

Exists checks if the ProblemRel row exists.

func (*ProblemRel) Insert

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

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

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

func (*ProblemRel) ProblemProblemTags

func (o *ProblemRel) ProblemProblemTags(mods ...qm.QueryMod) problemTagQuery

ProblemProblemTags retrieves all the problem_tag's ProblemTags with an executor via problem_id column.

func (*ProblemRel) ProblemSubmissions

func (o *ProblemRel) ProblemSubmissions(mods ...qm.QueryMod) submissionQuery

ProblemSubmissions retrieves all the submission's Submissions with an executor via problem_id column.

func (*ProblemRel) Reload

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

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

func (*ProblemRel) ReloadG

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

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

func (*ProblemRel) RemoveCategory

func (o *ProblemRel) RemoveCategory(ctx context.Context, exec boil.ContextExecutor, related *ProblemCategory) error

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

func (*ProblemRel) RemoveCategoryG

func (o *ProblemRel) RemoveCategoryG(ctx context.Context, related *ProblemCategory) error

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

func (*ProblemRel) SetCategory

func (o *ProblemRel) SetCategory(ctx context.Context, exec boil.ContextExecutor, insert bool, related *ProblemCategory) error

SetCategory of the problemRel to the related item. Sets o.R.Category to related. Adds o to related.R.CategoryProblemRels.

func (*ProblemRel) SetCategoryG

func (o *ProblemRel) SetCategoryG(ctx context.Context, insert bool, related *ProblemCategory) error

SetCategoryG of the problemRel to the related item. Sets o.R.Category to related. Adds o to related.R.CategoryProblemRels. Uses the global database handle.

func (*ProblemRel) Update

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

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

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

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

func (*ProblemRel) Upsert

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

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

func (*ProblemRel) UpsertG

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

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

type ProblemRelHook

type ProblemRelHook func(context.Context, boil.ContextExecutor, *ProblemRel) error

ProblemRelHook is the signature for custom ProblemRel hook methods

type ProblemRelSlice

type ProblemRelSlice []*ProblemRel

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

func (ProblemRelSlice) DeleteAll

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

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

func (ProblemRelSlice) DeleteAllG

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

DeleteAllG deletes all rows in the slice.

func (*ProblemRelSlice) ReloadAll

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

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

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

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

func (ProblemRelSlice) UpdateAllG

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

UpdateAllG updates all rows with the specified column values.

type ProblemTag

type ProblemTag struct {
	ProblemID int       `boil:"problem_id" json:"problem_id" toml:"problem_id" yaml:"problem_id"`
	TagID     int       `boil:"tag_id" json:"tag_id" toml:"tag_id" yaml:"tag_id"`
	UserID    int       `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"`
	Added     time.Time `boil:"added" json:"added" toml:"added" yaml:"added"`

	R *problemTagR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L problemTagL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

ProblemTag is an object representing the database table.

func FindProblemTag

func FindProblemTag(ctx context.Context, exec boil.ContextExecutor, problemID int, tagID int, selectCols ...string) (*ProblemTag, error)

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

func FindProblemTagG

func FindProblemTagG(ctx context.Context, problemID int, tagID int, selectCols ...string) (*ProblemTag, error)

FindProblemTagG retrieves a single record by ID.

func (*ProblemTag) Delete

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

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

func (*ProblemTag) DeleteG

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

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

func (*ProblemTag) Exists

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

Exists checks if the ProblemTag row exists.

func (*ProblemTag) Insert

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

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

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

func (*ProblemTag) Problem

func (o *ProblemTag) Problem(mods ...qm.QueryMod) problemRelQuery

Problem pointed to by the foreign key.

func (*ProblemTag) Reload

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

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

func (*ProblemTag) ReloadG

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

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

func (*ProblemTag) SetProblem

func (o *ProblemTag) SetProblem(ctx context.Context, exec boil.ContextExecutor, insert bool, related *ProblemRel) error

SetProblem of the problemTag to the related item. Sets o.R.Problem to related. Adds o to related.R.ProblemProblemTags.

func (*ProblemTag) SetProblemG

func (o *ProblemTag) SetProblemG(ctx context.Context, insert bool, related *ProblemRel) error

SetProblemG of the problemTag to the related item. Sets o.R.Problem to related. Adds o to related.R.ProblemProblemTags. Uses the global database handle.

func (*ProblemTag) SetTag

func (o *ProblemTag) SetTag(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Tag) error

SetTag of the problemTag to the related item. Sets o.R.Tag to related. Adds o to related.R.ProblemTags.

func (*ProblemTag) SetTagG

func (o *ProblemTag) SetTagG(ctx context.Context, insert bool, related *Tag) error

SetTagG of the problemTag to the related item. Sets o.R.Tag to related. Adds o to related.R.ProblemTags. Uses the global database handle.

func (*ProblemTag) SetUser

func (o *ProblemTag) SetUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error

SetUser of the problemTag to the related item. Sets o.R.User to related. Adds o to related.R.ProblemTags.

func (*ProblemTag) SetUserG

func (o *ProblemTag) SetUserG(ctx context.Context, insert bool, related *User) error

SetUserG of the problemTag to the related item. Sets o.R.User to related. Adds o to related.R.ProblemTags. Uses the global database handle.

func (*ProblemTag) Tag

func (o *ProblemTag) Tag(mods ...qm.QueryMod) tagQuery

Tag pointed to by the foreign key.

func (*ProblemTag) Update

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

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

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

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

func (*ProblemTag) Upsert

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

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

func (*ProblemTag) UpsertG

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

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

func (*ProblemTag) User

func (o *ProblemTag) User(mods ...qm.QueryMod) userQuery

User pointed to by the foreign key.

type ProblemTagHook

type ProblemTagHook func(context.Context, boil.ContextExecutor, *ProblemTag) error

ProblemTagHook is the signature for custom ProblemTag hook methods

type ProblemTagSlice

type ProblemTagSlice []*ProblemTag

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

func (ProblemTagSlice) DeleteAll

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

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

func (ProblemTagSlice) DeleteAllG

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

DeleteAllG deletes all rows in the slice.

func (*ProblemTagSlice) ReloadAll

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

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

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

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

func (ProblemTagSlice) UpdateAllG

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

UpdateAllG updates all rows with the specified column values.

type Submission

type Submission struct {
	ID        int          `boil:"id" json:"id" toml:"id" yaml:"id"`
	Status    string       `boil:"status" json:"status" toml:"status" yaml:"status"`
	Ontest    null.String  `boil:"ontest" json:"ontest,omitempty" toml:"ontest" yaml:"ontest,omitempty"`
	UserID    int          `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"`
	Language  string       `boil:"language" json:"language" toml:"language" yaml:"language"`
	Private   bool         `boil:"private" json:"private" toml:"private" yaml:"private"`
	Verdict   int          `boil:"verdict" json:"verdict" toml:"verdict" yaml:"verdict"`
	Source    []byte       `boil:"source" json:"source" toml:"source" yaml:"source"`
	Started   bool         `boil:"started" json:"started" toml:"started" yaml:"started"`
	Submitted time.Time    `boil:"submitted" json:"submitted" toml:"submitted" yaml:"submitted"`
	Judged    null.Time    `boil:"judged" json:"judged,omitempty" toml:"judged" yaml:"judged,omitempty"`
	Score     null.Float32 `boil:"score" json:"score,omitempty" toml:"score" yaml:"score,omitempty"`
	ProblemID int          `boil:"problem_id" json:"problem_id" toml:"problem_id" yaml:"problem_id"`

	R *submissionR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L submissionL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Submission is an object representing the database table.

func FindSubmission

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

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

func FindSubmissionG

func FindSubmissionG(ctx context.Context, iD int, selectCols ...string) (*Submission, error)

FindSubmissionG retrieves a single record by ID.

func (*Submission) Delete

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

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

func (*Submission) DeleteG

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

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

func (*Submission) Exists

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

Exists checks if the Submission row exists.

func (*Submission) Insert

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

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

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

func (*Submission) Problem

func (o *Submission) Problem(mods ...qm.QueryMod) problemRelQuery

Problem pointed to by the foreign key.

func (*Submission) Reload

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

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

func (*Submission) ReloadG

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

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

func (*Submission) SetProblem

func (o *Submission) SetProblem(ctx context.Context, exec boil.ContextExecutor, insert bool, related *ProblemRel) error

SetProblem of the submission to the related item. Sets o.R.Problem to related. Adds o to related.R.ProblemSubmissions.

func (*Submission) SetProblemG

func (o *Submission) SetProblemG(ctx context.Context, insert bool, related *ProblemRel) error

SetProblemG of the submission to the related item. Sets o.R.Problem to related. Adds o to related.R.ProblemSubmissions. Uses the global database handle.

func (*Submission) SetUser

func (o *Submission) SetUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error

SetUser of the submission to the related item. Sets o.R.User to related. Adds o to related.R.Submissions.

func (*Submission) SetUserG

func (o *Submission) SetUserG(ctx context.Context, insert bool, related *User) error

SetUserG of the submission to the related item. Sets o.R.User to related. Adds o to related.R.Submissions. Uses the global database handle.

func (*Submission) Update

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

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

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

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

func (*Submission) Upsert

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

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

func (*Submission) UpsertG

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

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

func (*Submission) User

func (o *Submission) User(mods ...qm.QueryMod) userQuery

User pointed to by the foreign key.

type SubmissionHook

type SubmissionHook func(context.Context, boil.ContextExecutor, *Submission) error

SubmissionHook is the signature for custom Submission hook methods

type SubmissionSlice

type SubmissionSlice []*Submission

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

func (SubmissionSlice) DeleteAll

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

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

func (SubmissionSlice) DeleteAllG

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

DeleteAllG deletes all rows in the slice.

func (*SubmissionSlice) ReloadAll

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

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

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

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

func (SubmissionSlice) UpdateAllG

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

UpdateAllG updates all rows with the specified column values.

type Tag

type Tag struct {
	ID   int    `boil:"id" json:"id" toml:"id" yaml:"id"`
	Name string `boil:"name" json:"name" toml:"name" yaml:"name"`

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

Tag is an object representing the database table.

func FindTag

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

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

func FindTagG

func FindTagG(ctx context.Context, iD int, selectCols ...string) (*Tag, error)

FindTagG retrieves a single record by ID.

func (*Tag) AddProblemTags

func (o *Tag) AddProblemTags(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*ProblemTag) error

AddProblemTags adds the given related objects to the existing relationships of the tag, optionally inserting them as new records. Appends related to o.R.ProblemTags. Sets related.R.Tag appropriately.

func (*Tag) AddProblemTagsG

func (o *Tag) AddProblemTagsG(ctx context.Context, insert bool, related ...*ProblemTag) error

AddProblemTagsG adds the given related objects to the existing relationships of the tag, optionally inserting them as new records. Appends related to o.R.ProblemTags. Sets related.R.Tag appropriately. Uses the global database handle.

func (*Tag) Delete

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

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

func (*Tag) DeleteG

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

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

func (*Tag) Exists

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

Exists checks if the Tag row exists.

func (*Tag) Insert

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

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

func (*Tag) InsertG

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

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

func (*Tag) ProblemTags

func (o *Tag) ProblemTags(mods ...qm.QueryMod) problemTagQuery

ProblemTags retrieves all the problem_tag's ProblemTags with an executor.

func (*Tag) Reload

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

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

func (*Tag) ReloadG

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

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

func (*Tag) Update

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

Update uses an executor to update the Tag. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Tag) UpdateG

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

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

func (*Tag) Upsert

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

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

func (*Tag) UpsertG

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

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

type TagHook

type TagHook func(context.Context, boil.ContextExecutor, *Tag) error

TagHook is the signature for custom Tag hook methods

type TagSlice

type TagSlice []*Tag

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

func (TagSlice) DeleteAll

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

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

func (TagSlice) DeleteAllG

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

DeleteAllG deletes all rows in the slice.

func (*TagSlice) ReloadAll

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

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

func (*TagSlice) ReloadAllG

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

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

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

func (TagSlice) UpdateAllG

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

UpdateAllG updates all rows with the specified column values.

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"`
	Password         string       `boil:"password" json:"password" toml:"password" yaml:"password"`
	Email            string       `boil:"email" json:"email" toml:"email" yaml:"email"`
	ActivationKey    null.String  `boil:"activation_key" json:"activation_key,omitempty" toml:"activation_key" yaml:"activation_key,omitempty"`
	Role             string       `boil:"role" json:"role" toml:"role" yaml:"role"`
	Points           null.Float32 `boil:"points" json:"points,omitempty" toml:"points" yaml:"points,omitempty"`
	ShowUnsolvedTags bool         `boil:"show_unsolved_tags" json:"show_unsolved_tags" toml:"show_unsolved_tags" yaml:"show_unsolved_tags"`
	Registered       null.Time    `boil:"registered" json:"registered,omitempty" toml:"registered" yaml:"registered,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 FindUserG

func FindUserG(ctx context.Context, iD int, selectCols ...string) (*User, error)

FindUserG retrieves a single record by ID.

func (*User) AddProblemTags

func (o *User) AddProblemTags(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*ProblemTag) error

AddProblemTags adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.ProblemTags. Sets related.R.User appropriately.

func (*User) AddProblemTagsG

func (o *User) AddProblemTagsG(ctx context.Context, insert bool, related ...*ProblemTag) error

AddProblemTagsG adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.ProblemTags. Sets related.R.User appropriately. Uses the global database handle.

func (*User) AddSubmissions

func (o *User) AddSubmissions(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Submission) error

AddSubmissions adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.Submissions. Sets related.R.User appropriately.

func (*User) AddSubmissionsG

func (o *User) AddSubmissionsG(ctx context.Context, insert bool, related ...*Submission) error

AddSubmissionsG adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.Submissions. Sets related.R.User appropriately. Uses the global database handle.

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

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

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

func (*User) Exists

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

Exists checks if the User row exists.

func (*User) ForgottenPasswordKey

func (o *User) ForgottenPasswordKey(mods ...qm.QueryMod) forgottenPasswordKeyQuery

ForgottenPasswordKey pointed to by the foreign key.

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

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

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

func (*User) ProblemTags

func (o *User) ProblemTags(mods ...qm.QueryMod) problemTagQuery

ProblemTags retrieves all the problem_tag's ProblemTags with an executor.

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

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

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

func (*User) SetForgottenPasswordKey

func (o *User) SetForgottenPasswordKey(ctx context.Context, exec boil.ContextExecutor, insert bool, related *ForgottenPasswordKey) error

SetForgottenPasswordKey of the user to the related item. Sets o.R.ForgottenPasswordKey to related. Adds o to related.R.User.

func (*User) SetForgottenPasswordKeyG

func (o *User) SetForgottenPasswordKeyG(ctx context.Context, insert bool, related *ForgottenPasswordKey) error

SetForgottenPasswordKeyG of the user to the related item. Sets o.R.ForgottenPasswordKey to related. Adds o to related.R.User. Uses the global database handle.

func (*User) Submissions

func (o *User) Submissions(mods ...qm.QueryMod) submissionQuery

Submissions retrieves all the submission's Submissions 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) UpdateG

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

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

func (*User) Upsert

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

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

func (*User) UpsertG

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

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

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 almost always be used instead of []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) DeleteAllG

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

DeleteAllG deletes all rows in the slice.

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

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

func (UserSlice) UpdateAllG

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

UpdateAllG updates all rows with the specified column values.

Jump to

Keyboard shortcuts

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