models

package
v0.0.0-...-431350c Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var APIKeyColumns = struct {
	KeyID  string
	KeyVal string
}{
	KeyID:  "key_id",
	KeyVal: "key_val",
}
View Source
var APIKeyRels = struct {
}{}

APIKeyRels is where relationship names are stored.

View Source
var APIKeyTableColumns = struct {
	KeyID  string
	KeyVal string
}{
	KeyID:  "api_keys.key_id",
	KeyVal: "api_keys.key_val",
}
View Source
var APIKeyWhere = struct {
	KeyID  whereHelperint
	KeyVal whereHelperstring
}{
	KeyID:  whereHelperint{/* contains filtered or unexported fields */},
	KeyVal: whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var BlogColumns = struct {
	BlogID        string
	MemberID      string
	BlogURL       string
	LastBlogImg   string
	LastUpdatedAt string
}{
	BlogID:        "blog_id",
	MemberID:      "member_id",
	BlogURL:       "blog_url",
	LastBlogImg:   "last_blog_img",
	LastUpdatedAt: "last_updated_at",
}
View Source
var BlogRels = struct {
	Member string
}{
	Member: "Member",
}

BlogRels is where relationship names are stored.

View Source
var BlogTableColumns = struct {
	BlogID        string
	MemberID      string
	BlogURL       string
	LastBlogImg   string
	LastUpdatedAt string
}{
	BlogID:        "blogs.blog_id",
	MemberID:      "blogs.member_id",
	BlogURL:       "blogs.blog_url",
	LastBlogImg:   "blogs.last_blog_img",
	LastUpdatedAt: "blogs.last_updated_at",
}
View Source
var BlogWhere = struct {
	BlogID        whereHelperint
	MemberID      whereHelperint
	BlogURL       whereHelperstring
	LastBlogImg   whereHelperstring
	LastUpdatedAt whereHelperstring
}{
	BlogID:        whereHelperint{/* contains filtered or unexported fields */},
	MemberID:      whereHelperint{/* contains filtered or unexported fields */},
	BlogURL:       whereHelperstring{/* contains filtered or unexported fields */},
	LastBlogImg:   whereHelperstring{/* contains filtered or unexported fields */},
	LastUpdatedAt: whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var ErrSyncFail = errors.New("models: failed to synchronize data after insert")

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

View Source
var FormationColumns = struct {
	FormationID  string
	FirstRowNum  string
	SecondRowNum string
	ThirdRowNum  string
}{
	FormationID:  "formation_id",
	FirstRowNum:  "first_row_num",
	SecondRowNum: "second_row_num",
	ThirdRowNum:  "third_row_num",
}
View Source
var FormationRels = struct {
	Songs string
}{
	Songs: "Songs",
}

FormationRels is where relationship names are stored.

View Source
var FormationTableColumns = struct {
	FormationID  string
	FirstRowNum  string
	SecondRowNum string
	ThirdRowNum  string
}{
	FormationID:  "formations.formation_id",
	FirstRowNum:  "formations.first_row_num",
	SecondRowNum: "formations.second_row_num",
	ThirdRowNum:  "formations.third_row_num",
}
View Source
var FormationWhere = struct {
	FormationID  whereHelperint
	FirstRowNum  whereHelpernull_Int16
	SecondRowNum whereHelpernull_Int16
	ThirdRowNum  whereHelpernull_Int16
}{
	FormationID:  whereHelperint{/* contains filtered or unexported fields */},
	FirstRowNum:  whereHelpernull_Int16{/* contains filtered or unexported fields */},
	SecondRowNum: whereHelpernull_Int16{/* contains filtered or unexported fields */},
	ThirdRowNum:  whereHelpernull_Int16{/* contains filtered or unexported fields */},
}
View Source
var GroupColumns = struct {
	GroupID   string
	GroupName string
}{
	GroupID:   "group_id",
	GroupName: "group_name",
}
View Source
var GroupRels = struct {
	Members string
	Songs   string
}{
	Members: "Members",
	Songs:   "Songs",
}

GroupRels is where relationship names are stored.

View Source
var GroupTableColumns = struct {
	GroupID   string
	GroupName string
}{
	GroupID:   "groups.group_id",
	GroupName: "groups.group_name",
}
View Source
var GroupWhere = struct {
	GroupID   whereHelperint
	GroupName whereHelperstring
}{
	GroupID:   whereHelperint{/* contains filtered or unexported fields */},
	GroupName: whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var LocaleColumns = struct {
	LocaleID string
	Name     string
}{
	LocaleID: "locale_id",
	Name:     "name",
}
View Source
var LocaleRels = struct {
	MemberInfos string
}{
	MemberInfos: "MemberInfos",
}

LocaleRels is where relationship names are stored.

View Source
var LocaleTableColumns = struct {
	LocaleID string
	Name     string
}{
	LocaleID: "locales.locale_id",
	Name:     "locales.name",
}
View Source
var LocaleWhere = struct {
	LocaleID whereHelperint
	Name     whereHelperstring
}{
	LocaleID: whereHelperint{/* contains filtered or unexported fields */},
	Name:     whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var MemberColumns = struct {
	MemberID string
	GroupID  string
	NameJa   string
	JoinedAt string
	LeftAt   string
}{
	MemberID: "member_id",
	GroupID:  "group_id",
	NameJa:   "name_ja",
	JoinedAt: "joined_at",
	LeftAt:   "left_at",
}
View Source
var MemberInfoColumns = struct {
	MemberInfoID string
	MemberID     string
	Birthday     string
	BloodType    string
	HeightCM     string
	Generation   string
	BlogURL      string
	ImgURL       string
	LocaleID     string
}{
	MemberInfoID: "member_info_id",
	MemberID:     "member_id",
	Birthday:     "birthday",
	BloodType:    "blood_type",
	HeightCM:     "height_cm",
	Generation:   "generation",
	BlogURL:      "blog_url",
	ImgURL:       "img_url",
	LocaleID:     "locale_id",
}
View Source
var MemberInfoRels = struct {
	Locale string
	Member string
}{
	Locale: "Locale",
	Member: "Member",
}

MemberInfoRels is where relationship names are stored.

View Source
var MemberInfoTableColumns = struct {
	MemberInfoID string
	MemberID     string
	Birthday     string
	BloodType    string
	HeightCM     string
	Generation   string
	BlogURL      string
	ImgURL       string
	LocaleID     string
}{
	MemberInfoID: "member_infos.member_info_id",
	MemberID:     "member_infos.member_id",
	Birthday:     "member_infos.birthday",
	BloodType:    "member_infos.blood_type",
	HeightCM:     "member_infos.height_cm",
	Generation:   "member_infos.generation",
	BlogURL:      "member_infos.blog_url",
	ImgURL:       "member_infos.img_url",
	LocaleID:     "member_infos.locale_id",
}
View Source
var MemberInfoWhere = struct {
	MemberInfoID whereHelperint
	MemberID     whereHelperint
	Birthday     whereHelpertime_Time
	BloodType    whereHelperstring
	HeightCM     whereHelperfloat64
	Generation   whereHelperstring
	BlogURL      whereHelpernull_String
	ImgURL       whereHelpernull_String
	LocaleID     whereHelperint
}{
	MemberInfoID: whereHelperint{/* contains filtered or unexported fields */},
	MemberID:     whereHelperint{/* contains filtered or unexported fields */},
	Birthday:     whereHelpertime_Time{/* contains filtered or unexported fields */},
	BloodType:    whereHelperstring{/* contains filtered or unexported fields */},
	HeightCM:     whereHelperfloat64{/* contains filtered or unexported fields */},
	Generation:   whereHelperstring{/* contains filtered or unexported fields */},
	BlogURL:      whereHelpernull_String{/* contains filtered or unexported fields */},
	ImgURL:       whereHelpernull_String{/* contains filtered or unexported fields */},
	LocaleID:     whereHelperint{/* contains filtered or unexported fields */},
}
View Source
var MemberRels = struct {
	Group       string
	Blogs       string
	MemberInfos string
	MemberTags  string
	Positions   string
}{
	Group:       "Group",
	Blogs:       "Blogs",
	MemberInfos: "MemberInfos",
	MemberTags:  "MemberTags",
	Positions:   "Positions",
}

MemberRels is where relationship names are stored.

View Source
var MemberTableColumns = struct {
	MemberID string
	GroupID  string
	NameJa   string
	JoinedAt string
	LeftAt   string
}{
	MemberID: "members.member_id",
	GroupID:  "members.group_id",
	NameJa:   "members.name_ja",
	JoinedAt: "members.joined_at",
	LeftAt:   "members.left_at",
}
View Source
var MemberTagColumns = struct {
	MemberTagID string
	MemberID    string
	TagID       string
}{
	MemberTagID: "member_tag_id",
	MemberID:    "member_id",
	TagID:       "tag_id",
}
View Source
var MemberTagRels = struct {
	Member string
	Tag    string
}{
	Member: "Member",
	Tag:    "Tag",
}

MemberTagRels is where relationship names are stored.

View Source
var MemberTagTableColumns = struct {
	MemberTagID string
	MemberID    string
	TagID       string
}{
	MemberTagID: "member_tags.member_tag_id",
	MemberID:    "member_tags.member_id",
	TagID:       "member_tags.tag_id",
}
View Source
var MemberTagWhere = struct {
	MemberTagID whereHelperint
	MemberID    whereHelperint
	TagID       whereHelperint
}{
	MemberTagID: whereHelperint{/* contains filtered or unexported fields */},
	MemberID:    whereHelperint{/* contains filtered or unexported fields */},
	TagID:       whereHelperint{/* contains filtered or unexported fields */},
}
View Source
var MemberWhere = struct {
	MemberID whereHelperint
	GroupID  whereHelperint
	NameJa   whereHelperstring
	JoinedAt whereHelpernull_Time
	LeftAt   whereHelpernull_Time
}{
	MemberID: whereHelperint{/* contains filtered or unexported fields */},
	GroupID:  whereHelperint{/* contains filtered or unexported fields */},
	NameJa:   whereHelperstring{/* contains filtered or unexported fields */},
	JoinedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
	LeftAt:   whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var PositionColumns = struct {
	PositionID string
	SongID     string
	MemberID   string
	Position   string
	IsCenter   string
}{
	PositionID: "position_id",
	SongID:     "song_id",
	MemberID:   "member_id",
	Position:   "position",
	IsCenter:   "is_center",
}
View Source
var PositionRels = struct {
	Member string
	Song   string
}{
	Member: "Member",
	Song:   "Song",
}

PositionRels is where relationship names are stored.

View Source
var PositionTableColumns = struct {
	PositionID string
	SongID     string
	MemberID   string
	Position   string
	IsCenter   string
}{
	PositionID: "positions.position_id",
	SongID:     "positions.song_id",
	MemberID:   "positions.member_id",
	Position:   "positions.position",
	IsCenter:   "positions.is_center",
}
View Source
var PositionWhere = struct {
	PositionID whereHelperint
	SongID     whereHelperint
	MemberID   whereHelperint
	Position   whereHelperstring
	IsCenter   whereHelpernull_Bool
}{
	PositionID: whereHelperint{/* contains filtered or unexported fields */},
	SongID:     whereHelperint{/* contains filtered or unexported fields */},
	MemberID:   whereHelperint{/* contains filtered or unexported fields */},
	Position:   whereHelperstring{/* contains filtered or unexported fields */},
	IsCenter:   whereHelpernull_Bool{/* contains filtered or unexported fields */},
}
View Source
var SchemaMigrationColumns = struct {
	Version string
	Dirty   string
}{
	Version: "version",
	Dirty:   "dirty",
}
View Source
var SchemaMigrationRels = struct {
}{}

SchemaMigrationRels is where relationship names are stored.

View Source
var SchemaMigrationTableColumns = struct {
	Version string
	Dirty   string
}{
	Version: "schema_migrations.version",
	Dirty:   "schema_migrations.dirty",
}
View Source
var SchemaMigrationWhere = struct {
	Version whereHelperint64
	Dirty   whereHelperbool
}{
	Version: whereHelperint64{/* contains filtered or unexported fields */},
	Dirty:   whereHelperbool{/* contains filtered or unexported fields */},
}
View Source
var SongColumns = struct {
	SongID      string
	GroupID     string
	FormationID string
	Title       string
	Single      string
}{
	SongID:      "song_id",
	GroupID:     "group_id",
	FormationID: "formation_id",
	Title:       "title",
	Single:      "single",
}
View Source
var SongRels = struct {
	Formation string
	Group     string
	Positions string
}{
	Formation: "Formation",
	Group:     "Group",
	Positions: "Positions",
}

SongRels is where relationship names are stored.

View Source
var SongTableColumns = struct {
	SongID      string
	GroupID     string
	FormationID string
	Title       string
	Single      string
}{
	SongID:      "songs.song_id",
	GroupID:     "songs.group_id",
	FormationID: "songs.formation_id",
	Title:       "songs.title",
	Single:      "songs.single",
}
View Source
var SongWhere = struct {
	SongID      whereHelperint
	GroupID     whereHelperint
	FormationID whereHelperint
	Title       whereHelperstring
	Single      whereHelperstring
}{
	SongID:      whereHelperint{/* contains filtered or unexported fields */},
	GroupID:     whereHelperint{/* contains filtered or unexported fields */},
	FormationID: whereHelperint{/* contains filtered or unexported fields */},
	Title:       whereHelperstring{/* contains filtered or unexported fields */},
	Single:      whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var TableNames = struct {
	APIKeys          string
	Blogs            string
	Formations       string
	Groups           string
	Locales          string
	MemberInfos      string
	MemberTags       string
	Members          string
	Positions        string
	SchemaMigrations string
	Songs            string
	Tags             string
}{
	APIKeys:          "api_keys",
	Blogs:            "blogs",
	Formations:       "formations",
	Groups:           "groups",
	Locales:          "locales",
	MemberInfos:      "member_infos",
	MemberTags:       "member_tags",
	Members:          "members",
	Positions:        "positions",
	SchemaMigrations: "schema_migrations",
	Songs:            "songs",
	Tags:             "tags",
}
View Source
var TagColumns = struct {
	TagID   string
	TagName string
}{
	TagID:   "tag_id",
	TagName: "tag_name",
}
View Source
var TagRels = struct {
	MemberTags string
}{
	MemberTags: "MemberTags",
}

TagRels is where relationship names are stored.

View Source
var TagTableColumns = struct {
	TagID   string
	TagName string
}{
	TagID:   "tags.tag_id",
	TagName: "tags.tag_name",
}
View Source
var TagWhere = struct {
	TagID   whereHelperint
	TagName whereHelperstring
}{
	TagID:   whereHelperint{/* contains filtered or unexported fields */},
	TagName: whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var ViewNames = struct {
}{}

Functions

func APIKeyExists

func APIKeyExists(ctx context.Context, exec boil.ContextExecutor, keyID int) (bool, error)

APIKeyExists checks if the APIKey row exists.

func APIKeys

func APIKeys(mods ...qm.QueryMod) apiKeyQuery

APIKeys retrieves all the records using an executor.

func AddAPIKeyHook

func AddAPIKeyHook(hookPoint boil.HookPoint, apiKeyHook APIKeyHook)

AddAPIKeyHook registers your hook function for all future operations.

func AddBlogHook

func AddBlogHook(hookPoint boil.HookPoint, blogHook BlogHook)

AddBlogHook registers your hook function for all future operations.

func AddFormationHook

func AddFormationHook(hookPoint boil.HookPoint, formationHook FormationHook)

AddFormationHook 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 AddLocaleHook

func AddLocaleHook(hookPoint boil.HookPoint, localeHook LocaleHook)

AddLocaleHook registers your hook function for all future operations.

func AddMemberHook

func AddMemberHook(hookPoint boil.HookPoint, memberHook MemberHook)

AddMemberHook registers your hook function for all future operations.

func AddMemberInfoHook

func AddMemberInfoHook(hookPoint boil.HookPoint, memberInfoHook MemberInfoHook)

AddMemberInfoHook registers your hook function for all future operations.

func AddMemberTagHook

func AddMemberTagHook(hookPoint boil.HookPoint, memberTagHook MemberTagHook)

AddMemberTagHook registers your hook function for all future operations.

func AddPositionHook

func AddPositionHook(hookPoint boil.HookPoint, positionHook PositionHook)

AddPositionHook registers your hook function for all future operations.

func AddSchemaMigrationHook

func AddSchemaMigrationHook(hookPoint boil.HookPoint, schemaMigrationHook SchemaMigrationHook)

AddSchemaMigrationHook registers your hook function for all future operations.

func AddSongHook

func AddSongHook(hookPoint boil.HookPoint, songHook SongHook)

AddSongHook 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 BlogExists

func BlogExists(ctx context.Context, exec boil.ContextExecutor, blogID int) (bool, error)

BlogExists checks if the Blog row exists.

func Blogs

func Blogs(mods ...qm.QueryMod) blogQuery

Blogs retrieves all the records using an executor.

func FormationExists

func FormationExists(ctx context.Context, exec boil.ContextExecutor, formationID int) (bool, error)

FormationExists checks if the Formation row exists.

func Formations

func Formations(mods ...qm.QueryMod) formationQuery

Formations retrieves all the records using an executor.

func GroupExists

func GroupExists(ctx context.Context, exec boil.ContextExecutor, groupID 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 LocaleExists

func LocaleExists(ctx context.Context, exec boil.ContextExecutor, localeID int) (bool, error)

LocaleExists checks if the Locale row exists.

func Locales

func Locales(mods ...qm.QueryMod) localeQuery

Locales retrieves all the records using an executor.

func MemberExists

func MemberExists(ctx context.Context, exec boil.ContextExecutor, memberID int) (bool, error)

MemberExists checks if the Member row exists.

func MemberInfoExists

func MemberInfoExists(ctx context.Context, exec boil.ContextExecutor, memberInfoID int) (bool, error)

MemberInfoExists checks if the MemberInfo row exists.

func MemberInfos

func MemberInfos(mods ...qm.QueryMod) memberInfoQuery

MemberInfos retrieves all the records using an executor.

func MemberTagExists

func MemberTagExists(ctx context.Context, exec boil.ContextExecutor, memberTagID int) (bool, error)

MemberTagExists checks if the MemberTag row exists.

func MemberTags

func MemberTags(mods ...qm.QueryMod) memberTagQuery

MemberTags retrieves all the records using an executor.

func Members

func Members(mods ...qm.QueryMod) memberQuery

Members 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 PositionExists

func PositionExists(ctx context.Context, exec boil.ContextExecutor, positionID int) (bool, error)

PositionExists checks if the Position row exists.

func Positions

func Positions(mods ...qm.QueryMod) positionQuery

Positions retrieves all the records using an executor.

func SchemaMigrationExists

func SchemaMigrationExists(ctx context.Context, exec boil.ContextExecutor, version int64) (bool, error)

SchemaMigrationExists checks if the SchemaMigration row exists.

func SchemaMigrations

func SchemaMigrations(mods ...qm.QueryMod) schemaMigrationQuery

SchemaMigrations retrieves all the records using an executor.

func SongExists

func SongExists(ctx context.Context, exec boil.ContextExecutor, songID int) (bool, error)

SongExists checks if the Song row exists.

func Songs

func Songs(mods ...qm.QueryMod) songQuery

Songs retrieves all the records using an executor.

func TagExists

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

TagExists checks if the Tag row exists.

func Tags

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

Tags retrieves all the records using an executor.

Types

type APIKey

type APIKey struct {
	KeyID  int    `boil:"key_id" json:"key_id" toml:"key_id" yaml:"key_id"`
	KeyVal string `boil:"key_val" json:"key_val" toml:"key_val" yaml:"key_val"`

	R *apiKeyR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L apiKeyL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

APIKey is an object representing the database table.

func FindAPIKey

func FindAPIKey(ctx context.Context, exec boil.ContextExecutor, keyID int, selectCols ...string) (*APIKey, error)

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

func (*APIKey) Delete

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

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

func (*APIKey) Insert

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

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

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

func (*APIKey) Update

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

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

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

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

type APIKeyHook

type APIKeyHook func(context.Context, boil.ContextExecutor, *APIKey) error

APIKeyHook is the signature for custom APIKey hook methods

type APIKeySlice

type APIKeySlice []*APIKey

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

func (APIKeySlice) DeleteAll

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

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

func (*APIKeySlice) ReloadAll

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

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

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

type Blog

type Blog struct {
	BlogID        int    `boil:"blog_id" json:"blog_id" toml:"blog_id" yaml:"blog_id"`
	MemberID      int    `boil:"member_id" json:"member_id" toml:"member_id" yaml:"member_id"`
	BlogURL       string `boil:"blog_url" json:"blog_url" toml:"blog_url" yaml:"blog_url"`
	LastBlogImg   string `boil:"last_blog_img" json:"last_blog_img" toml:"last_blog_img" yaml:"last_blog_img"`
	LastUpdatedAt string `boil:"last_updated_at" json:"last_updated_at" toml:"last_updated_at" yaml:"last_updated_at"`

	R *blogR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L blogL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Blog is an object representing the database table.

func FindBlog

func FindBlog(ctx context.Context, exec boil.ContextExecutor, blogID int, selectCols ...string) (*Blog, error)

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

func (*Blog) Delete

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

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

func (*Blog) Insert

func (o *Blog) 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 (*Blog) Member

func (o *Blog) Member(mods ...qm.QueryMod) memberQuery

Member pointed to by the foreign key.

func (*Blog) Reload

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

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

func (*Blog) SetMember

func (o *Blog) SetMember(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Member) error

SetMember of the blog to the related item. Sets o.R.Member to related. Adds o to related.R.Blogs.

func (*Blog) Update

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

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

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

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

type BlogHook

type BlogHook func(context.Context, boil.ContextExecutor, *Blog) error

BlogHook is the signature for custom Blog hook methods

type BlogSlice

type BlogSlice []*Blog

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

func (BlogSlice) DeleteAll

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

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

func (*BlogSlice) ReloadAll

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

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

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

type Formation

type Formation struct {
	FormationID  int        `boil:"formation_id" json:"formation_id" toml:"formation_id" yaml:"formation_id"`
	FirstRowNum  null.Int16 `boil:"first_row_num" json:"first_row_num,omitempty" toml:"first_row_num" yaml:"first_row_num,omitempty"`
	SecondRowNum null.Int16 `boil:"second_row_num" json:"second_row_num,omitempty" toml:"second_row_num" yaml:"second_row_num,omitempty"`
	ThirdRowNum  null.Int16 `boil:"third_row_num" json:"third_row_num,omitempty" toml:"third_row_num" yaml:"third_row_num,omitempty"`

	R *formationR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L formationL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Formation is an object representing the database table.

func FindFormation

func FindFormation(ctx context.Context, exec boil.ContextExecutor, formationID int, selectCols ...string) (*Formation, error)

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

func (*Formation) AddSongs

func (o *Formation) AddSongs(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Song) error

AddSongs adds the given related objects to the existing relationships of the formation, optionally inserting them as new records. Appends related to o.R.Songs. Sets related.R.Formation appropriately.

func (*Formation) Delete

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

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

func (*Formation) Insert

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

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

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

func (*Formation) Songs

func (o *Formation) Songs(mods ...qm.QueryMod) songQuery

Songs retrieves all the song's Songs with an executor.

func (*Formation) Update

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

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

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

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

type FormationHook

type FormationHook func(context.Context, boil.ContextExecutor, *Formation) error

FormationHook is the signature for custom Formation hook methods

type FormationSlice

type FormationSlice []*Formation

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

func (FormationSlice) DeleteAll

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

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

func (*FormationSlice) ReloadAll

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

func (o FormationSlice) 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 {
	GroupID   int    `boil:"group_id" json:"group_id" toml:"group_id" yaml:"group_id"`
	GroupName string `boil:"group_name" json:"group_name" toml:"group_name" yaml:"group_name"`

	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, groupID 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) AddMembers

func (o *Group) AddMembers(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Member) error

AddMembers adds the given related objects to the existing relationships of the group, optionally inserting them as new records. Appends related to o.R.Members. Sets related.R.Group appropriately.

func (*Group) AddSongs

func (o *Group) AddSongs(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Song) error

AddSongs adds the given related objects to the existing relationships of the group, optionally inserting them as new records. Appends related to o.R.Songs. Sets related.R.Group appropriately.

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

func (o *Group) Members(mods ...qm.QueryMod) memberQuery

Members retrieves all the member's Members with an executor.

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

func (o *Group) Songs(mods ...qm.QueryMod) songQuery

Songs retrieves all the song's Songs 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, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

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

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

type Locale struct {
	LocaleID int    `boil:"locale_id" json:"locale_id" toml:"locale_id" yaml:"locale_id"`
	Name     string `boil:"name" json:"name" toml:"name" yaml:"name"`

	R *localeR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L localeL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Locale is an object representing the database table.

func FindLocale

func FindLocale(ctx context.Context, exec boil.ContextExecutor, localeID int, selectCols ...string) (*Locale, error)

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

func (*Locale) AddMemberInfos

func (o *Locale) AddMemberInfos(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*MemberInfo) error

AddMemberInfos adds the given related objects to the existing relationships of the locale, optionally inserting them as new records. Appends related to o.R.MemberInfos. Sets related.R.Locale appropriately.

func (*Locale) Delete

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

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

func (*Locale) Insert

func (o *Locale) 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 (*Locale) MemberInfos

func (o *Locale) MemberInfos(mods ...qm.QueryMod) memberInfoQuery

MemberInfos retrieves all the member_info's MemberInfos with an executor.

func (*Locale) Reload

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

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

func (*Locale) Update

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

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

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

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

type LocaleHook

type LocaleHook func(context.Context, boil.ContextExecutor, *Locale) error

LocaleHook is the signature for custom Locale hook methods

type LocaleSlice

type LocaleSlice []*Locale

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

func (LocaleSlice) DeleteAll

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

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

func (*LocaleSlice) ReloadAll

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

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

type Member struct {
	MemberID int       `boil:"member_id" json:"member_id" toml:"member_id" yaml:"member_id"`
	GroupID  int       `boil:"group_id" json:"group_id" toml:"group_id" yaml:"group_id"`
	NameJa   string    `boil:"name_ja" json:"name_ja" toml:"name_ja" yaml:"name_ja"`
	JoinedAt null.Time `boil:"joined_at" json:"joined_at,omitempty" toml:"joined_at" yaml:"joined_at,omitempty"`
	LeftAt   null.Time `boil:"left_at" json:"left_at,omitempty" toml:"left_at" yaml:"left_at,omitempty"`

	R *memberR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L memberL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Member is an object representing the database table.

func FindMember

func FindMember(ctx context.Context, exec boil.ContextExecutor, memberID int, selectCols ...string) (*Member, error)

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

func (*Member) AddBlogs

func (o *Member) AddBlogs(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Blog) error

AddBlogs adds the given related objects to the existing relationships of the member, optionally inserting them as new records. Appends related to o.R.Blogs. Sets related.R.Member appropriately.

func (*Member) AddMemberInfos

func (o *Member) AddMemberInfos(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*MemberInfo) error

AddMemberInfos adds the given related objects to the existing relationships of the member, optionally inserting them as new records. Appends related to o.R.MemberInfos. Sets related.R.Member appropriately.

func (*Member) AddMemberTags

func (o *Member) AddMemberTags(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*MemberTag) error

AddMemberTags adds the given related objects to the existing relationships of the member, optionally inserting them as new records. Appends related to o.R.MemberTags. Sets related.R.Member appropriately.

func (*Member) AddPositions

func (o *Member) AddPositions(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Position) error

AddPositions adds the given related objects to the existing relationships of the member, optionally inserting them as new records. Appends related to o.R.Positions. Sets related.R.Member appropriately.

func (*Member) Blogs

func (o *Member) Blogs(mods ...qm.QueryMod) blogQuery

Blogs retrieves all the blog's Blogs with an executor.

func (*Member) Delete

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

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

func (*Member) Group

func (o *Member) Group(mods ...qm.QueryMod) groupQuery

Group pointed to by the foreign key.

func (*Member) Insert

func (o *Member) 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 (*Member) MemberInfos

func (o *Member) MemberInfos(mods ...qm.QueryMod) memberInfoQuery

MemberInfos retrieves all the member_info's MemberInfos with an executor.

func (*Member) MemberTags

func (o *Member) MemberTags(mods ...qm.QueryMod) memberTagQuery

MemberTags retrieves all the member_tag's MemberTags with an executor.

func (*Member) Positions

func (o *Member) Positions(mods ...qm.QueryMod) positionQuery

Positions retrieves all the position's Positions with an executor.

func (*Member) Reload

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

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

func (*Member) SetGroup

func (o *Member) SetGroup(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Group) error

SetGroup of the member to the related item. Sets o.R.Group to related. Adds o to related.R.Members.

func (*Member) Update

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

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

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

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

type MemberHook

type MemberHook func(context.Context, boil.ContextExecutor, *Member) error

MemberHook is the signature for custom Member hook methods

type MemberInfo

type MemberInfo struct {
	MemberInfoID int         `boil:"member_info_id" json:"member_info_id" toml:"member_info_id" yaml:"member_info_id"`
	MemberID     int         `boil:"member_id" json:"member_id" toml:"member_id" yaml:"member_id"`
	Birthday     time.Time   `boil:"birthday" json:"birthday" toml:"birthday" yaml:"birthday"`
	BloodType    string      `boil:"blood_type" json:"blood_type" toml:"blood_type" yaml:"blood_type"`
	HeightCM     float64     `boil:"height_cm" json:"height_cm" toml:"height_cm" yaml:"height_cm"`
	Generation   string      `boil:"generation" json:"generation" toml:"generation" yaml:"generation"`
	BlogURL      null.String `boil:"blog_url" json:"blog_url,omitempty" toml:"blog_url" yaml:"blog_url,omitempty"`
	ImgURL       null.String `boil:"img_url" json:"img_url,omitempty" toml:"img_url" yaml:"img_url,omitempty"`
	LocaleID     int         `boil:"locale_id" json:"locale_id" toml:"locale_id" yaml:"locale_id"`

	R *memberInfoR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L memberInfoL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

MemberInfo is an object representing the database table.

func FindMemberInfo

func FindMemberInfo(ctx context.Context, exec boil.ContextExecutor, memberInfoID int, selectCols ...string) (*MemberInfo, error)

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

func (*MemberInfo) Delete

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

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

func (*MemberInfo) Insert

func (o *MemberInfo) 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 (*MemberInfo) Locale

func (o *MemberInfo) Locale(mods ...qm.QueryMod) localeQuery

Locale pointed to by the foreign key.

func (*MemberInfo) Member

func (o *MemberInfo) Member(mods ...qm.QueryMod) memberQuery

Member pointed to by the foreign key.

func (*MemberInfo) Reload

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

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

func (*MemberInfo) SetLocale

func (o *MemberInfo) SetLocale(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Locale) error

SetLocale of the memberInfo to the related item. Sets o.R.Locale to related. Adds o to related.R.MemberInfos.

func (*MemberInfo) SetMember

func (o *MemberInfo) SetMember(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Member) error

SetMember of the memberInfo to the related item. Sets o.R.Member to related. Adds o to related.R.MemberInfos.

func (*MemberInfo) Update

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

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

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

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

type MemberInfoHook

type MemberInfoHook func(context.Context, boil.ContextExecutor, *MemberInfo) error

MemberInfoHook is the signature for custom MemberInfo hook methods

type MemberInfoSlice

type MemberInfoSlice []*MemberInfo

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

func (MemberInfoSlice) DeleteAll

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

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

func (*MemberInfoSlice) ReloadAll

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

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

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

type MemberSlice

type MemberSlice []*Member

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

func (MemberSlice) DeleteAll

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

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

func (*MemberSlice) ReloadAll

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

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

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

type MemberTag

type MemberTag struct {
	MemberTagID int `boil:"member_tag_id" json:"member_tag_id" toml:"member_tag_id" yaml:"member_tag_id"`
	MemberID    int `boil:"member_id" json:"member_id" toml:"member_id" yaml:"member_id"`
	TagID       int `boil:"tag_id" json:"tag_id" toml:"tag_id" yaml:"tag_id"`

	R *memberTagR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L memberTagL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

MemberTag is an object representing the database table.

func FindMemberTag

func FindMemberTag(ctx context.Context, exec boil.ContextExecutor, memberTagID int, selectCols ...string) (*MemberTag, error)

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

func (*MemberTag) Delete

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

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

func (*MemberTag) Insert

func (o *MemberTag) 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 (*MemberTag) Member

func (o *MemberTag) Member(mods ...qm.QueryMod) memberQuery

Member pointed to by the foreign key.

func (*MemberTag) Reload

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

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

func (*MemberTag) SetMember

func (o *MemberTag) SetMember(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Member) error

SetMember of the memberTag to the related item. Sets o.R.Member to related. Adds o to related.R.MemberTags.

func (*MemberTag) SetTag

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

SetTag of the memberTag to the related item. Sets o.R.Tag to related. Adds o to related.R.MemberTags.

func (*MemberTag) Tag

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

Tag pointed to by the foreign key.

func (*MemberTag) Update

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

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

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

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

type MemberTagHook

type MemberTagHook func(context.Context, boil.ContextExecutor, *MemberTag) error

MemberTagHook is the signature for custom MemberTag hook methods

type MemberTagSlice

type MemberTagSlice []*MemberTag

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

func (MemberTagSlice) DeleteAll

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

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

func (*MemberTagSlice) ReloadAll

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

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

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

type Position

type Position struct {
	PositionID int       `boil:"position_id" json:"position_id" toml:"position_id" yaml:"position_id"`
	SongID     int       `boil:"song_id" json:"song_id" toml:"song_id" yaml:"song_id"`
	MemberID   int       `boil:"member_id" json:"member_id" toml:"member_id" yaml:"member_id"`
	Position   string    `boil:"position" json:"position" toml:"position" yaml:"position"`
	IsCenter   null.Bool `boil:"is_center" json:"is_center,omitempty" toml:"is_center" yaml:"is_center,omitempty"`

	R *positionR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L positionL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Position is an object representing the database table.

func FindPosition

func FindPosition(ctx context.Context, exec boil.ContextExecutor, positionID int, selectCols ...string) (*Position, error)

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

func (*Position) Delete

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

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

func (*Position) Insert

func (o *Position) 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 (*Position) Member

func (o *Position) Member(mods ...qm.QueryMod) memberQuery

Member pointed to by the foreign key.

func (*Position) Reload

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

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

func (*Position) SetMember

func (o *Position) SetMember(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Member) error

SetMember of the position to the related item. Sets o.R.Member to related. Adds o to related.R.Positions.

func (*Position) SetSong

func (o *Position) SetSong(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Song) error

SetSong of the position to the related item. Sets o.R.Song to related. Adds o to related.R.Positions.

func (*Position) Song

func (o *Position) Song(mods ...qm.QueryMod) songQuery

Song pointed to by the foreign key.

func (*Position) Update

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

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

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

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

type PositionHook

type PositionHook func(context.Context, boil.ContextExecutor, *Position) error

PositionHook is the signature for custom Position hook methods

type PositionSlice

type PositionSlice []*Position

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

func (PositionSlice) DeleteAll

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

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

func (*PositionSlice) ReloadAll

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

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

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

type SchemaMigration

type SchemaMigration struct {
	Version int64 `boil:"version" json:"version" toml:"version" yaml:"version"`
	Dirty   bool  `boil:"dirty" json:"dirty" toml:"dirty" yaml:"dirty"`

	R *schemaMigrationR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L schemaMigrationL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

SchemaMigration is an object representing the database table.

func FindSchemaMigration

func FindSchemaMigration(ctx context.Context, exec boil.ContextExecutor, version int64, selectCols ...string) (*SchemaMigration, error)

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

func (*SchemaMigration) Delete

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

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

func (*SchemaMigration) Insert

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

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

func (*SchemaMigration) Update

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

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

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

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

type SchemaMigrationHook

type SchemaMigrationHook func(context.Context, boil.ContextExecutor, *SchemaMigration) error

SchemaMigrationHook is the signature for custom SchemaMigration hook methods

type SchemaMigrationSlice

type SchemaMigrationSlice []*SchemaMigration

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

func (SchemaMigrationSlice) DeleteAll

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

func (*SchemaMigrationSlice) ReloadAll

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

func (SchemaMigrationSlice) UpdateAll

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

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

type Song

type Song struct {
	SongID      int    `boil:"song_id" json:"song_id" toml:"song_id" yaml:"song_id"`
	GroupID     int    `boil:"group_id" json:"group_id" toml:"group_id" yaml:"group_id"`
	FormationID int    `boil:"formation_id" json:"formation_id" toml:"formation_id" yaml:"formation_id"`
	Title       string `boil:"title" json:"title" toml:"title" yaml:"title"`
	Single      string `boil:"single" json:"single" toml:"single" yaml:"single"`

	R *songR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L songL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Song is an object representing the database table.

func FindSong

func FindSong(ctx context.Context, exec boil.ContextExecutor, songID int, selectCols ...string) (*Song, error)

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

func (*Song) AddPositions

func (o *Song) AddPositions(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Position) error

AddPositions adds the given related objects to the existing relationships of the song, optionally inserting them as new records. Appends related to o.R.Positions. Sets related.R.Song appropriately.

func (*Song) Delete

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

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

func (*Song) Formation

func (o *Song) Formation(mods ...qm.QueryMod) formationQuery

Formation pointed to by the foreign key.

func (*Song) Group

func (o *Song) Group(mods ...qm.QueryMod) groupQuery

Group pointed to by the foreign key.

func (*Song) Insert

func (o *Song) 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 (*Song) Positions

func (o *Song) Positions(mods ...qm.QueryMod) positionQuery

Positions retrieves all the position's Positions with an executor.

func (*Song) Reload

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

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

func (*Song) SetFormation

func (o *Song) SetFormation(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Formation) error

SetFormation of the song to the related item. Sets o.R.Formation to related. Adds o to related.R.Songs.

func (*Song) SetGroup

func (o *Song) SetGroup(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Group) error

SetGroup of the song to the related item. Sets o.R.Group to related. Adds o to related.R.Songs.

func (*Song) Update

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

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

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

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

type SongHook

type SongHook func(context.Context, boil.ContextExecutor, *Song) error

SongHook is the signature for custom Song hook methods

type SongSlice

type SongSlice []*Song

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

func (SongSlice) DeleteAll

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

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

func (*SongSlice) ReloadAll

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

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

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

type Tag

type Tag struct {
	TagID   int    `boil:"tag_id" json:"tag_id" toml:"tag_id" yaml:"tag_id"`
	TagName string `boil:"tag_name" json:"tag_name" toml:"tag_name" yaml:"tag_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, tagID 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 (*Tag) AddMemberTags

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

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

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

func (o *Tag) MemberTags(mods ...qm.QueryMod) memberTagQuery

MemberTags retrieves all the member_tag's MemberTags 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) 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) Upsert

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

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

type 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) ReloadAll

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

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

func (TagSlice) UpdateAll

func (o TagSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (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