Documentation ¶
Index ¶
- Constants
- Variables
- func AddEventHook(hookPoint boil.HookPoint, eventHook EventHook)
- func AddEventTimeUnitHook(hookPoint boil.HookPoint, eventTimeUnitHook EventTimeUnitHook)
- func AddGooseDBVersionHook(hookPoint boil.HookPoint, gooseDBVersionHook GooseDBVersionHook)
- func AddOauthProviderHook(hookPoint boil.HookPoint, oauthProviderHook OauthProviderHook)
- func AddOauthUserInfoHook(hookPoint boil.HookPoint, oauthUserInfoHook OauthUserInfoHook)
- func AddRefreshTokenHook(hookPoint boil.HookPoint, refreshTokenHook RefreshTokenHook)
- func AddUserEventAnswerHook(hookPoint boil.HookPoint, userEventAnswerHook UserEventAnswerHook)
- func AddUserEventAnswerUnitHook(hookPoint boil.HookPoint, userEventAnswerUnitHook UserEventAnswerUnitHook)
- func AddUserHook(hookPoint boil.HookPoint, userHook UserHook)
- func AllUserEventAnswerUnitAvailability() []string
- func EventExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)
- func EventTimeUnitExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)
- func EventTimeUnits(mods ...qm.QueryMod) eventTimeUnitQuery
- func Events(mods ...qm.QueryMod) eventQuery
- func GooseDBVersionExists(ctx context.Context, exec boil.ContextExecutor, iD uint64) (bool, error)
- func GooseDBVersions(mods ...qm.QueryMod) gooseDBVersionQuery
- func NewQuery(mods ...qm.QueryMod) *queries.Query
- func OauthProviderExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)
- func OauthProviders(mods ...qm.QueryMod) oauthProviderQuery
- func OauthUserInfoExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)
- func OauthUserInfos(mods ...qm.QueryMod) oauthUserInfoQuery
- func RefreshTokenExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)
- func RefreshTokens(mods ...qm.QueryMod) refreshTokenQuery
- func UserEventAnswerExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)
- func UserEventAnswerUnitExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)
- func UserEventAnswerUnits(mods ...qm.QueryMod) userEventAnswerUnitQuery
- func UserEventAnswers(mods ...qm.QueryMod) userEventAnswerQuery
- func UserExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)
- func Users(mods ...qm.QueryMod) userQuery
- type Event
- func (o *Event) AddEventTimeUnits(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Event) AddUserEventAnswers(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Event) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Event) EventTimeUnits(mods ...qm.QueryMod) eventTimeUnitQuery
- func (o *Event) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *Event) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Event) Owner(mods ...qm.QueryMod) userQuery
- func (o *Event) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Event) SetOwner(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error
- func (o *Event) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Event) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- func (o *Event) UserEventAnswers(mods ...qm.QueryMod) userEventAnswerQuery
- type EventHook
- type EventSlice
- type EventTimeUnit
- func (o *EventTimeUnit) AddUserEventAnswerUnits(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *EventTimeUnit) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *EventTimeUnit) Event(mods ...qm.QueryMod) eventQuery
- func (o *EventTimeUnit) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *EventTimeUnit) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *EventTimeUnit) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *EventTimeUnit) SetEvent(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Event) error
- func (o *EventTimeUnit) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *EventTimeUnit) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- func (o *EventTimeUnit) UserEventAnswerUnits(mods ...qm.QueryMod) userEventAnswerUnitQuery
- type EventTimeUnitHook
- type EventTimeUnitSlice
- func (o EventTimeUnitSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *EventTimeUnitSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o EventTimeUnitSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type GooseDBVersion
- func (o *GooseDBVersion) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *GooseDBVersion) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *GooseDBVersion) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *GooseDBVersion) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *GooseDBVersion) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *GooseDBVersion) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type GooseDBVersionHook
- type GooseDBVersionSlice
- func (o GooseDBVersionSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *GooseDBVersionSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o GooseDBVersionSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type M
- type OauthProvider
- func (o *OauthProvider) AddProviderOauthUserInfos(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *OauthProvider) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *OauthProvider) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *OauthProvider) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *OauthProvider) ProviderOauthUserInfos(mods ...qm.QueryMod) oauthUserInfoQuery
- func (o *OauthProvider) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *OauthProvider) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *OauthProvider) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type OauthProviderHook
- type OauthProviderSlice
- func (o OauthProviderSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *OauthProviderSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o OauthProviderSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type OauthUserInfo
- func (o *OauthUserInfo) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *OauthUserInfo) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *OauthUserInfo) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *OauthUserInfo) Provider(mods ...qm.QueryMod) oauthProviderQuery
- func (o *OauthUserInfo) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *OauthUserInfo) SetProvider(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *OauthUserInfo) SetUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error
- func (o *OauthUserInfo) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *OauthUserInfo) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- func (o *OauthUserInfo) User(mods ...qm.QueryMod) userQuery
- type OauthUserInfoHook
- type OauthUserInfoSlice
- func (o OauthUserInfoSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *OauthUserInfoSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o OauthUserInfoSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type RefreshToken
- func (o *RefreshToken) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *RefreshToken) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *RefreshToken) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *RefreshToken) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *RefreshToken) SetUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error
- func (o *RefreshToken) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *RefreshToken) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- func (o *RefreshToken) User(mods ...qm.QueryMod) userQuery
- type RefreshTokenHook
- type RefreshTokenSlice
- type User
- func (o *User) AddOauthUserInfos(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *User) AddOwnerEvents(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Event) error
- func (o *User) AddRefreshTokens(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *User) AddUserEventAnswers(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *User) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *User) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *User) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *User) OauthUserInfos(mods ...qm.QueryMod) oauthUserInfoQuery
- func (o *User) OwnerEvents(mods ...qm.QueryMod) eventQuery
- func (o *User) RefreshTokens(mods ...qm.QueryMod) refreshTokenQuery
- func (o *User) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *User) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *User) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- func (o *User) UserEventAnswers(mods ...qm.QueryMod) userEventAnswerQuery
- type UserEventAnswer
- func (o *UserEventAnswer) AddUserEventAnswerUnits(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *UserEventAnswer) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *UserEventAnswer) Event(mods ...qm.QueryMod) eventQuery
- func (o *UserEventAnswer) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *UserEventAnswer) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *UserEventAnswer) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *UserEventAnswer) SetEvent(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Event) error
- func (o *UserEventAnswer) SetUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error
- func (o *UserEventAnswer) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *UserEventAnswer) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- func (o *UserEventAnswer) User(mods ...qm.QueryMod) userQuery
- func (o *UserEventAnswer) UserEventAnswerUnits(mods ...qm.QueryMod) userEventAnswerUnitQuery
- type UserEventAnswerHook
- type UserEventAnswerSlice
- func (o UserEventAnswerSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *UserEventAnswerSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o UserEventAnswerSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type UserEventAnswerUnit
- func (o *UserEventAnswerUnit) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *UserEventAnswerUnit) EventTimeUnit(mods ...qm.QueryMod) eventTimeUnitQuery
- func (o *UserEventAnswerUnit) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *UserEventAnswerUnit) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *UserEventAnswerUnit) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *UserEventAnswerUnit) SetEventTimeUnit(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *UserEventAnswerUnit) SetUserEventAnswer(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *UserEventAnswerUnit) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *UserEventAnswerUnit) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- func (o *UserEventAnswerUnit) UserEventAnswer(mods ...qm.QueryMod) userEventAnswerQuery
- type UserEventAnswerUnitHook
- type UserEventAnswerUnitSlice
- func (o UserEventAnswerUnitSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *UserEventAnswerUnitSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o UserEventAnswerUnitSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type UserHook
- type UserSlice
Constants ¶
const ( UserEventAnswerUnitAvailabilityAvailable string = "available" UserEventAnswerUnitAvailabilityMaybe string = "maybe" )
Enum values for UserEventAnswerUnitAvailability
Variables ¶
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.
var EventColumns = struct { ID string OwnerID string Name string Description string DurationAbout string UnitSeconds string CreatedAt string UpdatedAt string EnablesEmailNotification string ExpectedParticipantsNumber string NotificationEmail string }{ ID: "id", OwnerID: "owner_id", Name: "name", Description: "description", DurationAbout: "duration_about", UnitSeconds: "unit_seconds", CreatedAt: "created_at", UpdatedAt: "updated_at", EnablesEmailNotification: "enables_email_notification", ExpectedParticipantsNumber: "expected_participants_number", NotificationEmail: "notification_email", }
var EventRels = struct { Owner string EventTimeUnits string UserEventAnswers string }{ Owner: "Owner", EventTimeUnits: "EventTimeUnits", UserEventAnswers: "UserEventAnswers", }
EventRels is where relationship names are stored.
var EventTableColumns = struct { ID string OwnerID string Name string Description string DurationAbout string UnitSeconds string CreatedAt string UpdatedAt string EnablesEmailNotification string ExpectedParticipantsNumber string NotificationEmail string }{ ID: "event.id", OwnerID: "event.owner_id", Name: "event.name", Description: "event.description", DurationAbout: "event.duration_about", UnitSeconds: "event.unit_seconds", CreatedAt: "event.created_at", UpdatedAt: "event.updated_at", EnablesEmailNotification: "event.enables_email_notification", ExpectedParticipantsNumber: "event.expected_participants_number", NotificationEmail: "event.notification_email", }
var EventTimeUnitColumns = struct { ID string EventID string TimeSlot string CreatedAt string UpdatedAt string }{ ID: "id", EventID: "event_id", TimeSlot: "time_slot", CreatedAt: "created_at", UpdatedAt: "updated_at", }
var EventTimeUnitRels = struct { Event string UserEventAnswerUnits string }{ Event: "Event", UserEventAnswerUnits: "UserEventAnswerUnits", }
EventTimeUnitRels is where relationship names are stored.
var EventTimeUnitTableColumns = struct { ID string EventID string TimeSlot string CreatedAt string UpdatedAt string }{ ID: "event_time_unit.id", EventID: "event_time_unit.event_id", TimeSlot: "event_time_unit.time_slot", CreatedAt: "event_time_unit.created_at", UpdatedAt: "event_time_unit.updated_at", }
var EventTimeUnitWhere = struct { ID whereHelperstring EventID whereHelperstring TimeSlot whereHelpertime_Time CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time }{ ID: whereHelperstring{/* contains filtered or unexported fields */}, EventID: whereHelperstring{/* contains filtered or unexported fields */}, TimeSlot: whereHelpertime_Time{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
var EventWhere = struct { ID whereHelperstring OwnerID whereHelperstring Name whereHelperstring Description whereHelperstring DurationAbout whereHelperstring UnitSeconds whereHelperuint64 CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time EnablesEmailNotification whereHelperbool ExpectedParticipantsNumber whereHelperint NotificationEmail whereHelperstring }{ ID: whereHelperstring{/* contains filtered or unexported fields */}, OwnerID: whereHelperstring{/* contains filtered or unexported fields */}, Name: whereHelperstring{/* contains filtered or unexported fields */}, Description: whereHelperstring{/* contains filtered or unexported fields */}, DurationAbout: whereHelperstring{/* contains filtered or unexported fields */}, UnitSeconds: whereHelperuint64{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, EnablesEmailNotification: whereHelperbool{/* contains filtered or unexported fields */}, ExpectedParticipantsNumber: whereHelperint{/* contains filtered or unexported fields */}, NotificationEmail: whereHelperstring{/* contains filtered or unexported fields */}, }
var GooseDBVersionColumns = struct { ID string VersionID string IsApplied string Tstamp string }{ ID: "id", VersionID: "version_id", IsApplied: "is_applied", Tstamp: "tstamp", }
var GooseDBVersionRels = struct {
}{}
GooseDBVersionRels is where relationship names are stored.
var GooseDBVersionTableColumns = struct { ID string VersionID string IsApplied string Tstamp string }{ ID: "goose_db_version.id", VersionID: "goose_db_version.version_id", IsApplied: "goose_db_version.is_applied", Tstamp: "goose_db_version.tstamp", }
var GooseDBVersionWhere = struct { ID whereHelperuint64 VersionID whereHelperint64 IsApplied whereHelperbool Tstamp whereHelpernull_Time }{ ID: whereHelperuint64{/* contains filtered or unexported fields */}, VersionID: whereHelperint64{/* contains filtered or unexported fields */}, IsApplied: whereHelperbool{/* contains filtered or unexported fields */}, Tstamp: whereHelpernull_Time{/* contains filtered or unexported fields */}, }
var OauthProviderColumns = struct { ID string Name string ClientID string ClientSecret string CreatedAt string UpdatedAt string }{ ID: "id", Name: "name", ClientID: "client_id", ClientSecret: "client_secret", CreatedAt: "created_at", UpdatedAt: "updated_at", }
var OauthProviderRels = struct { ProviderOauthUserInfos string }{ ProviderOauthUserInfos: "ProviderOauthUserInfos", }
OauthProviderRels is where relationship names are stored.
var OauthProviderTableColumns = struct { ID string Name string ClientID string ClientSecret string CreatedAt string UpdatedAt string }{ ID: "oauth_provider.id", Name: "oauth_provider.name", ClientID: "oauth_provider.client_id", ClientSecret: "oauth_provider.client_secret", CreatedAt: "oauth_provider.created_at", UpdatedAt: "oauth_provider.updated_at", }
var OauthProviderWhere = struct { ID whereHelperstring Name whereHelperstring ClientID whereHelperstring ClientSecret whereHelperstring CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time }{ ID: whereHelperstring{/* contains filtered or unexported fields */}, Name: whereHelperstring{/* contains filtered or unexported fields */}, ClientID: whereHelperstring{/* contains filtered or unexported fields */}, ClientSecret: whereHelperstring{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
var OauthUserInfoColumns = struct { ID string UserID string ProviderID string ProviderUID string AccessToken string RefreshToken string AccessTokenExpiresAt string RefreshTokenExpiresAt string CreatedAt string UpdatedAt string }{ ID: "id", UserID: "user_id", ProviderID: "provider_id", ProviderUID: "provider_uid", AccessToken: "access_token", RefreshToken: "refresh_token", AccessTokenExpiresAt: "access_token_expires_at", RefreshTokenExpiresAt: "refresh_token_expires_at", CreatedAt: "created_at", UpdatedAt: "updated_at", }
var OauthUserInfoRels = struct { Provider string User string }{ Provider: "Provider", User: "User", }
OauthUserInfoRels is where relationship names are stored.
var OauthUserInfoTableColumns = struct { ID string UserID string ProviderID string ProviderUID string AccessToken string RefreshToken string AccessTokenExpiresAt string RefreshTokenExpiresAt string CreatedAt string UpdatedAt string }{ ID: "oauth_user_info.id", UserID: "oauth_user_info.user_id", ProviderID: "oauth_user_info.provider_id", ProviderUID: "oauth_user_info.provider_uid", AccessToken: "oauth_user_info.access_token", RefreshToken: "oauth_user_info.refresh_token", AccessTokenExpiresAt: "oauth_user_info.access_token_expires_at", RefreshTokenExpiresAt: "oauth_user_info.refresh_token_expires_at", CreatedAt: "oauth_user_info.created_at", UpdatedAt: "oauth_user_info.updated_at", }
var OauthUserInfoWhere = struct { ID whereHelperstring UserID whereHelperstring ProviderID whereHelperstring ProviderUID whereHelperstring AccessToken whereHelperstring RefreshToken whereHelperstring AccessTokenExpiresAt whereHelpertime_Time RefreshTokenExpiresAt whereHelpernull_Time CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time }{ ID: whereHelperstring{/* contains filtered or unexported fields */}, UserID: whereHelperstring{/* contains filtered or unexported fields */}, ProviderID: whereHelperstring{/* contains filtered or unexported fields */}, ProviderUID: whereHelperstring{/* contains filtered or unexported fields */}, AccessToken: whereHelperstring{/* contains filtered or unexported fields */}, RefreshToken: whereHelperstring{/* contains filtered or unexported fields */}, AccessTokenExpiresAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, RefreshTokenExpiresAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
var RefreshTokenColumns = struct { ID string UserID string Token string ExpiresAt string Revoked string CreatedAt string UpdatedAt string }{ ID: "id", UserID: "user_id", Token: "token", ExpiresAt: "expires_at", Revoked: "revoked", CreatedAt: "created_at", UpdatedAt: "updated_at", }
var RefreshTokenRels = struct { User string }{ User: "User", }
RefreshTokenRels is where relationship names are stored.
var RefreshTokenTableColumns = struct { ID string UserID string Token string ExpiresAt string Revoked string CreatedAt string UpdatedAt string }{ ID: "refresh_token.id", UserID: "refresh_token.user_id", Token: "refresh_token.token", ExpiresAt: "refresh_token.expires_at", Revoked: "refresh_token.revoked", CreatedAt: "refresh_token.created_at", UpdatedAt: "refresh_token.updated_at", }
var RefreshTokenWhere = struct { ID whereHelperstring UserID whereHelperstring Token whereHelperstring ExpiresAt whereHelpertime_Time Revoked whereHelperbool CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time }{ ID: whereHelperstring{/* contains filtered or unexported fields */}, UserID: whereHelperstring{/* contains filtered or unexported fields */}, Token: whereHelperstring{/* contains filtered or unexported fields */}, ExpiresAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, Revoked: whereHelperbool{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
var TableNames = struct { Event string EventTimeUnit string GooseDBVersion string OauthProvider string OauthUserInfo string RefreshToken string User string UserEventAnswer string UserEventAnswerUnit string }{ Event: "event", EventTimeUnit: "event_time_unit", GooseDBVersion: "goose_db_version", OauthProvider: "oauth_provider", OauthUserInfo: "oauth_user_info", RefreshToken: "refresh_token", User: "user", UserEventAnswer: "user_event_answer", UserEventAnswerUnit: "user_event_answer_unit", }
var UserColumns = struct { ID string Name string IsRegistered string CreatedAt string UpdatedAt string }{ ID: "id", Name: "name", IsRegistered: "is_registered", CreatedAt: "created_at", UpdatedAt: "updated_at", }
var UserEventAnswerColumns = struct { ID string UserID string EventID string UserNickname string Note string CreatedAt string UpdatedAt string }{ ID: "id", UserID: "user_id", EventID: "event_id", UserNickname: "user_nickname", Note: "note", CreatedAt: "created_at", UpdatedAt: "updated_at", }
var UserEventAnswerRels = struct { Event string User string UserEventAnswerUnits string }{ Event: "Event", User: "User", UserEventAnswerUnits: "UserEventAnswerUnits", }
UserEventAnswerRels is where relationship names are stored.
var UserEventAnswerTableColumns = struct { ID string UserID string EventID string UserNickname string Note string CreatedAt string UpdatedAt string }{ ID: "user_event_answer.id", UserID: "user_event_answer.user_id", EventID: "user_event_answer.event_id", UserNickname: "user_event_answer.user_nickname", Note: "user_event_answer.note", CreatedAt: "user_event_answer.created_at", UpdatedAt: "user_event_answer.updated_at", }
var UserEventAnswerUnitColumns = struct { ID string UserEventAnswerID string EventTimeUnitID string Availability string CreatedAt string UpdatedAt string }{ ID: "id", UserEventAnswerID: "user_event_answer_id", EventTimeUnitID: "event_time_unit_id", Availability: "availability", CreatedAt: "created_at", UpdatedAt: "updated_at", }
var UserEventAnswerUnitRels = struct { EventTimeUnit string UserEventAnswer string }{ EventTimeUnit: "EventTimeUnit", UserEventAnswer: "UserEventAnswer", }
UserEventAnswerUnitRels is where relationship names are stored.
var UserEventAnswerUnitTableColumns = struct { ID string UserEventAnswerID string EventTimeUnitID string Availability string CreatedAt string UpdatedAt string }{ ID: "user_event_answer_unit.id", UserEventAnswerID: "user_event_answer_unit.user_event_answer_id", EventTimeUnitID: "user_event_answer_unit.event_time_unit_id", Availability: "user_event_answer_unit.availability", CreatedAt: "user_event_answer_unit.created_at", UpdatedAt: "user_event_answer_unit.updated_at", }
var UserEventAnswerUnitWhere = struct { ID whereHelperstring UserEventAnswerID whereHelperstring EventTimeUnitID whereHelperstring Availability whereHelperstring CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time }{ ID: whereHelperstring{/* contains filtered or unexported fields */}, UserEventAnswerID: whereHelperstring{/* contains filtered or unexported fields */}, EventTimeUnitID: whereHelperstring{/* contains filtered or unexported fields */}, Availability: whereHelperstring{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
var UserEventAnswerWhere = struct { ID whereHelperstring UserID whereHelperstring EventID whereHelperstring UserNickname whereHelperstring Note whereHelperstring CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time }{ ID: whereHelperstring{/* contains filtered or unexported fields */}, UserID: whereHelperstring{/* contains filtered or unexported fields */}, EventID: whereHelperstring{/* contains filtered or unexported fields */}, UserNickname: whereHelperstring{/* contains filtered or unexported fields */}, Note: whereHelperstring{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
var UserRels = struct { OwnerEvents string OauthUserInfos string RefreshTokens string UserEventAnswers string }{ OwnerEvents: "OwnerEvents", OauthUserInfos: "OauthUserInfos", RefreshTokens: "RefreshTokens", UserEventAnswers: "UserEventAnswers", }
UserRels is where relationship names are stored.
var UserTableColumns = struct { ID string Name string IsRegistered string CreatedAt string UpdatedAt string }{ ID: "user.id", Name: "user.name", IsRegistered: "user.is_registered", CreatedAt: "user.created_at", UpdatedAt: "user.updated_at", }
var UserWhere = struct { ID whereHelperstring Name whereHelperstring IsRegistered whereHelperbool CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time }{ ID: whereHelperstring{/* contains filtered or unexported fields */}, Name: whereHelperstring{/* contains filtered or unexported fields */}, IsRegistered: whereHelperbool{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
var ViewNames = struct {
}{}
Functions ¶
func AddEventHook ¶
AddEventHook registers your hook function for all future operations.
func AddEventTimeUnitHook ¶
func AddEventTimeUnitHook(hookPoint boil.HookPoint, eventTimeUnitHook EventTimeUnitHook)
AddEventTimeUnitHook registers your hook function for all future operations.
func AddGooseDBVersionHook ¶
func AddGooseDBVersionHook(hookPoint boil.HookPoint, gooseDBVersionHook GooseDBVersionHook)
AddGooseDBVersionHook registers your hook function for all future operations.
func AddOauthProviderHook ¶
func AddOauthProviderHook(hookPoint boil.HookPoint, oauthProviderHook OauthProviderHook)
AddOauthProviderHook registers your hook function for all future operations.
func AddOauthUserInfoHook ¶
func AddOauthUserInfoHook(hookPoint boil.HookPoint, oauthUserInfoHook OauthUserInfoHook)
AddOauthUserInfoHook registers your hook function for all future operations.
func AddRefreshTokenHook ¶
func AddRefreshTokenHook(hookPoint boil.HookPoint, refreshTokenHook RefreshTokenHook)
AddRefreshTokenHook registers your hook function for all future operations.
func AddUserEventAnswerHook ¶
func AddUserEventAnswerHook(hookPoint boil.HookPoint, userEventAnswerHook UserEventAnswerHook)
AddUserEventAnswerHook registers your hook function for all future operations.
func AddUserEventAnswerUnitHook ¶
func AddUserEventAnswerUnitHook(hookPoint boil.HookPoint, userEventAnswerUnitHook UserEventAnswerUnitHook)
AddUserEventAnswerUnitHook registers your hook function for all future operations.
func AddUserHook ¶
AddUserHook registers your hook function for all future operations.
func AllUserEventAnswerUnitAvailability ¶
func AllUserEventAnswerUnitAvailability() []string
func EventExists ¶
EventExists checks if the Event row exists.
func EventTimeUnitExists ¶
EventTimeUnitExists checks if the EventTimeUnit row exists.
func EventTimeUnits ¶
EventTimeUnits retrieves all the records using an executor.
func GooseDBVersionExists ¶
GooseDBVersionExists checks if the GooseDBVersion row exists.
func GooseDBVersions ¶
GooseDBVersions retrieves all the records using an executor.
func OauthProviderExists ¶
OauthProviderExists checks if the OauthProvider row exists.
func OauthProviders ¶
OauthProviders retrieves all the records using an executor.
func OauthUserInfoExists ¶
OauthUserInfoExists checks if the OauthUserInfo row exists.
func OauthUserInfos ¶
OauthUserInfos retrieves all the records using an executor.
func RefreshTokenExists ¶
RefreshTokenExists checks if the RefreshToken row exists.
func RefreshTokens ¶
RefreshTokens retrieves all the records using an executor.
func UserEventAnswerExists ¶
UserEventAnswerExists checks if the UserEventAnswer row exists.
func UserEventAnswerUnitExists ¶
func UserEventAnswerUnitExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)
UserEventAnswerUnitExists checks if the UserEventAnswerUnit row exists.
func UserEventAnswerUnits ¶
UserEventAnswerUnits retrieves all the records using an executor.
func UserEventAnswers ¶
UserEventAnswers retrieves all the records using an executor.
func UserExists ¶
UserExists checks if the User row exists.
Types ¶
type Event ¶
type Event struct { ID string `boil:"id" json:"id" toml:"id" yaml:"id"` OwnerID string `boil:"owner_id" json:"owner_id" toml:"owner_id" yaml:"owner_id"` Name string `boil:"name" json:"name" toml:"name" yaml:"name"` Description string `boil:"description" json:"description" toml:"description" yaml:"description"` DurationAbout string `boil:"duration_about" json:"duration_about" toml:"duration_about" yaml:"duration_about"` UnitSeconds uint64 `boil:"unit_seconds" json:"unit_seconds" toml:"unit_seconds" yaml:"unit_seconds"` 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"` EnablesEmailNotification bool `` /* 135-byte string literal not displayed */ ExpectedParticipantsNumber int `` /* 143-byte string literal not displayed */ NotificationEmail string `boil:"notification_email" json:"notification_email" toml:"notification_email" yaml:"notification_email"` R *eventR `boil:"-" json:"-" toml:"-" yaml:"-"` L eventL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Event is an object representing the database table.
func FindEvent ¶
func FindEvent(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*Event, error)
FindEvent retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Event) AddEventTimeUnits ¶
func (o *Event) AddEventTimeUnits(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*EventTimeUnit) error
AddEventTimeUnits adds the given related objects to the existing relationships of the event, optionally inserting them as new records. Appends related to o.R.EventTimeUnits. Sets related.R.Event appropriately.
func (*Event) AddUserEventAnswers ¶
func (o *Event) AddUserEventAnswers(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*UserEventAnswer) error
AddUserEventAnswers adds the given related objects to the existing relationships of the event, optionally inserting them as new records. Appends related to o.R.UserEventAnswers. Sets related.R.Event appropriately.
func (*Event) Delete ¶
Delete deletes a single Event record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Event) EventTimeUnits ¶
EventTimeUnits retrieves all the event_time_unit's EventTimeUnits with an executor.
func (*Event) Insert ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*Event) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Event) SetOwner ¶
func (o *Event) SetOwner(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error
SetOwner of the event to the related item. Sets o.R.Owner to related. Adds o to related.R.OwnerEvents.
func (*Event) Update ¶
func (o *Event) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Event. 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 (*Event) Upsert ¶
func (o *Event) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
func (*Event) UserEventAnswers ¶
UserEventAnswers retrieves all the user_event_answer's UserEventAnswers with an executor.
type EventSlice ¶
type EventSlice []*Event
EventSlice is an alias for a slice of pointers to Event. This should almost always be used instead of []Event.
func (EventSlice) DeleteAll ¶
func (o EventSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*EventSlice) ReloadAll ¶
func (o *EventSlice) 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 (EventSlice) UpdateAll ¶
func (o EventSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type EventTimeUnit ¶
type EventTimeUnit struct { ID string `boil:"id" json:"id" toml:"id" yaml:"id"` EventID string `boil:"event_id" json:"event_id" toml:"event_id" yaml:"event_id"` TimeSlot time.Time `boil:"time_slot" json:"time_slot" toml:"time_slot" yaml:"time_slot"` 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"` R *eventTimeUnitR `boil:"-" json:"-" toml:"-" yaml:"-"` L eventTimeUnitL `boil:"-" json:"-" toml:"-" yaml:"-"` }
EventTimeUnit is an object representing the database table.
func FindEventTimeUnit ¶
func FindEventTimeUnit(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*EventTimeUnit, error)
FindEventTimeUnit retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*EventTimeUnit) AddUserEventAnswerUnits ¶
func (o *EventTimeUnit) AddUserEventAnswerUnits(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*UserEventAnswerUnit) error
AddUserEventAnswerUnits adds the given related objects to the existing relationships of the event_time_unit, optionally inserting them as new records. Appends related to o.R.UserEventAnswerUnits. Sets related.R.EventTimeUnit appropriately.
func (*EventTimeUnit) Delete ¶
func (o *EventTimeUnit) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single EventTimeUnit record with an executor. Delete will match against the primary key column to find the record to delete.
func (*EventTimeUnit) Event ¶
func (o *EventTimeUnit) Event(mods ...qm.QueryMod) eventQuery
Event pointed to by the foreign key.
func (*EventTimeUnit) Exists ¶
func (o *EventTimeUnit) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the EventTimeUnit row exists.
func (*EventTimeUnit) Insert ¶
func (o *EventTimeUnit) 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 (*EventTimeUnit) Reload ¶
func (o *EventTimeUnit) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*EventTimeUnit) SetEvent ¶
func (o *EventTimeUnit) SetEvent(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Event) error
SetEvent of the eventTimeUnit to the related item. Sets o.R.Event to related. Adds o to related.R.EventTimeUnits.
func (*EventTimeUnit) Update ¶
func (o *EventTimeUnit) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the EventTimeUnit. 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 (*EventTimeUnit) Upsert ¶
func (o *EventTimeUnit) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
func (*EventTimeUnit) UserEventAnswerUnits ¶
func (o *EventTimeUnit) UserEventAnswerUnits(mods ...qm.QueryMod) userEventAnswerUnitQuery
UserEventAnswerUnits retrieves all the user_event_answer_unit's UserEventAnswerUnits with an executor.
type EventTimeUnitHook ¶
type EventTimeUnitHook func(context.Context, boil.ContextExecutor, *EventTimeUnit) error
EventTimeUnitHook is the signature for custom EventTimeUnit hook methods
type EventTimeUnitSlice ¶
type EventTimeUnitSlice []*EventTimeUnit
EventTimeUnitSlice is an alias for a slice of pointers to EventTimeUnit. This should almost always be used instead of []EventTimeUnit.
func (EventTimeUnitSlice) DeleteAll ¶
func (o EventTimeUnitSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*EventTimeUnitSlice) ReloadAll ¶
func (o *EventTimeUnitSlice) 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 (EventTimeUnitSlice) UpdateAll ¶
func (o EventTimeUnitSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type GooseDBVersion ¶
type GooseDBVersion struct { ID uint64 `boil:"id" json:"id" toml:"id" yaml:"id"` VersionID int64 `boil:"version_id" json:"version_id" toml:"version_id" yaml:"version_id"` IsApplied bool `boil:"is_applied" json:"is_applied" toml:"is_applied" yaml:"is_applied"` Tstamp null.Time `boil:"tstamp" json:"tstamp,omitempty" toml:"tstamp" yaml:"tstamp,omitempty"` R *gooseDBVersionR `boil:"-" json:"-" toml:"-" yaml:"-"` L gooseDBVersionL `boil:"-" json:"-" toml:"-" yaml:"-"` }
GooseDBVersion is an object representing the database table.
func FindGooseDBVersion ¶
func FindGooseDBVersion(ctx context.Context, exec boil.ContextExecutor, iD uint64, selectCols ...string) (*GooseDBVersion, error)
FindGooseDBVersion retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*GooseDBVersion) Delete ¶
func (o *GooseDBVersion) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single GooseDBVersion record with an executor. Delete will match against the primary key column to find the record to delete.
func (*GooseDBVersion) Exists ¶
func (o *GooseDBVersion) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the GooseDBVersion row exists.
func (*GooseDBVersion) Insert ¶
func (o *GooseDBVersion) 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 (*GooseDBVersion) Reload ¶
func (o *GooseDBVersion) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*GooseDBVersion) Update ¶
func (o *GooseDBVersion) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the GooseDBVersion. 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 (*GooseDBVersion) Upsert ¶
func (o *GooseDBVersion) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type GooseDBVersionHook ¶
type GooseDBVersionHook func(context.Context, boil.ContextExecutor, *GooseDBVersion) error
GooseDBVersionHook is the signature for custom GooseDBVersion hook methods
type GooseDBVersionSlice ¶
type GooseDBVersionSlice []*GooseDBVersion
GooseDBVersionSlice is an alias for a slice of pointers to GooseDBVersion. This should almost always be used instead of []GooseDBVersion.
func (GooseDBVersionSlice) DeleteAll ¶
func (o GooseDBVersionSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*GooseDBVersionSlice) ReloadAll ¶
func (o *GooseDBVersionSlice) 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 (GooseDBVersionSlice) UpdateAll ¶
func (o GooseDBVersionSlice) 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 OauthProvider ¶
type OauthProvider struct { ID string `boil:"id" json:"id" toml:"id" yaml:"id"` Name string `boil:"name" json:"name" toml:"name" yaml:"name"` ClientID string `boil:"client_id" json:"client_id" toml:"client_id" yaml:"client_id"` ClientSecret string `boil:"client_secret" json:"client_secret" toml:"client_secret" yaml:"client_secret"` 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"` R *oauthProviderR `boil:"-" json:"-" toml:"-" yaml:"-"` L oauthProviderL `boil:"-" json:"-" toml:"-" yaml:"-"` }
OauthProvider is an object representing the database table.
func FindOauthProvider ¶
func FindOauthProvider(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*OauthProvider, error)
FindOauthProvider retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*OauthProvider) AddProviderOauthUserInfos ¶
func (o *OauthProvider) AddProviderOauthUserInfos(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*OauthUserInfo) error
AddProviderOauthUserInfos adds the given related objects to the existing relationships of the oauth_provider, optionally inserting them as new records. Appends related to o.R.ProviderOauthUserInfos. Sets related.R.Provider appropriately.
func (*OauthProvider) Delete ¶
func (o *OauthProvider) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single OauthProvider record with an executor. Delete will match against the primary key column to find the record to delete.
func (*OauthProvider) Exists ¶
func (o *OauthProvider) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the OauthProvider row exists.
func (*OauthProvider) Insert ¶
func (o *OauthProvider) 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 (*OauthProvider) ProviderOauthUserInfos ¶
func (o *OauthProvider) ProviderOauthUserInfos(mods ...qm.QueryMod) oauthUserInfoQuery
ProviderOauthUserInfos retrieves all the oauth_user_info's OauthUserInfos with an executor via provider_id column.
func (*OauthProvider) Reload ¶
func (o *OauthProvider) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*OauthProvider) Update ¶
func (o *OauthProvider) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the OauthProvider. 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 (*OauthProvider) Upsert ¶
func (o *OauthProvider) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type OauthProviderHook ¶
type OauthProviderHook func(context.Context, boil.ContextExecutor, *OauthProvider) error
OauthProviderHook is the signature for custom OauthProvider hook methods
type OauthProviderSlice ¶
type OauthProviderSlice []*OauthProvider
OauthProviderSlice is an alias for a slice of pointers to OauthProvider. This should almost always be used instead of []OauthProvider.
func (OauthProviderSlice) DeleteAll ¶
func (o OauthProviderSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*OauthProviderSlice) ReloadAll ¶
func (o *OauthProviderSlice) 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 (OauthProviderSlice) UpdateAll ¶
func (o OauthProviderSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type OauthUserInfo ¶
type OauthUserInfo struct { ID string `boil:"id" json:"id" toml:"id" yaml:"id"` UserID string `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"` ProviderID string `boil:"provider_id" json:"provider_id" toml:"provider_id" yaml:"provider_id"` ProviderUID string `boil:"provider_uid" json:"provider_uid" toml:"provider_uid" yaml:"provider_uid"` 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"` AccessTokenExpiresAt time.Time `boil:"access_token_expires_at" json:"access_token_expires_at" toml:"access_token_expires_at" yaml:"access_token_expires_at"` RefreshTokenExpiresAt null.Time `` /* 147-byte string literal not displayed */ 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"` R *oauthUserInfoR `boil:"-" json:"-" toml:"-" yaml:"-"` L oauthUserInfoL `boil:"-" json:"-" toml:"-" yaml:"-"` }
OauthUserInfo is an object representing the database table.
func FindOauthUserInfo ¶
func FindOauthUserInfo(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*OauthUserInfo, error)
FindOauthUserInfo retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*OauthUserInfo) Delete ¶
func (o *OauthUserInfo) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single OauthUserInfo record with an executor. Delete will match against the primary key column to find the record to delete.
func (*OauthUserInfo) Exists ¶
func (o *OauthUserInfo) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the OauthUserInfo row exists.
func (*OauthUserInfo) Insert ¶
func (o *OauthUserInfo) 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 (*OauthUserInfo) Provider ¶
func (o *OauthUserInfo) Provider(mods ...qm.QueryMod) oauthProviderQuery
Provider pointed to by the foreign key.
func (*OauthUserInfo) Reload ¶
func (o *OauthUserInfo) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*OauthUserInfo) SetProvider ¶
func (o *OauthUserInfo) SetProvider(ctx context.Context, exec boil.ContextExecutor, insert bool, related *OauthProvider) error
SetProvider of the oauthUserInfo to the related item. Sets o.R.Provider to related. Adds o to related.R.ProviderOauthUserInfos.
func (*OauthUserInfo) SetUser ¶
func (o *OauthUserInfo) SetUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error
SetUser of the oauthUserInfo to the related item. Sets o.R.User to related. Adds o to related.R.OauthUserInfos.
func (*OauthUserInfo) Update ¶
func (o *OauthUserInfo) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the OauthUserInfo. 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 (*OauthUserInfo) Upsert ¶
func (o *OauthUserInfo) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
func (*OauthUserInfo) User ¶
func (o *OauthUserInfo) User(mods ...qm.QueryMod) userQuery
User pointed to by the foreign key.
type OauthUserInfoHook ¶
type OauthUserInfoHook func(context.Context, boil.ContextExecutor, *OauthUserInfo) error
OauthUserInfoHook is the signature for custom OauthUserInfo hook methods
type OauthUserInfoSlice ¶
type OauthUserInfoSlice []*OauthUserInfo
OauthUserInfoSlice is an alias for a slice of pointers to OauthUserInfo. This should almost always be used instead of []OauthUserInfo.
func (OauthUserInfoSlice) DeleteAll ¶
func (o OauthUserInfoSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*OauthUserInfoSlice) ReloadAll ¶
func (o *OauthUserInfoSlice) 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 (OauthUserInfoSlice) UpdateAll ¶
func (o OauthUserInfoSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type RefreshToken ¶
type RefreshToken struct { ID string `boil:"id" json:"id" toml:"id" yaml:"id"` UserID string `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"` Token string `boil:"token" json:"token" toml:"token" yaml:"token"` ExpiresAt time.Time `boil:"expires_at" json:"expires_at" toml:"expires_at" yaml:"expires_at"` Revoked bool `boil:"revoked" json:"revoked" toml:"revoked" yaml:"revoked"` 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"` R *refreshTokenR `boil:"-" json:"-" toml:"-" yaml:"-"` L refreshTokenL `boil:"-" json:"-" toml:"-" yaml:"-"` }
RefreshToken is an object representing the database table.
func FindRefreshToken ¶
func FindRefreshToken(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*RefreshToken, error)
FindRefreshToken retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*RefreshToken) Delete ¶
func (o *RefreshToken) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single RefreshToken record with an executor. Delete will match against the primary key column to find the record to delete.
func (*RefreshToken) Exists ¶
func (o *RefreshToken) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the RefreshToken row exists.
func (*RefreshToken) Insert ¶
func (o *RefreshToken) 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 (*RefreshToken) Reload ¶
func (o *RefreshToken) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*RefreshToken) SetUser ¶
func (o *RefreshToken) SetUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error
SetUser of the refreshToken to the related item. Sets o.R.User to related. Adds o to related.R.RefreshTokens.
func (*RefreshToken) Update ¶
func (o *RefreshToken) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the RefreshToken. 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 (*RefreshToken) Upsert ¶
func (o *RefreshToken) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
func (*RefreshToken) User ¶
func (o *RefreshToken) User(mods ...qm.QueryMod) userQuery
User pointed to by the foreign key.
type RefreshTokenHook ¶
type RefreshTokenHook func(context.Context, boil.ContextExecutor, *RefreshToken) error
RefreshTokenHook is the signature for custom RefreshToken hook methods
type RefreshTokenSlice ¶
type RefreshTokenSlice []*RefreshToken
RefreshTokenSlice is an alias for a slice of pointers to RefreshToken. This should almost always be used instead of []RefreshToken.
func (RefreshTokenSlice) DeleteAll ¶
func (o RefreshTokenSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*RefreshTokenSlice) ReloadAll ¶
func (o *RefreshTokenSlice) 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 (RefreshTokenSlice) UpdateAll ¶
func (o RefreshTokenSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type User ¶
type User struct { ID string `boil:"id" json:"id" toml:"id" yaml:"id"` Name string `boil:"name" json:"name" toml:"name" yaml:"name"` IsRegistered bool `boil:"is_registered" json:"is_registered" toml:"is_registered" yaml:"is_registered"` 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"` R *userR `boil:"-" json:"-" toml:"-" yaml:"-"` L userL `boil:"-" json:"-" toml:"-" yaml:"-"` }
User is an object representing the database table.
func FindUser ¶
func FindUser(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*User, error)
FindUser retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*User) AddOauthUserInfos ¶
func (o *User) AddOauthUserInfos(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*OauthUserInfo) error
AddOauthUserInfos adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.OauthUserInfos. Sets related.R.User appropriately.
func (*User) AddOwnerEvents ¶
func (o *User) AddOwnerEvents(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Event) error
AddOwnerEvents adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.OwnerEvents. Sets related.R.Owner appropriately.
func (*User) AddRefreshTokens ¶
func (o *User) AddRefreshTokens(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*RefreshToken) error
AddRefreshTokens adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.RefreshTokens. Sets related.R.User appropriately.
func (*User) AddUserEventAnswers ¶
func (o *User) AddUserEventAnswers(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*UserEventAnswer) error
AddUserEventAnswers adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.UserEventAnswers. Sets related.R.User appropriately.
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) Insert ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*User) OauthUserInfos ¶
OauthUserInfos retrieves all the oauth_user_info's OauthUserInfos with an executor.
func (*User) OwnerEvents ¶
OwnerEvents retrieves all the event's Events with an executor via owner_id column.
func (*User) RefreshTokens ¶
RefreshTokens retrieves all the refresh_token's RefreshTokens with an executor.
func (*User) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*User) Update ¶
func (o *User) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the User. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*User) Upsert ¶
func (o *User) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
func (*User) UserEventAnswers ¶
UserEventAnswers retrieves all the user_event_answer's UserEventAnswers with an executor.
type UserEventAnswer ¶
type UserEventAnswer struct { ID string `boil:"id" json:"id" toml:"id" yaml:"id"` UserID string `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"` EventID string `boil:"event_id" json:"event_id" toml:"event_id" yaml:"event_id"` UserNickname string `boil:"user_nickname" json:"user_nickname" toml:"user_nickname" yaml:"user_nickname"` Note string `boil:"note" json:"note" toml:"note" yaml:"note"` CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"` UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"` R *userEventAnswerR `boil:"-" json:"-" toml:"-" yaml:"-"` L userEventAnswerL `boil:"-" json:"-" toml:"-" yaml:"-"` }
UserEventAnswer is an object representing the database table.
func FindUserEventAnswer ¶
func FindUserEventAnswer(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*UserEventAnswer, error)
FindUserEventAnswer retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*UserEventAnswer) AddUserEventAnswerUnits ¶
func (o *UserEventAnswer) AddUserEventAnswerUnits(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*UserEventAnswerUnit) error
AddUserEventAnswerUnits adds the given related objects to the existing relationships of the user_event_answer, optionally inserting them as new records. Appends related to o.R.UserEventAnswerUnits. Sets related.R.UserEventAnswer appropriately.
func (*UserEventAnswer) Delete ¶
func (o *UserEventAnswer) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single UserEventAnswer record with an executor. Delete will match against the primary key column to find the record to delete.
func (*UserEventAnswer) Event ¶
func (o *UserEventAnswer) Event(mods ...qm.QueryMod) eventQuery
Event pointed to by the foreign key.
func (*UserEventAnswer) Exists ¶
func (o *UserEventAnswer) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the UserEventAnswer row exists.
func (*UserEventAnswer) Insert ¶
func (o *UserEventAnswer) 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 (*UserEventAnswer) Reload ¶
func (o *UserEventAnswer) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*UserEventAnswer) SetEvent ¶
func (o *UserEventAnswer) SetEvent(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Event) error
SetEvent of the userEventAnswer to the related item. Sets o.R.Event to related. Adds o to related.R.UserEventAnswers.
func (*UserEventAnswer) SetUser ¶
func (o *UserEventAnswer) SetUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error
SetUser of the userEventAnswer to the related item. Sets o.R.User to related. Adds o to related.R.UserEventAnswers.
func (*UserEventAnswer) Update ¶
func (o *UserEventAnswer) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the UserEventAnswer. 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 (*UserEventAnswer) Upsert ¶
func (o *UserEventAnswer) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
func (*UserEventAnswer) User ¶
func (o *UserEventAnswer) User(mods ...qm.QueryMod) userQuery
User pointed to by the foreign key.
func (*UserEventAnswer) UserEventAnswerUnits ¶
func (o *UserEventAnswer) UserEventAnswerUnits(mods ...qm.QueryMod) userEventAnswerUnitQuery
UserEventAnswerUnits retrieves all the user_event_answer_unit's UserEventAnswerUnits with an executor.
type UserEventAnswerHook ¶
type UserEventAnswerHook func(context.Context, boil.ContextExecutor, *UserEventAnswer) error
UserEventAnswerHook is the signature for custom UserEventAnswer hook methods
type UserEventAnswerSlice ¶
type UserEventAnswerSlice []*UserEventAnswer
UserEventAnswerSlice is an alias for a slice of pointers to UserEventAnswer. This should almost always be used instead of []UserEventAnswer.
func (UserEventAnswerSlice) DeleteAll ¶
func (o UserEventAnswerSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*UserEventAnswerSlice) ReloadAll ¶
func (o *UserEventAnswerSlice) 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 (UserEventAnswerSlice) UpdateAll ¶
func (o UserEventAnswerSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type UserEventAnswerUnit ¶
type UserEventAnswerUnit struct { ID string `boil:"id" json:"id" toml:"id" yaml:"id"` UserEventAnswerID string `boil:"user_event_answer_id" json:"user_event_answer_id" toml:"user_event_answer_id" yaml:"user_event_answer_id"` EventTimeUnitID string `boil:"event_time_unit_id" json:"event_time_unit_id" toml:"event_time_unit_id" yaml:"event_time_unit_id"` Availability string `boil:"availability" json:"availability" toml:"availability" yaml:"availability"` 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"` R *userEventAnswerUnitR `boil:"-" json:"-" toml:"-" yaml:"-"` L userEventAnswerUnitL `boil:"-" json:"-" toml:"-" yaml:"-"` }
UserEventAnswerUnit is an object representing the database table.
func FindUserEventAnswerUnit ¶
func FindUserEventAnswerUnit(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*UserEventAnswerUnit, error)
FindUserEventAnswerUnit retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*UserEventAnswerUnit) Delete ¶
func (o *UserEventAnswerUnit) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single UserEventAnswerUnit record with an executor. Delete will match against the primary key column to find the record to delete.
func (*UserEventAnswerUnit) EventTimeUnit ¶
func (o *UserEventAnswerUnit) EventTimeUnit(mods ...qm.QueryMod) eventTimeUnitQuery
EventTimeUnit pointed to by the foreign key.
func (*UserEventAnswerUnit) Exists ¶
func (o *UserEventAnswerUnit) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the UserEventAnswerUnit row exists.
func (*UserEventAnswerUnit) Insert ¶
func (o *UserEventAnswerUnit) 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 (*UserEventAnswerUnit) Reload ¶
func (o *UserEventAnswerUnit) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*UserEventAnswerUnit) SetEventTimeUnit ¶
func (o *UserEventAnswerUnit) SetEventTimeUnit(ctx context.Context, exec boil.ContextExecutor, insert bool, related *EventTimeUnit) error
SetEventTimeUnit of the userEventAnswerUnit to the related item. Sets o.R.EventTimeUnit to related. Adds o to related.R.UserEventAnswerUnits.
func (*UserEventAnswerUnit) SetUserEventAnswer ¶
func (o *UserEventAnswerUnit) SetUserEventAnswer(ctx context.Context, exec boil.ContextExecutor, insert bool, related *UserEventAnswer) error
SetUserEventAnswer of the userEventAnswerUnit to the related item. Sets o.R.UserEventAnswer to related. Adds o to related.R.UserEventAnswerUnits.
func (*UserEventAnswerUnit) Update ¶
func (o *UserEventAnswerUnit) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the UserEventAnswerUnit. 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 (*UserEventAnswerUnit) Upsert ¶
func (o *UserEventAnswerUnit) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
func (*UserEventAnswerUnit) UserEventAnswer ¶
func (o *UserEventAnswerUnit) UserEventAnswer(mods ...qm.QueryMod) userEventAnswerQuery
UserEventAnswer pointed to by the foreign key.
type UserEventAnswerUnitHook ¶
type UserEventAnswerUnitHook func(context.Context, boil.ContextExecutor, *UserEventAnswerUnit) error
UserEventAnswerUnitHook is the signature for custom UserEventAnswerUnit hook methods
type UserEventAnswerUnitSlice ¶
type UserEventAnswerUnitSlice []*UserEventAnswerUnit
UserEventAnswerUnitSlice is an alias for a slice of pointers to UserEventAnswerUnit. This should almost always be used instead of []UserEventAnswerUnit.
func (UserEventAnswerUnitSlice) DeleteAll ¶
func (o UserEventAnswerUnitSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*UserEventAnswerUnitSlice) ReloadAll ¶
func (o *UserEventAnswerUnitSlice) 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 (UserEventAnswerUnitSlice) UpdateAll ¶
func (o UserEventAnswerUnitSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type UserSlice ¶
type UserSlice []*User
UserSlice is an alias for a slice of pointers to User. This should almost always be used instead of []User.