Documentation ¶
Index ¶
- Variables
- func GuestListExists(exec boil.Executor, id int) (bool, error)
- func GuestListExistsG(id int) (bool, error)
- func GuestListExistsGP(id int) bool
- func GuestListExistsP(exec boil.Executor, id int) bool
- func GuestLists(exec boil.Executor, mods ...qm.QueryMod) guestListQuery
- func GuestListsG(mods ...qm.QueryMod) guestListQuery
- func NewQuery(exec boil.Executor, mods ...qm.QueryMod) *queries.Query
- func NewQueryG(mods ...qm.QueryMod) *queries.Query
- func Parties(exec boil.Executor, mods ...qm.QueryMod) partyQuery
- func PartiesG(mods ...qm.QueryMod) partyQuery
- func PartyExists(exec boil.Executor, id int) (bool, error)
- func PartyExistsG(id int) (bool, error)
- func PartyExistsGP(id int) bool
- func PartyExistsP(exec boil.Executor, id int) bool
- func Shuffle(playlist *[]Track) *[]Track
- func TrackListExists(exec boil.Executor, id int) (bool, error)
- func TrackListExistsG(id int) (bool, error)
- func TrackListExistsGP(id int) bool
- func TrackListExistsP(exec boil.Executor, id int) bool
- func TrackLists(exec boil.Executor, mods ...qm.QueryMod) trackListQuery
- func TrackListsG(mods ...qm.QueryMod) trackListQuery
- func UserExists(exec boil.Executor, id int64) (bool, error)
- func UserExistsG(id int64) (bool, error)
- func UserExistsGP(id int64) bool
- func UserExistsP(exec boil.Executor, id int64) bool
- func Users(exec boil.Executor, mods ...qm.QueryMod) userQuery
- func UsersG(mods ...qm.QueryMod) userQuery
- type CachedPlaylist
- type Guest
- type GuestList
- func FindGuestList(exec boil.Executor, id int, selectCols ...string) (*GuestList, error)
- func FindGuestListG(id int, selectCols ...string) (*GuestList, error)
- func FindGuestListGP(id int, selectCols ...string) *GuestList
- func FindGuestListP(exec boil.Executor, id int, selectCols ...string) *GuestList
- func (o *GuestList) AddGuestParties(exec boil.Executor, insert bool, related ...*Party) error
- func (o *GuestList) AddGuestPartiesG(insert bool, related ...*Party) error
- func (o *GuestList) AddGuestPartiesGP(insert bool, related ...*Party)
- func (o *GuestList) AddGuestPartiesP(exec boil.Executor, insert bool, related ...*Party)
- func (o *GuestList) Delete(exec boil.Executor) error
- func (o *GuestList) DeleteG() error
- func (o *GuestList) DeleteGP()
- func (o *GuestList) DeleteP(exec boil.Executor)
- func (o *GuestList) GuestParties(exec boil.Executor, mods ...qm.QueryMod) partyQuery
- func (o *GuestList) GuestPartiesG(mods ...qm.QueryMod) partyQuery
- func (o *GuestList) Insert(exec boil.Executor, whitelist ...string) error
- func (o *GuestList) InsertG(whitelist ...string) error
- func (o *GuestList) InsertGP(whitelist ...string)
- func (o *GuestList) InsertP(exec boil.Executor, whitelist ...string)
- func (o *GuestList) Reload(exec boil.Executor) error
- func (o *GuestList) ReloadG() error
- func (o *GuestList) ReloadGP()
- func (o *GuestList) ReloadP(exec boil.Executor)
- func (o *GuestList) Update(exec boil.Executor, whitelist ...string) error
- func (o *GuestList) UpdateG(whitelist ...string) error
- func (o *GuestList) UpdateGP(whitelist ...string)
- func (o *GuestList) UpdateP(exec boil.Executor, whitelist ...string)
- func (o *GuestList) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, ...) error
- func (o *GuestList) UpsertG(updateOnConflict bool, conflictColumns []string, updateColumns []string, ...) error
- func (o *GuestList) UpsertGP(updateOnConflict bool, conflictColumns []string, updateColumns []string, ...)
- func (o *GuestList) UpsertP(exec boil.Executor, updateOnConflict bool, conflictColumns []string, ...)
- type GuestListSlice
- func (o GuestListSlice) DeleteAll(exec boil.Executor) error
- func (o GuestListSlice) DeleteAllG() error
- func (o GuestListSlice) DeleteAllGP()
- func (o GuestListSlice) DeleteAllP(exec boil.Executor)
- func (o *GuestListSlice) ReloadAll(exec boil.Executor) error
- func (o *GuestListSlice) ReloadAllG() error
- func (o *GuestListSlice) ReloadAllGP()
- func (o *GuestListSlice) ReloadAllP(exec boil.Executor)
- func (o GuestListSlice) UpdateAll(exec boil.Executor, cols M) error
- func (o GuestListSlice) UpdateAllG(cols M) error
- func (o GuestListSlice) UpdateAllGP(cols M)
- func (o GuestListSlice) UpdateAllP(exec boil.Executor, cols M)
- type Link
- type Links
- type M
- type Meta
- type Party
- func (o *Party) Delete(exec boil.Executor) error
- func (o *Party) DeleteG() error
- func (o *Party) DeleteGP()
- func (o *Party) DeleteP(exec boil.Executor)
- func (o *Party) Guest(exec boil.Executor, mods ...qm.QueryMod) guestListQuery
- func (o *Party) GuestG(mods ...qm.QueryMod) guestListQuery
- func (o *Party) Guests() ([]Guest, error)
- func (o *Party) History(exec boil.Executor, mods ...qm.QueryMod) trackListQuery
- func (o *Party) HistoryG(mods ...qm.QueryMod) trackListQuery
- func (p *Party) HistoryTracks() (*[]Track, error)
- func (o *Party) Insert(exec boil.Executor, whitelist ...string) error
- func (o *Party) InsertG(whitelist ...string) error
- func (o *Party) InsertGP(whitelist ...string)
- func (o *Party) InsertP(exec boil.Executor, whitelist ...string)
- func (p *Party) Public() (PublicParty, error)
- func (o *Party) Queue(exec boil.Executor, mods ...qm.QueryMod) trackListQuery
- func (o *Party) QueueG(mods ...qm.QueryMod) trackListQuery
- func (p *Party) QueueTracks() (*[]Track, error)
- func (o *Party) Reload(exec boil.Executor) error
- func (o *Party) ReloadG() error
- func (o *Party) ReloadGP()
- func (o *Party) ReloadP(exec boil.Executor)
- func (o *Party) RemoveUser(exec boil.Executor, related *User) error
- func (o *Party) RemoveUserG(related *User) error
- func (o *Party) RemoveUserGP(related *User)
- func (o *Party) RemoveUserP(exec boil.Executor, related *User)
- func (o *Party) SetGuest(exec boil.Executor, insert bool, related *GuestList) error
- func (o *Party) SetGuestG(insert bool, related *GuestList) error
- func (o *Party) SetGuestGP(insert bool, related *GuestList)
- func (o *Party) SetGuestP(exec boil.Executor, insert bool, related *GuestList)
- func (o *Party) SetHistory(exec boil.Executor, insert bool, related *TrackList) error
- func (o *Party) SetHistoryG(insert bool, related *TrackList) error
- func (o *Party) SetHistoryGP(insert bool, related *TrackList)
- func (o *Party) SetHistoryP(exec boil.Executor, insert bool, related *TrackList)
- func (o *Party) SetQueue(exec boil.Executor, insert bool, related *TrackList) error
- func (o *Party) SetQueueG(insert bool, related *TrackList) error
- func (o *Party) SetQueueGP(insert bool, related *TrackList)
- func (o *Party) SetQueueP(exec boil.Executor, insert bool, related *TrackList)
- func (o *Party) SetUser(exec boil.Executor, insert bool, related *User) error
- func (o *Party) SetUserG(insert bool, related *User) error
- func (o *Party) SetUserGP(insert bool, related *User)
- func (o *Party) SetUserP(exec boil.Executor, insert bool, related *User)
- func (o *Party) Update(exec boil.Executor, whitelist ...string) error
- func (o *Party) UpdateG(whitelist ...string) error
- func (o *Party) UpdateGP(whitelist ...string)
- func (o *Party) UpdateGuestList(guests []Guest) error
- func (o *Party) UpdateP(exec boil.Executor, whitelist ...string)
- func (o *Party) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, ...) error
- func (o *Party) UpsertG(updateOnConflict bool, conflictColumns []string, updateColumns []string, ...) error
- func (o *Party) UpsertGP(updateOnConflict bool, conflictColumns []string, updateColumns []string, ...)
- func (o *Party) UpsertP(exec boil.Executor, updateOnConflict bool, conflictColumns []string, ...)
- func (o *Party) User(exec boil.Executor, mods ...qm.QueryMod) userQuery
- func (o *Party) UserG(mods ...qm.QueryMod) userQuery
- type PartySlice
- func (o PartySlice) DeleteAll(exec boil.Executor) error
- func (o PartySlice) DeleteAllG() error
- func (o PartySlice) DeleteAllGP()
- func (o PartySlice) DeleteAllP(exec boil.Executor)
- func (o *PartySlice) ReloadAll(exec boil.Executor) error
- func (o *PartySlice) ReloadAllG() error
- func (o *PartySlice) ReloadAllGP()
- func (o *PartySlice) ReloadAllP(exec boil.Executor)
- func (o PartySlice) UpdateAll(exec boil.Executor, cols M) error
- func (o PartySlice) UpdateAllG(cols M) error
- func (o PartySlice) UpdateAllGP(cols M)
- func (o PartySlice) UpdateAllP(exec boil.Executor, cols M)
- type PlayingTrack
- type Playlist
- type Playlists
- type PublicGuest
- type PublicParty
- type Relationship
- type Response
- type ResponseData
- type SpotifyToken
- type Track
- type TrackArtist
- type TrackList
- func FindTrackList(exec boil.Executor, id int, selectCols ...string) (*TrackList, error)
- func FindTrackListG(id int, selectCols ...string) (*TrackList, error)
- func FindTrackListGP(id int, selectCols ...string) *TrackList
- func FindTrackListP(exec boil.Executor, id int, selectCols ...string) *TrackList
- func (o *TrackList) AddHistoryParties(exec boil.Executor, insert bool, related ...*Party) error
- func (o *TrackList) AddHistoryPartiesG(insert bool, related ...*Party) error
- func (o *TrackList) AddHistoryPartiesGP(insert bool, related ...*Party)
- func (o *TrackList) AddHistoryPartiesP(exec boil.Executor, insert bool, related ...*Party)
- func (o *TrackList) AddQueueParties(exec boil.Executor, insert bool, related ...*Party) error
- func (o *TrackList) AddQueuePartiesG(insert bool, related ...*Party) error
- func (o *TrackList) AddQueuePartiesGP(insert bool, related ...*Party)
- func (o *TrackList) AddQueuePartiesP(exec boil.Executor, insert bool, related ...*Party)
- func (o *TrackList) Delete(exec boil.Executor) error
- func (o *TrackList) DeleteG() error
- func (o *TrackList) DeleteGP()
- func (o *TrackList) DeleteP(exec boil.Executor)
- func (o *TrackList) HistoryParties(exec boil.Executor, mods ...qm.QueryMod) partyQuery
- func (o *TrackList) HistoryPartiesG(mods ...qm.QueryMod) partyQuery
- func (o *TrackList) Insert(exec boil.Executor, whitelist ...string) error
- func (o *TrackList) InsertG(whitelist ...string) error
- func (o *TrackList) InsertGP(whitelist ...string)
- func (o *TrackList) InsertP(exec boil.Executor, whitelist ...string)
- func (o *TrackList) QueueParties(exec boil.Executor, mods ...qm.QueryMod) partyQuery
- func (o *TrackList) QueuePartiesG(mods ...qm.QueryMod) partyQuery
- func (o *TrackList) Reload(exec boil.Executor) error
- func (o *TrackList) ReloadG() error
- func (o *TrackList) ReloadGP()
- func (o *TrackList) ReloadP(exec boil.Executor)
- func (list *TrackList) Tracks() []Track
- func (o *TrackList) Update(exec boil.Executor, whitelist ...string) error
- func (o *TrackList) UpdateG(whitelist ...string) error
- func (o *TrackList) UpdateGP(whitelist ...string)
- func (o *TrackList) UpdateP(exec boil.Executor, whitelist ...string)
- func (o *TrackList) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, ...) error
- func (o *TrackList) UpsertG(updateOnConflict bool, conflictColumns []string, updateColumns []string, ...) error
- func (o *TrackList) UpsertGP(updateOnConflict bool, conflictColumns []string, updateColumns []string, ...)
- func (o *TrackList) UpsertP(exec boil.Executor, updateOnConflict bool, conflictColumns []string, ...)
- type TrackListSlice
- func (o TrackListSlice) DeleteAll(exec boil.Executor) error
- func (o TrackListSlice) DeleteAllG() error
- func (o TrackListSlice) DeleteAllGP()
- func (o TrackListSlice) DeleteAllP(exec boil.Executor)
- func (o *TrackListSlice) ReloadAll(exec boil.Executor) error
- func (o *TrackListSlice) ReloadAllG() error
- func (o *TrackListSlice) ReloadAllGP()
- func (o *TrackListSlice) ReloadAllP(exec boil.Executor)
- func (o TrackListSlice) UpdateAll(exec boil.Executor, cols M) error
- func (o TrackListSlice) UpdateAllG(cols M) error
- func (o TrackListSlice) UpdateAllGP(cols M)
- func (o TrackListSlice) UpdateAllP(exec boil.Executor, cols M)
- type User
- func (o *User) Delete(exec boil.Executor) error
- func (o *User) DeleteG() error
- func (o *User) DeleteGP()
- func (o *User) DeleteP(exec boil.Executor)
- func (o *User) Insert(exec boil.Executor, whitelist ...string) error
- func (o *User) InsertG(whitelist ...string) error
- func (o *User) InsertGP(whitelist ...string)
- func (o *User) InsertP(exec boil.Executor, whitelist ...string)
- func (o *User) Party(exec boil.Executor, mods ...qm.QueryMod) partyQuery
- func (o *User) PartyG(mods ...qm.QueryMod) partyQuery
- func (o *User) Reload(exec boil.Executor) error
- func (o *User) ReloadG() error
- func (o *User) ReloadGP()
- func (o *User) ReloadP(exec boil.Executor)
- func (o *User) RemoveParty(exec boil.Executor, related *Party) error
- func (o *User) RemovePartyG(related *Party) error
- func (o *User) RemovePartyGP(related *Party)
- func (o *User) RemovePartyP(exec boil.Executor, related *Party)
- func (o *User) SetParty(exec boil.Executor, insert bool, related *Party) error
- func (o *User) SetPartyG(insert bool, related *Party) error
- func (o *User) SetPartyGP(insert bool, related *Party)
- func (o *User) SetPartyP(exec boil.Executor, insert bool, related *Party)
- func (o *User) Update(exec boil.Executor, whitelist ...string) error
- func (o *User) UpdateG(whitelist ...string) error
- func (o *User) UpdateGP(whitelist ...string)
- func (o *User) UpdateP(exec boil.Executor, whitelist ...string)
- func (o *User) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, ...) error
- func (o *User) UpsertG(updateOnConflict bool, conflictColumns []string, updateColumns []string, ...) error
- func (o *User) UpsertGP(updateOnConflict bool, conflictColumns []string, updateColumns []string, ...)
- func (o *User) UpsertP(exec boil.Executor, updateOnConflict bool, conflictColumns []string, ...)
- type UserSlice
- func (o UserSlice) DeleteAll(exec boil.Executor) error
- func (o UserSlice) DeleteAllG() error
- func (o UserSlice) DeleteAllGP()
- func (o UserSlice) DeleteAllP(exec boil.Executor)
- func (o *UserSlice) ReloadAll(exec boil.Executor) error
- func (o *UserSlice) ReloadAllG() error
- func (o *UserSlice) ReloadAllGP()
- func (o *UserSlice) ReloadAllP(exec boil.Executor)
- func (o UserSlice) UpdateAll(exec boil.Executor, cols M) error
- func (o UserSlice) UpdateAllG(cols M) error
- func (o UserSlice) UpdateAllGP(cols M)
- func (o UserSlice) UpdateAllP(exec boil.Executor, cols M)
Constants ¶
This section is empty.
Variables ¶
var EmptyRespose = Response{}
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.
Functions ¶
func GuestListExists ¶
GuestListExists checks if the GuestList row exists.
func GuestListExistsG ¶
GuestListExistsG checks if the GuestList row exists.
func GuestListExistsGP ¶
GuestListExistsGP checks if the GuestList row exists. Panics on error.
func GuestListExistsP ¶
GuestListExistsP checks if the GuestList row exists. Panics on error.
func GuestLists ¶
GuestLists retrieves all the records using an executor.
func GuestListsG ¶
GuestListsG retrieves all records.
func PartyExists ¶
PartyExists checks if the Party row exists.
func PartyExistsG ¶
PartyExistsG checks if the Party row exists.
func PartyExistsGP ¶
PartyExistsGP checks if the Party row exists. Panics on error.
func PartyExistsP ¶
PartyExistsP checks if the Party row exists. Panics on error.
func TrackListExists ¶
TrackListExists checks if the TrackList row exists.
func TrackListExistsG ¶
TrackListExistsG checks if the TrackList row exists.
func TrackListExistsGP ¶
TrackListExistsGP checks if the TrackList row exists. Panics on error.
func TrackListExistsP ¶
TrackListExistsP checks if the TrackList row exists. Panics on error.
func TrackLists ¶
TrackLists retrieves all the records using an executor.
func TrackListsG ¶
TrackListsG retrieves all records.
func UserExists ¶
UserExists checks if the User row exists.
func UserExistsG ¶
UserExistsG checks if the User row exists.
func UserExistsGP ¶
UserExistsGP checks if the User row exists. Panics on error.
func UserExistsP ¶
UserExistsP checks if the User row exists. Panics on error.
Types ¶
type CachedPlaylist ¶
type Guest ¶
type Guest struct { Name string `json:"name"` Alias string `json:"alias"` CheckedIn bool `json:"checked_in"` Token string `json:"token"` }
func (Guest) Public ¶
func (g Guest) Public() PublicGuest
type GuestList ¶
type GuestList struct { ID int `boil:"id" json:"id" toml:"id" yaml:"id"` Data types.JSON `boil:"data" json:"data" toml:"data" yaml:"data"` R *guestListR `boil:"-" json:"-" toml:"-" yaml:"-"` L guestListL `boil:"-" json:"-" toml:"-" yaml:"-"` }
GuestList is an object representing the database table.
func FindGuestList ¶
FindGuestList retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindGuestListG ¶
FindGuestListG retrieves a single record by ID.
func FindGuestListGP ¶
FindGuestListGP retrieves a single record by ID, and panics on error.
func FindGuestListP ¶
FindGuestListP retrieves a single record by ID with an executor, and panics on error.
func (*GuestList) AddGuestParties ¶
AddGuestParties adds the given related objects to the existing relationships of the guest_list, optionally inserting them as new records. Appends related to o.R.GuestParties. Sets related.R.Guest appropriately.
func (*GuestList) AddGuestPartiesG ¶
AddGuestPartiesG adds the given related objects to the existing relationships of the guest_list, optionally inserting them as new records. Appends related to o.R.GuestParties. Sets related.R.Guest appropriately. Uses the global database handle.
func (*GuestList) AddGuestPartiesGP ¶
AddGuestPartiesGP adds the given related objects to the existing relationships of the guest_list, optionally inserting them as new records. Appends related to o.R.GuestParties. Sets related.R.Guest appropriately. Uses the global database handle and panics on error.
func (*GuestList) AddGuestPartiesP ¶
AddGuestPartiesP adds the given related objects to the existing relationships of the guest_list, optionally inserting them as new records. Appends related to o.R.GuestParties. Sets related.R.Guest appropriately. Panics on error.
func (*GuestList) Delete ¶
Delete deletes a single GuestList record with an executor. Delete will match against the primary key column to find the record to delete.
func (*GuestList) DeleteG ¶
DeleteG deletes a single GuestList record. DeleteG will match against the primary key column to find the record to delete.
func (*GuestList) DeleteGP ¶
func (o *GuestList) DeleteGP()
DeleteGP deletes a single GuestList record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.
func (*GuestList) DeleteP ¶
DeleteP deletes a single GuestList record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.
func (*GuestList) GuestParties ¶
GuestParties retrieves all the party's party with an executor via guests_id column.
func (*GuestList) GuestPartiesG ¶
GuestPartiesG retrieves all the party's party via guests_id column.
func (*GuestList) Insert ¶
Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)
func (*GuestList) InsertGP ¶
InsertGP a single record, and panics on error. See Insert for whitelist behavior description.
func (*GuestList) InsertP ¶
InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.
func (*GuestList) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*GuestList) ReloadGP ¶
func (o *GuestList) ReloadGP()
ReloadGP refetches the object from the database and panics on error.
func (*GuestList) ReloadP ¶
ReloadP refetches the object from the database with an executor. Panics on error.
func (*GuestList) Update ¶
Update uses an executor to update the GuestList. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*GuestList) UpdateG ¶
UpdateG a single GuestList record. See Update for whitelist behavior description.
func (*GuestList) UpdateGP ¶
UpdateGP a single GuestList record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.
func (*GuestList) UpdateP ¶
UpdateP uses an executor to update the GuestList, and panics on error. See Update for whitelist behavior description.
func (*GuestList) Upsert ¶
func (o *GuestList) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict.
func (*GuestList) UpsertG ¶
func (o *GuestList) UpsertG(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error
UpsertG attempts an insert, and does an update or ignore on conflict.
type GuestListSlice ¶
type GuestListSlice []*GuestList
GuestListSlice is an alias for a slice of pointers to GuestList. This should generally be used opposed to []GuestList.
func (GuestListSlice) DeleteAll ¶
func (o GuestListSlice) DeleteAll(exec boil.Executor) error
DeleteAll deletes all rows in the slice, using an executor.
func (GuestListSlice) DeleteAllG ¶
func (o GuestListSlice) DeleteAllG() error
DeleteAllG deletes all rows in the slice.
func (GuestListSlice) DeleteAllGP ¶
func (o GuestListSlice) DeleteAllGP()
DeleteAllGP deletes all rows in the slice, and panics on error.
func (GuestListSlice) DeleteAllP ¶
func (o GuestListSlice) DeleteAllP(exec boil.Executor)
DeleteAllP deletes all rows in the slice, using an executor, and panics on error.
func (*GuestListSlice) ReloadAll ¶
func (o *GuestListSlice) ReloadAll(exec boil.Executor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (*GuestListSlice) ReloadAllG ¶
func (o *GuestListSlice) ReloadAllG() error
ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (*GuestListSlice) ReloadAllGP ¶
func (o *GuestListSlice) ReloadAllGP()
ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.
func (*GuestListSlice) ReloadAllP ¶
func (o *GuestListSlice) ReloadAllP(exec boil.Executor)
ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.
func (GuestListSlice) UpdateAll ¶
func (o GuestListSlice) UpdateAll(exec boil.Executor, cols M) error
UpdateAll updates all rows with the specified column values, using an executor.
func (GuestListSlice) UpdateAllG ¶
func (o GuestListSlice) UpdateAllG(cols M) error
UpdateAllG updates all rows with the specified column values.
func (GuestListSlice) UpdateAllGP ¶
func (o GuestListSlice) UpdateAllGP(cols M)
UpdateAllGP updates all rows with the specified column values, and panics on error.
func (GuestListSlice) UpdateAllP ¶
func (o GuestListSlice) UpdateAllP(exec boil.Executor, cols M)
UpdateAllP updates all rows with the specified column values, and panics on error.
type M ¶
type M map[string]interface{}
M type is for providing columns and column values to UpdateAll.
type Party ¶
type Party struct { ID int `boil:"id" json:"id" toml:"id" yaml:"id"` Location types.JSON `boil:"location" json:"location" toml:"location" yaml:"location"` RoomCode string `boil:"room_code" json:"room_code" toml:"room_code" yaml:"room_code"` Ended bool `boil:"ended" json:"ended" toml:"ended" yaml:"ended"` CurrentTrack null.JSON `boil:"current_track" json:"current_track,omitempty" toml:"current_track" yaml:"current_track,omitempty"` QueueID int `boil:"queue_id" json:"queue_id" toml:"queue_id" yaml:"queue_id"` HistoryID int `boil:"history_id" json:"history_id" toml:"history_id" yaml:"history_id"` GuestsID int `boil:"guests_id" json:"guests_id" toml:"guests_id" yaml:"guests_id"` R *partyR `boil:"-" json:"-" toml:"-" yaml:"-"` L partyL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Party is an object representing the database table.
func FindParty ¶
FindParty retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindPartyG ¶
FindPartyG retrieves a single record by ID.
func FindPartyGP ¶
FindPartyGP retrieves a single record by ID, and panics on error.
func FindPartyP ¶
FindPartyP retrieves a single record by ID with an executor, and panics on error.
func (*Party) Delete ¶
Delete deletes a single Party record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Party) DeleteG ¶
DeleteG deletes a single Party record. DeleteG will match against the primary key column to find the record to delete.
func (*Party) DeleteGP ¶
func (o *Party) DeleteGP()
DeleteGP deletes a single Party record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.
func (*Party) DeleteP ¶
DeleteP deletes a single Party record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.
func (*Party) HistoryTracks ¶
HistoryTracks gets this party's history track list
func (*Party) Insert ¶
Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)
func (*Party) InsertGP ¶
InsertGP a single record, and panics on error. See Insert for whitelist behavior description.
func (*Party) InsertP ¶
InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.
func (*Party) Public ¶
func (p *Party) Public() (PublicParty, error)
func (*Party) QueueTracks ¶
QueueTracks gets this party's queue track list
func (*Party) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Party) ReloadGP ¶
func (o *Party) ReloadGP()
ReloadGP refetches the object from the database and panics on error.
func (*Party) ReloadP ¶
ReloadP refetches the object from the database with an executor. Panics on error.
func (*Party) RemoveUser ¶
RemoveUser relationship. Sets o.R.User to nil. Removes o from all passed in related items' relationships struct (Optional).
func (*Party) RemoveUserG ¶
RemoveUserG relationship. Sets o.R.User to nil. Removes o from all passed in related items' relationships struct (Optional). Uses the global database handle.
func (*Party) RemoveUserGP ¶
RemoveUserGP relationship. Sets o.R.User to nil. Removes o from all passed in related items' relationships struct (Optional). Uses the global database handle and panics on error.
func (*Party) RemoveUserP ¶
RemoveUserP relationship. Sets o.R.User to nil. Removes o from all passed in related items' relationships struct (Optional). Panics on error.
func (*Party) SetGuest ¶
SetGuest of the party to the related item. Sets o.R.Guest to related. Adds o to related.R.GuestParties.
func (*Party) SetGuestG ¶
SetGuestG of the party to the related item. Sets o.R.Guest to related. Adds o to related.R.GuestParties. Uses the global database handle.
func (*Party) SetGuestGP ¶
SetGuestGP of the party to the related item. Sets o.R.Guest to related. Adds o to related.R.GuestParties. Uses the global database handle and panics on error.
func (*Party) SetGuestP ¶
SetGuestP of the party to the related item. Sets o.R.Guest to related. Adds o to related.R.GuestParties. Panics on error.
func (*Party) SetHistory ¶
SetHistory of the party to the related item. Sets o.R.History to related. Adds o to related.R.HistoryParties.
func (*Party) SetHistoryG ¶
SetHistoryG of the party to the related item. Sets o.R.History to related. Adds o to related.R.HistoryParties. Uses the global database handle.
func (*Party) SetHistoryGP ¶
SetHistoryGP of the party to the related item. Sets o.R.History to related. Adds o to related.R.HistoryParties. Uses the global database handle and panics on error.
func (*Party) SetHistoryP ¶
SetHistoryP of the party to the related item. Sets o.R.History to related. Adds o to related.R.HistoryParties. Panics on error.
func (*Party) SetQueue ¶
SetQueue of the party to the related item. Sets o.R.Queue to related. Adds o to related.R.QueueParties.
func (*Party) SetQueueG ¶
SetQueueG of the party to the related item. Sets o.R.Queue to related. Adds o to related.R.QueueParties. Uses the global database handle.
func (*Party) SetQueueGP ¶
SetQueueGP of the party to the related item. Sets o.R.Queue to related. Adds o to related.R.QueueParties. Uses the global database handle and panics on error.
func (*Party) SetQueueP ¶
SetQueueP of the party to the related item. Sets o.R.Queue to related. Adds o to related.R.QueueParties. Panics on error.
func (*Party) SetUser ¶
SetUser of the party to the related item. Sets o.R.User to related. Adds o to related.R.Party.
func (*Party) SetUserG ¶
SetUserG of the party to the related item. Sets o.R.User to related. Adds o to related.R.Party. Uses the global database handle.
func (*Party) SetUserGP ¶
SetUserGP of the party to the related item. Sets o.R.User to related. Adds o to related.R.Party. Uses the global database handle and panics on error.
func (*Party) SetUserP ¶
SetUserP of the party to the related item. Sets o.R.User to related. Adds o to related.R.Party. Panics on error.
func (*Party) Update ¶
Update uses an executor to update the Party. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*Party) UpdateG ¶
UpdateG a single Party record. See Update for whitelist behavior description.
func (*Party) UpdateGP ¶
UpdateGP a single Party record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.
func (*Party) UpdateGuestList ¶
func (*Party) UpdateP ¶
UpdateP uses an executor to update the Party, and panics on error. See Update for whitelist behavior description.
func (*Party) Upsert ¶
func (o *Party) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict.
func (*Party) UpsertG ¶
func (o *Party) UpsertG(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error
UpsertG attempts an insert, and does an update or ignore on conflict.
func (*Party) UpsertGP ¶
func (o *Party) UpsertGP(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)
UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.
func (*Party) UpsertP ¶
func (o *Party) UpsertP(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)
UpsertP attempts an insert using an executor, and does an update or ignore on conflict. UpsertP panics on error.
type PartySlice ¶
type PartySlice []*Party
PartySlice is an alias for a slice of pointers to Party. This should generally be used opposed to []Party.
func (PartySlice) DeleteAll ¶
func (o PartySlice) DeleteAll(exec boil.Executor) error
DeleteAll deletes all rows in the slice, using an executor.
func (PartySlice) DeleteAllG ¶
func (o PartySlice) DeleteAllG() error
DeleteAllG deletes all rows in the slice.
func (PartySlice) DeleteAllGP ¶
func (o PartySlice) DeleteAllGP()
DeleteAllGP deletes all rows in the slice, and panics on error.
func (PartySlice) DeleteAllP ¶
func (o PartySlice) DeleteAllP(exec boil.Executor)
DeleteAllP deletes all rows in the slice, using an executor, and panics on error.
func (*PartySlice) ReloadAll ¶
func (o *PartySlice) ReloadAll(exec boil.Executor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (*PartySlice) ReloadAllG ¶
func (o *PartySlice) ReloadAllG() error
ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (*PartySlice) ReloadAllGP ¶
func (o *PartySlice) ReloadAllGP()
ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.
func (*PartySlice) ReloadAllP ¶
func (o *PartySlice) ReloadAllP(exec boil.Executor)
ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.
func (PartySlice) UpdateAll ¶
func (o PartySlice) UpdateAll(exec boil.Executor, cols M) error
UpdateAll updates all rows with the specified column values, using an executor.
func (PartySlice) UpdateAllG ¶
func (o PartySlice) UpdateAllG(cols M) error
UpdateAllG updates all rows with the specified column values.
func (PartySlice) UpdateAllGP ¶
func (o PartySlice) UpdateAllGP(cols M)
UpdateAllGP updates all rows with the specified column values, and panics on error.
func (PartySlice) UpdateAllP ¶
func (o PartySlice) UpdateAllP(exec boil.Executor, cols M)
UpdateAllP updates all rows with the specified column values, and panics on error.
type PlayingTrack ¶
type Playlist ¶
type Playlist struct { ID string `json:"id"` Name string `json:"name"` Owner string `json:"owner"` Endpoint string `json:"endpoint"` TotalTracks uint `json:"total_tracks"` }
func NewPlaylist ¶
func NewPlaylist(p spotify.SimplePlaylist) Playlist
func NewPlaylistFromFullPlaylist ¶
func NewPlaylistFromFullPlaylist(p *spotify.FullPlaylist) Playlist
type PublicGuest ¶
type PublicParty ¶
type Relationship ¶
type Relationship struct { Links Links `json:"links,omitempty"` Data ResponseData `json:"data,omitempty"` Meta }
type ResponseData ¶
type SpotifyToken ¶
type Track ¶
type Track struct { ID string `json:"id"` Name string `json:"name"` Artists []TrackArtist `json:"artists"` Images []spotify.Image `json:"images"` Endpoint string `json:"endpoint"` BeganPlaying time.Time `json:"began_playing"` Duration uint `json:"duration"` Contributor string `json:"contributor"` ContributorID int `json:"contributor_id"` }
func NewTracks ¶
func NewTracks(t []spotify.PlaylistTrack) []Track
func (*Track) FirstArtist ¶
FirstArtist gets a track's first artist, or "Unknown" if no artists exist
type TrackArtist ¶
type TrackList ¶
type TrackList struct { ID int `boil:"id" json:"id" toml:"id" yaml:"id"` Data types.JSON `boil:"data" json:"data" toml:"data" yaml:"data"` CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"` UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"` SpotifyPlaylistID null.String `` /* 127-byte string literal not displayed */ R *trackListR `boil:"-" json:"-" toml:"-" yaml:"-"` L trackListL `boil:"-" json:"-" toml:"-" yaml:"-"` }
TrackList is an object representing the database table.
func FindTrackList ¶
FindTrackList retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindTrackListG ¶
FindTrackListG retrieves a single record by ID.
func FindTrackListGP ¶
FindTrackListGP retrieves a single record by ID, and panics on error.
func FindTrackListP ¶
FindTrackListP retrieves a single record by ID with an executor, and panics on error.
func (*TrackList) AddHistoryParties ¶
AddHistoryParties adds the given related objects to the existing relationships of the track_list, optionally inserting them as new records. Appends related to o.R.HistoryParties. Sets related.R.History appropriately.
func (*TrackList) AddHistoryPartiesG ¶
AddHistoryPartiesG adds the given related objects to the existing relationships of the track_list, optionally inserting them as new records. Appends related to o.R.HistoryParties. Sets related.R.History appropriately. Uses the global database handle.
func (*TrackList) AddHistoryPartiesGP ¶
AddHistoryPartiesGP adds the given related objects to the existing relationships of the track_list, optionally inserting them as new records. Appends related to o.R.HistoryParties. Sets related.R.History appropriately. Uses the global database handle and panics on error.
func (*TrackList) AddHistoryPartiesP ¶
AddHistoryPartiesP adds the given related objects to the existing relationships of the track_list, optionally inserting them as new records. Appends related to o.R.HistoryParties. Sets related.R.History appropriately. Panics on error.
func (*TrackList) AddQueueParties ¶
AddQueueParties adds the given related objects to the existing relationships of the track_list, optionally inserting them as new records. Appends related to o.R.QueueParties. Sets related.R.Queue appropriately.
func (*TrackList) AddQueuePartiesG ¶
AddQueuePartiesG adds the given related objects to the existing relationships of the track_list, optionally inserting them as new records. Appends related to o.R.QueueParties. Sets related.R.Queue appropriately. Uses the global database handle.
func (*TrackList) AddQueuePartiesGP ¶
AddQueuePartiesGP adds the given related objects to the existing relationships of the track_list, optionally inserting them as new records. Appends related to o.R.QueueParties. Sets related.R.Queue appropriately. Uses the global database handle and panics on error.
func (*TrackList) AddQueuePartiesP ¶
AddQueuePartiesP adds the given related objects to the existing relationships of the track_list, optionally inserting them as new records. Appends related to o.R.QueueParties. Sets related.R.Queue appropriately. Panics on error.
func (*TrackList) Delete ¶
Delete deletes a single TrackList record with an executor. Delete will match against the primary key column to find the record to delete.
func (*TrackList) DeleteG ¶
DeleteG deletes a single TrackList record. DeleteG will match against the primary key column to find the record to delete.
func (*TrackList) DeleteGP ¶
func (o *TrackList) DeleteGP()
DeleteGP deletes a single TrackList record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.
func (*TrackList) DeleteP ¶
DeleteP deletes a single TrackList record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.
func (*TrackList) HistoryParties ¶
HistoryParties retrieves all the party's party with an executor via history_id column.
func (*TrackList) HistoryPartiesG ¶
HistoryPartiesG retrieves all the party's party via history_id column.
func (*TrackList) Insert ¶
Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)
func (*TrackList) InsertGP ¶
InsertGP a single record, and panics on error. See Insert for whitelist behavior description.
func (*TrackList) InsertP ¶
InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.
func (*TrackList) QueueParties ¶
QueueParties retrieves all the party's party with an executor via queue_id column.
func (*TrackList) QueuePartiesG ¶
QueuePartiesG retrieves all the party's party via queue_id column.
func (*TrackList) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*TrackList) ReloadGP ¶
func (o *TrackList) ReloadGP()
ReloadGP refetches the object from the database and panics on error.
func (*TrackList) ReloadP ¶
ReloadP refetches the object from the database with an executor. Panics on error.
func (*TrackList) Update ¶
Update uses an executor to update the TrackList. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*TrackList) UpdateG ¶
UpdateG a single TrackList record. See Update for whitelist behavior description.
func (*TrackList) UpdateGP ¶
UpdateGP a single TrackList record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.
func (*TrackList) UpdateP ¶
UpdateP uses an executor to update the TrackList, and panics on error. See Update for whitelist behavior description.
func (*TrackList) Upsert ¶
func (o *TrackList) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict.
func (*TrackList) UpsertG ¶
func (o *TrackList) UpsertG(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error
UpsertG attempts an insert, and does an update or ignore on conflict.
type TrackListSlice ¶
type TrackListSlice []*TrackList
TrackListSlice is an alias for a slice of pointers to TrackList. This should generally be used opposed to []TrackList.
func (TrackListSlice) DeleteAll ¶
func (o TrackListSlice) DeleteAll(exec boil.Executor) error
DeleteAll deletes all rows in the slice, using an executor.
func (TrackListSlice) DeleteAllG ¶
func (o TrackListSlice) DeleteAllG() error
DeleteAllG deletes all rows in the slice.
func (TrackListSlice) DeleteAllGP ¶
func (o TrackListSlice) DeleteAllGP()
DeleteAllGP deletes all rows in the slice, and panics on error.
func (TrackListSlice) DeleteAllP ¶
func (o TrackListSlice) DeleteAllP(exec boil.Executor)
DeleteAllP deletes all rows in the slice, using an executor, and panics on error.
func (*TrackListSlice) ReloadAll ¶
func (o *TrackListSlice) ReloadAll(exec boil.Executor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (*TrackListSlice) ReloadAllG ¶
func (o *TrackListSlice) ReloadAllG() error
ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (*TrackListSlice) ReloadAllGP ¶
func (o *TrackListSlice) ReloadAllGP()
ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.
func (*TrackListSlice) ReloadAllP ¶
func (o *TrackListSlice) ReloadAllP(exec boil.Executor)
ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.
func (TrackListSlice) UpdateAll ¶
func (o TrackListSlice) UpdateAll(exec boil.Executor, cols M) error
UpdateAll updates all rows with the specified column values, using an executor.
func (TrackListSlice) UpdateAllG ¶
func (o TrackListSlice) UpdateAllG(cols M) error
UpdateAllG updates all rows with the specified column values.
func (TrackListSlice) UpdateAllGP ¶
func (o TrackListSlice) UpdateAllGP(cols M)
UpdateAllGP updates all rows with the specified column values, and panics on error.
func (TrackListSlice) UpdateAllP ¶
func (o TrackListSlice) UpdateAllP(exec boil.Executor, cols M)
UpdateAllP updates all rows with the specified column values, and panics on error.
type User ¶
type User struct { ID int64 `boil:"id" json:"id" toml:"id" yaml:"id"` Username string `boil:"username" json:"username" toml:"username" yaml:"username"` SpotifyUser types.JSON `boil:"spotify_user" json:"spotify_user" toml:"spotify_user" yaml:"spotify_user"` SpotifyPlaylistID null.String `` /* 127-byte string literal not displayed */ AccessToken string `boil:"access_token" json:"access_token" toml:"access_token" yaml:"access_token"` RefreshToken string `boil:"refresh_token" json:"refresh_token" toml:"refresh_token" yaml:"refresh_token"` TokenExpiryDate time.Time `boil:"token_expiry_date" json:"token_expiry_date" toml:"token_expiry_date" yaml:"token_expiry_date"` TokenScope string `boil:"token_scope" json:"token_scope" toml:"token_scope" yaml:"token_scope"` CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"` UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"` PartyID null.Int `boil:"party_id" json:"party_id,omitempty" toml:"party_id" yaml:"party_id,omitempty"` R *userR `boil:"-" json:"-" toml:"-" yaml:"-"` L userL `boil:"-" json:"-" toml:"-" yaml:"-"` }
User is an object representing the database table.
func FindUser ¶
FindUser retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindUserGP ¶
FindUserGP retrieves a single record by ID, and panics on error.
func (*User) Delete ¶
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 ¶
DeleteG deletes a single User record. DeleteG will match against the primary key column to find the record to delete.
func (*User) DeleteGP ¶
func (o *User) DeleteGP()
DeleteGP deletes a single User record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.
func (*User) DeleteP ¶
DeleteP deletes a single User record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.
func (*User) Insert ¶
Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)
func (*User) InsertGP ¶
InsertGP a single record, and panics on error. See Insert for whitelist behavior description.
func (*User) InsertP ¶
InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.
func (*User) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*User) ReloadGP ¶
func (o *User) ReloadGP()
ReloadGP refetches the object from the database and panics on error.
func (*User) ReloadP ¶
ReloadP refetches the object from the database with an executor. Panics on error.
func (*User) RemoveParty ¶
RemoveParty relationship. Sets o.R.Party to nil. Removes o from all passed in related items' relationships struct (Optional).
func (*User) RemovePartyG ¶
RemovePartyG relationship. Sets o.R.Party to nil. Removes o from all passed in related items' relationships struct (Optional). Uses the global database handle.
func (*User) RemovePartyGP ¶
RemovePartyGP relationship. Sets o.R.Party to nil. Removes o from all passed in related items' relationships struct (Optional). Uses the global database handle and panics on error.
func (*User) RemovePartyP ¶
RemovePartyP relationship. Sets o.R.Party to nil. Removes o from all passed in related items' relationships struct (Optional). Panics on error.
func (*User) SetParty ¶
SetParty of the user to the related item. Sets o.R.Party to related. Adds o to related.R.User.
func (*User) SetPartyG ¶
SetPartyG of the user to the related item. Sets o.R.Party to related. Adds o to related.R.User. Uses the global database handle.
func (*User) SetPartyGP ¶
SetPartyGP of the user to the related item. Sets o.R.Party to related. Adds o to related.R.User. Uses the global database handle and panics on error.
func (*User) SetPartyP ¶
SetPartyP of the user to the related item. Sets o.R.Party to related. Adds o to related.R.User. Panics on error.
func (*User) Update ¶
Update uses an executor to update the User. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*User) UpdateGP ¶
UpdateGP a single User record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.
func (*User) UpdateP ¶
UpdateP uses an executor to update the User, and panics on error. See Update for whitelist behavior description.
func (*User) Upsert ¶
func (o *User) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict.
func (*User) UpsertG ¶
func (o *User) UpsertG(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error
UpsertG attempts an insert, and does an update or ignore on conflict.
type UserSlice ¶
type UserSlice []*User
UserSlice is an alias for a slice of pointers to User. This should generally be used opposed to []User.
func (UserSlice) DeleteAllG ¶
DeleteAllG deletes all rows in the slice.
func (UserSlice) DeleteAllGP ¶
func (o UserSlice) DeleteAllGP()
DeleteAllGP deletes all rows in the slice, and panics on error.
func (UserSlice) DeleteAllP ¶
DeleteAllP deletes all rows in the slice, using an executor, and panics on error.
func (*UserSlice) ReloadAll ¶
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (*UserSlice) ReloadAllG ¶
ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (*UserSlice) ReloadAllGP ¶
func (o *UserSlice) ReloadAllGP()
ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.
func (*UserSlice) ReloadAllP ¶
ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.
func (UserSlice) UpdateAll ¶
UpdateAll updates all rows with the specified column values, using an executor.
func (UserSlice) UpdateAllG ¶
UpdateAllG updates all rows with the specified column values.
func (UserSlice) UpdateAllGP ¶
UpdateAllGP updates all rows with the specified column values, and panics on error.