Documentation ¶
Index ¶
- Constants
- Variables
- func AddEventLogEmailHook(hookPoint boil.HookPoint, eventLogEmailHook EventLogEmailHook)
- func AddFlashMessageHook(hookPoint boil.HookPoint, flashMessageHook FlashMessageHook)
- func AddFollowingTeacherHook(hookPoint boil.HookPoint, followingTeacherHook FollowingTeacherHook)
- func AddLessonHook(hookPoint boil.HookPoint, lessonHook LessonHook)
- func AddLessonStatusLogHook(hookPoint boil.HookPoint, lessonStatusLogHook LessonStatusLogHook)
- func AddMCountryHook(hookPoint boil.HookPoint, mCountryHook MCountryHook)
- func AddMPlanHook(hookPoint boil.HookPoint, mPlanHook MPlanHook)
- func AddNotificationTimeSpanHook(hookPoint boil.HookPoint, notificationTimeSpanHook NotificationTimeSpanHook)
- func AddStatDailyNotificationEventHook(hookPoint boil.HookPoint, ...)
- func AddStatDailyUserNotificationEventHook(hookPoint boil.HookPoint, ...)
- func AddStatNewLessonNotifierHook(hookPoint boil.HookPoint, statNewLessonNotifierHook StatNewLessonNotifierHook)
- func AddStatNotifierHook(hookPoint boil.HookPoint, statNotifierHook StatNotifierHook)
- func AddTeacherHook(hookPoint boil.HookPoint, teacherHook TeacherHook)
- func AddUserAPITokenHook(hookPoint boil.HookPoint, userAPITokenHook UserAPITokenHook)
- func AddUserGoogleHook(hookPoint boil.HookPoint, userGoogleHook UserGoogleHook)
- func AddUserHook(hookPoint boil.HookPoint, userHook UserHook)
- func AllEventLogEmailEmailType() []string
- func AllEventLogEmailEvent() []string
- func AllLessonStatus() []string
- func AllLessonStatusLogStatus() []string
- func AllStatDailyNotificationEventEvent() []string
- func AllStatDailyUserNotificationEventEvent() []string
- func AllStatNewLessonNotifierEvent() []string
- func AllTeacherGender() []string
- func EventLogEmailExists(ctx context.Context, exec boil.ContextExecutor, iD uint) (bool, error)
- func EventLogEmails(mods ...qm.QueryMod) eventLogEmailQuery
- func FlashMessageExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)
- func FlashMessages(mods ...qm.QueryMod) flashMessageQuery
- func FollowingTeacherExists(ctx context.Context, exec boil.ContextExecutor, userID uint, teacherID uint) (bool, error)
- func FollowingTeachers(mods ...qm.QueryMod) followingTeacherQuery
- func LessonExists(ctx context.Context, exec boil.ContextExecutor, iD uint64) (bool, error)
- func LessonStatusLogExists(ctx context.Context, exec boil.ContextExecutor, iD uint64) (bool, error)
- func LessonStatusLogs(mods ...qm.QueryMod) lessonStatusLogQuery
- func Lessons(mods ...qm.QueryMod) lessonQuery
- func MCountries(mods ...qm.QueryMod) mCountryQuery
- func MCountryExists(ctx context.Context, exec boil.ContextExecutor, iD uint16) (bool, error)
- func MPlanExists(ctx context.Context, exec boil.ContextExecutor, iD uint8) (bool, error)
- func MPlans(mods ...qm.QueryMod) mPlanQuery
- func NewQuery(mods ...qm.QueryMod) *queries.Query
- func NotificationTimeSpanExists(ctx context.Context, exec boil.ContextExecutor, userID uint, number uint8) (bool, error)
- func NotificationTimeSpanTimeFormat(hour, minute int) string
- func NotificationTimeSpanTimeParse(value string) (time.Time, error)
- func NotificationTimeSpans(mods ...qm.QueryMod) notificationTimeSpanQuery
- func StatDailyNotificationEventExists(ctx context.Context, exec boil.ContextExecutor, date time.Time, event string) (bool, error)
- func StatDailyNotificationEvents(mods ...qm.QueryMod) statDailyNotificationEventQuery
- func StatDailyUserNotificationEventExists(ctx context.Context, exec boil.ContextExecutor, date time.Time, userID uint, ...) (bool, error)
- func StatDailyUserNotificationEvents(mods ...qm.QueryMod) statDailyUserNotificationEventQuery
- func StatNewLessonNotifierExists(ctx context.Context, exec boil.ContextExecutor, date time.Time, event string) (bool, error)
- func StatNewLessonNotifiers(mods ...qm.QueryMod) statNewLessonNotifierQuery
- func StatNotifierExists(ctx context.Context, exec boil.ContextExecutor, datetime time.Time, ...) (bool, error)
- func StatNotifiers(mods ...qm.QueryMod) statNotifierQuery
- func TeacherExists(ctx context.Context, exec boil.ContextExecutor, iD uint) (bool, error)
- func Teachers(mods ...qm.QueryMod) teacherQuery
- func UserAPITokenExists(ctx context.Context, exec boil.ContextExecutor, token string) (bool, error)
- func UserAPITokens(mods ...qm.QueryMod) userAPITokenQuery
- func UserExists(ctx context.Context, exec boil.ContextExecutor, iD uint) (bool, error)
- func UserGoogleExists(ctx context.Context, exec boil.ContextExecutor, googleID string) (bool, error)
- func UserGoogles(mods ...qm.QueryMod) userGoogleQuery
- func Users(mods ...qm.QueryMod) userQuery
- type EventLogEmail
- func (o *EventLogEmail) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *EventLogEmail) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *EventLogEmail) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *EventLogEmail) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *EventLogEmail) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *EventLogEmail) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type EventLogEmailHook
- type EventLogEmailSlice
- func (o EventLogEmailSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *EventLogEmailSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o EventLogEmailSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type FlashMessage
- func (o *FlashMessage) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *FlashMessage) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *FlashMessage) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *FlashMessage) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *FlashMessage) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *FlashMessage) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type FlashMessageHook
- type FlashMessageSlice
- type FollowingTeacher
- func (o *FollowingTeacher) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *FollowingTeacher) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *FollowingTeacher) ID() string
- func (o *FollowingTeacher) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *FollowingTeacher) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *FollowingTeacher) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *FollowingTeacher) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type FollowingTeacherHook
- type FollowingTeacherSlice
- func (o FollowingTeacherSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *FollowingTeacherSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o FollowingTeacherSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type GAMeasurementEvent
- type Lesson
- func (o *Lesson) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Lesson) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *Lesson) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Lesson) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (l *Lesson) String() string
- func (o *Lesson) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Lesson) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type LessonDatetime
- type LessonHook
- type LessonSlice
- type LessonStatus
- type LessonStatusLog
- func (o *LessonStatusLog) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *LessonStatusLog) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *LessonStatusLog) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *LessonStatusLog) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *LessonStatusLog) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *LessonStatusLog) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type LessonStatusLogHook
- type LessonStatusLogSlice
- func (o LessonStatusLogSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *LessonStatusLogSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o LessonStatusLogSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type M
- type MCountry
- func (o *MCountry) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *MCountry) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *MCountry) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *MCountry) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *MCountry) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *MCountry) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type MCountryHook
- type MCountryList
- type MCountrySlice
- type MPlan
- func (o *MPlan) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *MPlan) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *MPlan) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *MPlan) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *MPlan) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *MPlan) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type MPlanHook
- type MPlanSlice
- type NotificationTimeSpan
- func (o *NotificationTimeSpan) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *NotificationTimeSpan) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *NotificationTimeSpan) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *NotificationTimeSpan) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *NotificationTimeSpan) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *NotificationTimeSpan) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- func (s *NotificationTimeSpan) Within(t time.Time) bool
- type NotificationTimeSpanHook
- type NotificationTimeSpanList
- type NotificationTimeSpanSlice
- func (o NotificationTimeSpanSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *NotificationTimeSpanSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o NotificationTimeSpanSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type StatDailyNotificationEvent
- func (o *StatDailyNotificationEvent) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *StatDailyNotificationEvent) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *StatDailyNotificationEvent) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *StatDailyNotificationEvent) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *StatDailyNotificationEvent) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *StatDailyNotificationEvent) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type StatDailyNotificationEventHook
- type StatDailyNotificationEventSlice
- func (o StatDailyNotificationEventSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *StatDailyNotificationEventSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o StatDailyNotificationEventSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type StatDailyUserNotificationEvent
- func (o *StatDailyUserNotificationEvent) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *StatDailyUserNotificationEvent) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *StatDailyUserNotificationEvent) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *StatDailyUserNotificationEvent) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *StatDailyUserNotificationEvent) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *StatDailyUserNotificationEvent) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type StatDailyUserNotificationEventHook
- type StatDailyUserNotificationEventSlice
- func (o StatDailyUserNotificationEventSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *StatDailyUserNotificationEventSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o StatDailyUserNotificationEventSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type StatNewLessonNotifier
- func (o *StatNewLessonNotifier) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *StatNewLessonNotifier) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *StatNewLessonNotifier) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *StatNewLessonNotifier) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *StatNewLessonNotifier) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *StatNewLessonNotifier) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type StatNewLessonNotifierHook
- type StatNewLessonNotifierSlice
- func (o StatNewLessonNotifierSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *StatNewLessonNotifierSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o StatNewLessonNotifierSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type StatNotifier
- func (o *StatNotifier) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *StatNotifier) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *StatNotifier) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *StatNotifier) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *StatNotifier) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *StatNotifier) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type StatNotifierHook
- type StatNotifierSlice
- type Teacher
- func (o *Teacher) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Teacher) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *Teacher) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Teacher) IsJapanese() bool
- func (o *Teacher) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Teacher) URL() string
- func (o *Teacher) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Teacher) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type TeacherHook
- type TeacherLessons
- type TeacherSlice
- type User
- 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) IsFollowedTeacher() bool
- 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
- type UserAPIToken
- func (o *UserAPIToken) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *UserAPIToken) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *UserAPIToken) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *UserAPIToken) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *UserAPIToken) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *UserAPIToken) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type UserAPITokenHook
- type UserAPITokenSlice
- type UserGoogle
- func (o *UserGoogle) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *UserGoogle) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *UserGoogle) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *UserGoogle) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *UserGoogle) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *UserGoogle) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type UserGoogleHook
- type UserGoogleSlice
- type UserHook
- type UserSlice
Constants ¶
const ( EventLogEmailEventClick string = "click" EventLogEmailEventDelivered string = "delivered" EventLogEmailEventOpen string = "open" EventLogEmailEventDeferred string = "deferred" EventLogEmailEventDropped string = "dropped" EventLogEmailEventBounce string = "bounce" EventLogEmailEventBlock string = "block" )
Enum values for EventLogEmailEvent
const ( EventLogEmailEmailTypeNewLessonNotifier string = "new_lesson_notifier" EventLogEmailEmailTypeFollowReminder string = "follow_reminder" EventLogEmailEmailTypeRegistration string = "registration" )
Enum values for EventLogEmailEmailType
const ( LessonStatusFinished string = "finished" LessonStatusReserved string = "reserved" LessonStatusAvailable string = "available" LessonStatusCancelled string = "cancelled" )
Enum values for LessonStatus
const ( LessonStatusLogStatusFinished string = "finished" LessonStatusLogStatusReserved string = "reserved" LessonStatusLogStatusAvailable string = "available" LessonStatusLogStatusCancelled string = "cancelled" )
Enum values for LessonStatusLogStatus
const ( StatDailyNotificationEventEventClick string = "click" StatDailyNotificationEventEventDelivered string = "delivered" StatDailyNotificationEventEventOpen string = "open" StatDailyNotificationEventEventDeferred string = "deferred" StatDailyNotificationEventEventDropped string = "dropped" StatDailyNotificationEventEventBounce string = "bounce" StatDailyNotificationEventEventBlock string = "block" )
Enum values for StatDailyNotificationEventEvent
const ( StatNewLessonNotifierEventClick string = "click" StatNewLessonNotifierEventDelivered string = "delivered" StatNewLessonNotifierEventOpen string = "open" StatNewLessonNotifierEventDeferred string = "deferred" StatNewLessonNotifierEventDropped string = "dropped" StatNewLessonNotifierEventBounce string = "bounce" StatNewLessonNotifierEventBlock string = "block" )
Enum values for StatNewLessonNotifierEvent
const ( TeacherGenderFemale string = "female" TeacherGenderMale string = "male" TeacherGenderOther string = "other" )
Enum values for TeacherGender
const ( EmailTypeNewLessonNotifier = "new_lesson_notifier" EmailTypeFollowReminder = "follow_reminder" EmailTypeRegistration = "registration" )
const ( GAMeasurementEventCategoryEmail = "email" GAMeasurementEventCategoryUser = "user" GAMeasurementEventCategoryFollowingTeacher = "followingTeacher" )
const ( DBDateFormat = "2006-01-02" DBDatetimeFormat = "2006-01-02 15:04:05" )
const (
StatDailyUserNotificationEventEventOpen string = "open"
)
Enum values for StatDailyUserNotificationEventEvent
const UserAPITokenExpiration = time.Hour * 24 * 30
Variables ¶
var ErrSyncFail = errors.New("model2: 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 EventLogEmailColumns = struct { ID string Datetime string Event string EmailType string UserID string UserAgent string TeacherIds string URL string }{ ID: "id", Datetime: "datetime", Event: "event", EmailType: "email_type", UserID: "user_id", UserAgent: "user_agent", TeacherIds: "teacher_ids", URL: "url", }
var EventLogEmailRels = struct {
}{}
EventLogEmailRels is where relationship names are stored.
var EventLogEmailTableColumns = struct { ID string Datetime string Event string EmailType string UserID string UserAgent string TeacherIds string URL string }{ ID: "event_log_email.id", Datetime: "event_log_email.datetime", Event: "event_log_email.event", EmailType: "event_log_email.email_type", UserID: "event_log_email.user_id", UserAgent: "event_log_email.user_agent", TeacherIds: "event_log_email.teacher_ids", URL: "event_log_email.url", }
var EventLogEmailWhere = struct { ID whereHelperuint Datetime whereHelpertime_Time Event whereHelperstring EmailType whereHelperstring UserID whereHelperuint UserAgent whereHelperstring TeacherIds whereHelperstring URL whereHelperstring }{ ID: whereHelperuint{/* contains filtered or unexported fields */}, Datetime: whereHelpertime_Time{/* contains filtered or unexported fields */}, Event: whereHelperstring{/* contains filtered or unexported fields */}, EmailType: whereHelperstring{/* contains filtered or unexported fields */}, UserID: whereHelperuint{/* contains filtered or unexported fields */}, UserAgent: whereHelperstring{/* contains filtered or unexported fields */}, TeacherIds: whereHelperstring{/* contains filtered or unexported fields */}, URL: whereHelperstring{/* contains filtered or unexported fields */}, }
var FlashMessageColumns = struct { ID string Value string ExpiredAt string }{ ID: "id", Value: "value", ExpiredAt: "expired_at", }
var FlashMessageRels = struct {
}{}
FlashMessageRels is where relationship names are stored.
var FlashMessageTableColumns = struct { ID string Value string ExpiredAt string }{ ID: "flash_message.id", Value: "flash_message.value", ExpiredAt: "flash_message.expired_at", }
var FlashMessageWhere = struct { ID whereHelperstring Value whereHelpertypes_JSON ExpiredAt whereHelpertime_Time }{ ID: whereHelperstring{/* contains filtered or unexported fields */}, Value: whereHelpertypes_JSON{/* contains filtered or unexported fields */}, ExpiredAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
var FollowingTeacherColumns = struct { UserID string TeacherID string CreatedAt string UpdatedAt string }{ UserID: "user_id", TeacherID: "teacher_id", CreatedAt: "created_at", UpdatedAt: "updated_at", }
var FollowingTeacherRels = struct {
}{}
FollowingTeacherRels is where relationship names are stored.
var FollowingTeacherTableColumns = struct { UserID string TeacherID string CreatedAt string UpdatedAt string }{ UserID: "following_teacher.user_id", TeacherID: "following_teacher.teacher_id", CreatedAt: "following_teacher.created_at", UpdatedAt: "following_teacher.updated_at", }
var FollowingTeacherWhere = struct { UserID whereHelperuint TeacherID whereHelperuint CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time }{ UserID: whereHelperuint{/* contains filtered or unexported fields */}, TeacherID: whereHelperuint{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
var LessonColumns = struct { ID string TeacherID string Datetime string Status string CreatedAt string UpdatedAt string }{ ID: "id", TeacherID: "teacher_id", Datetime: "datetime", Status: "status", CreatedAt: "created_at", UpdatedAt: "updated_at", }
var LessonRels = struct {
}{}
LessonRels is where relationship names are stored.
var LessonStatusLogColumns = struct { ID string LessonID string Status string CreatedAt string }{ ID: "id", LessonID: "lesson_id", Status: "status", CreatedAt: "created_at", }
var LessonStatusLogRels = struct {
}{}
LessonStatusLogRels is where relationship names are stored.
var LessonStatusLogTableColumns = struct { ID string LessonID string Status string CreatedAt string }{ ID: "lesson_status_log.id", LessonID: "lesson_status_log.lesson_id", Status: "lesson_status_log.status", CreatedAt: "lesson_status_log.created_at", }
var LessonStatusLogWhere = struct { ID whereHelperuint64 LessonID whereHelperuint64 Status whereHelperstring CreatedAt whereHelpertime_Time }{ ID: whereHelperuint64{/* contains filtered or unexported fields */}, LessonID: whereHelperuint64{/* contains filtered or unexported fields */}, Status: whereHelperstring{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
var LessonStatuses = goenum.EnumerateStruct(&LessonStatus{
Finished: 1,
Reserved: 2,
Available: 3,
Cancelled: 4,
})
var LessonTableColumns = struct { ID string TeacherID string Datetime string Status string CreatedAt string UpdatedAt string }{ ID: "lesson.id", TeacherID: "lesson.teacher_id", Datetime: "lesson.datetime", Status: "lesson.status", CreatedAt: "lesson.created_at", UpdatedAt: "lesson.updated_at", }
var LessonWhere = struct { ID whereHelperuint64 TeacherID whereHelperuint Datetime whereHelpertime_Time Status whereHelperstring CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time }{ ID: whereHelperuint64{/* contains filtered or unexported fields */}, TeacherID: whereHelperuint{/* contains filtered or unexported fields */}, Datetime: whereHelpertime_Time{/* contains filtered or unexported fields */}, Status: whereHelperstring{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
var MCountryColumns = struct { ID string Name string NameJa string CreatedAt string UpdatedAt string }{ ID: "id", Name: "name", NameJa: "name_ja", CreatedAt: "created_at", UpdatedAt: "updated_at", }
var MCountryRels = struct {
}{}
MCountryRels is where relationship names are stored.
var MCountryTableColumns = struct { ID string Name string NameJa string CreatedAt string UpdatedAt string }{ ID: "m_country.id", Name: "m_country.name", NameJa: "m_country.name_ja", CreatedAt: "m_country.created_at", UpdatedAt: "m_country.updated_at", }
var MCountryWhere = struct { ID whereHelperuint16 Name whereHelperstring NameJa whereHelperstring CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time }{ ID: whereHelperuint16{/* contains filtered or unexported fields */}, Name: whereHelperstring{/* contains filtered or unexported fields */}, NameJa: whereHelperstring{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
var MPlanColumns = struct { ID string Name string InternalName string StripeTestProductID string Price string NotificationInterval string ShowAd string MaxFollowingTeacher string CreatedAt string UpdatedAt string }{ ID: "id", Name: "name", InternalName: "internal_name", StripeTestProductID: "stripe_test_product_id", Price: "price", NotificationInterval: "notification_interval", ShowAd: "show_ad", MaxFollowingTeacher: "max_following_teacher", CreatedAt: "created_at", UpdatedAt: "updated_at", }
var MPlanRels = struct {
}{}
MPlanRels is where relationship names are stored.
var MPlanTableColumns = struct { ID string Name string InternalName string StripeTestProductID string Price string NotificationInterval string ShowAd string MaxFollowingTeacher string CreatedAt string UpdatedAt string }{ ID: "m_plan.id", Name: "m_plan.name", InternalName: "m_plan.internal_name", StripeTestProductID: "m_plan.stripe_test_product_id", Price: "m_plan.price", NotificationInterval: "m_plan.notification_interval", ShowAd: "m_plan.show_ad", MaxFollowingTeacher: "m_plan.max_following_teacher", CreatedAt: "m_plan.created_at", UpdatedAt: "m_plan.updated_at", }
var MPlanWhere = struct { ID whereHelperuint8 Name whereHelperstring InternalName whereHelperstring StripeTestProductID whereHelpernull_String Price whereHelperint32 NotificationInterval whereHelperuint8 ShowAd whereHelperuint8 MaxFollowingTeacher whereHelperuint8 CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time }{ ID: whereHelperuint8{/* contains filtered or unexported fields */}, Name: whereHelperstring{/* contains filtered or unexported fields */}, InternalName: whereHelperstring{/* contains filtered or unexported fields */}, StripeTestProductID: whereHelpernull_String{/* contains filtered or unexported fields */}, Price: whereHelperint32{/* contains filtered or unexported fields */}, NotificationInterval: whereHelperuint8{/* contains filtered or unexported fields */}, ShowAd: whereHelperuint8{/* contains filtered or unexported fields */}, MaxFollowingTeacher: whereHelperuint8{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
var NotificationTimeSpanColumns = struct { UserID string Number string FromTime string ToTime string CreatedAt string }{ UserID: "user_id", Number: "number", FromTime: "from_time", ToTime: "to_time", CreatedAt: "created_at", }
var NotificationTimeSpanRels = struct {
}{}
NotificationTimeSpanRels is where relationship names are stored.
var NotificationTimeSpanTableColumns = struct { UserID string Number string FromTime string ToTime string CreatedAt string }{ UserID: "notification_time_span.user_id", Number: "notification_time_span.number", FromTime: "notification_time_span.from_time", ToTime: "notification_time_span.to_time", CreatedAt: "notification_time_span.created_at", }
var NotificationTimeSpanWhere = struct { UserID whereHelperuint Number whereHelperuint8 FromTime whereHelperstring ToTime whereHelperstring CreatedAt whereHelpertime_Time }{ UserID: whereHelperuint{/* contains filtered or unexported fields */}, Number: whereHelperuint8{/* contains filtered or unexported fields */}, FromTime: whereHelperstring{/* contains filtered or unexported fields */}, ToTime: whereHelperstring{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
var StatDailyNotificationEventColumns = struct { Date string Event string Count string UuCount string }{ Date: "date", Event: "event", Count: "count", UuCount: "uu_count", }
var StatDailyNotificationEventRels = struct {
}{}
StatDailyNotificationEventRels is where relationship names are stored.
var StatDailyNotificationEventTableColumns = struct { Date string Event string Count string UuCount string }{ Date: "stat_daily_notification_event.date", Event: "stat_daily_notification_event.event", Count: "stat_daily_notification_event.count", UuCount: "stat_daily_notification_event.uu_count", }
var StatDailyNotificationEventWhere = struct { Date whereHelpertime_Time Event whereHelperstring Count whereHelperuint UuCount whereHelperuint }{ Date: whereHelpertime_Time{/* contains filtered or unexported fields */}, Event: whereHelperstring{/* contains filtered or unexported fields */}, Count: whereHelperuint{/* contains filtered or unexported fields */}, UuCount: whereHelperuint{/* contains filtered or unexported fields */}, }
var StatDailyUserNotificationEventColumns = struct { Date string UserID string Event string Count string }{ Date: "date", UserID: "user_id", Event: "event", Count: "count", }
var StatDailyUserNotificationEventRels = struct {
}{}
StatDailyUserNotificationEventRels is where relationship names are stored.
var StatDailyUserNotificationEventTableColumns = struct { Date string UserID string Event string Count string }{ Date: "stat_daily_user_notification_event.date", UserID: "stat_daily_user_notification_event.user_id", Event: "stat_daily_user_notification_event.event", Count: "stat_daily_user_notification_event.count", }
var StatDailyUserNotificationEventWhere = struct { Date whereHelpertime_Time UserID whereHelperuint Event whereHelperstring Count whereHelperuint }{ Date: whereHelpertime_Time{/* contains filtered or unexported fields */}, UserID: whereHelperuint{/* contains filtered or unexported fields */}, Event: whereHelperstring{/* contains filtered or unexported fields */}, Count: whereHelperuint{/* contains filtered or unexported fields */}, }
var StatNewLessonNotifierColumns = struct { Date string Event string Count string UuCount string }{ Date: "date", Event: "event", Count: "count", UuCount: "uu_count", }
var StatNewLessonNotifierRels = struct {
}{}
StatNewLessonNotifierRels is where relationship names are stored.
var StatNewLessonNotifierTableColumns = struct { Date string Event string Count string UuCount string }{ Date: "stat_new_lesson_notifier.date", Event: "stat_new_lesson_notifier.event", Count: "stat_new_lesson_notifier.count", UuCount: "stat_new_lesson_notifier.uu_count", }
var StatNewLessonNotifierWhere = struct { Date whereHelpertime_Time Event whereHelperstring Count whereHelperuint UuCount whereHelperuint }{ Date: whereHelpertime_Time{/* contains filtered or unexported fields */}, Event: whereHelperstring{/* contains filtered or unexported fields */}, Count: whereHelperuint{/* contains filtered or unexported fields */}, UuCount: whereHelperuint{/* contains filtered or unexported fields */}, }
var StatNotifierColumns = struct { Datetime string Interval string Elapsed string UserCount string FollowedTeacherCount string }{ Datetime: "datetime", Interval: "interval", Elapsed: "elapsed", UserCount: "user_count", FollowedTeacherCount: "followed_teacher_count", }
var StatNotifierRels = struct {
}{}
StatNotifierRels is where relationship names are stored.
var StatNotifierTableColumns = struct { Datetime string Interval string Elapsed string UserCount string FollowedTeacherCount string }{ Datetime: "stat_notifier.datetime", Interval: "stat_notifier.interval", Elapsed: "stat_notifier.elapsed", UserCount: "stat_notifier.user_count", FollowedTeacherCount: "stat_notifier.followed_teacher_count", }
var StatNotifierWhere = struct { Datetime whereHelpertime_Time Interval whereHelperuint8 Elapsed whereHelperuint UserCount whereHelperuint FollowedTeacherCount whereHelperuint }{ Datetime: whereHelpertime_Time{/* contains filtered or unexported fields */}, Interval: whereHelperuint8{/* contains filtered or unexported fields */}, Elapsed: whereHelperuint{/* contains filtered or unexported fields */}, UserCount: whereHelperuint{/* contains filtered or unexported fields */}, FollowedTeacherCount: whereHelperuint{/* contains filtered or unexported fields */}, }
var TableNames = struct { EventLogEmail string FlashMessage string FollowingTeacher string Lesson string LessonStatusLog string MCountry string MPlan string NotificationTimeSpan string StatDailyNotificationEvent string StatDailyUserNotificationEvent string StatNewLessonNotifier string StatNotifier string Teacher string User string UserAPIToken string UserGoogle string }{ EventLogEmail: "event_log_email", FlashMessage: "flash_message", FollowingTeacher: "following_teacher", Lesson: "lesson", LessonStatusLog: "lesson_status_log", MCountry: "m_country", MPlan: "m_plan", NotificationTimeSpan: "notification_time_span", StatDailyNotificationEvent: "stat_daily_notification_event", StatDailyUserNotificationEvent: "stat_daily_user_notification_event", StatNewLessonNotifier: "stat_new_lesson_notifier", StatNotifier: "stat_notifier", Teacher: "teacher", User: "user", UserAPIToken: "user_api_token", UserGoogle: "user_google", }
var TeacherColumns = struct { ID string Name string CountryID string Gender string Birthday string YearsOfExperience string FavoriteCount string ReviewCount string Rating string LastLessonAt string FetchErrorCount string CreatedAt string UpdatedAt string }{ ID: "id", Name: "name", CountryID: "country_id", Gender: "gender", Birthday: "birthday", YearsOfExperience: "years_of_experience", FavoriteCount: "favorite_count", ReviewCount: "review_count", Rating: "rating", LastLessonAt: "last_lesson_at", FetchErrorCount: "fetch_error_count", CreatedAt: "created_at", UpdatedAt: "updated_at", }
var TeacherRels = struct {
}{}
TeacherRels is where relationship names are stored.
var TeacherTableColumns = struct { ID string Name string CountryID string Gender string Birthday string YearsOfExperience string FavoriteCount string ReviewCount string Rating string LastLessonAt string FetchErrorCount string CreatedAt string UpdatedAt string }{ ID: "teacher.id", Name: "teacher.name", CountryID: "teacher.country_id", Gender: "teacher.gender", Birthday: "teacher.birthday", YearsOfExperience: "teacher.years_of_experience", FavoriteCount: "teacher.favorite_count", ReviewCount: "teacher.review_count", Rating: "teacher.rating", LastLessonAt: "teacher.last_lesson_at", FetchErrorCount: "teacher.fetch_error_count", CreatedAt: "teacher.created_at", UpdatedAt: "teacher.updated_at", }
var TeacherWhere = struct { ID whereHelperuint Name whereHelperstring CountryID whereHelperint16 Gender whereHelperstring Birthday whereHelpertime_Time YearsOfExperience whereHelperint8 FavoriteCount whereHelperuint ReviewCount whereHelperuint Rating whereHelpertypes_NullDecimal LastLessonAt whereHelpertime_Time FetchErrorCount whereHelperuint8 CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time }{ ID: whereHelperuint{/* contains filtered or unexported fields */}, Name: whereHelperstring{/* contains filtered or unexported fields */}, CountryID: whereHelperint16{/* contains filtered or unexported fields */}, Gender: whereHelperstring{/* contains filtered or unexported fields */}, Birthday: whereHelpertime_Time{/* contains filtered or unexported fields */}, YearsOfExperience: whereHelperint8{/* contains filtered or unexported fields */}, FavoriteCount: whereHelperuint{/* contains filtered or unexported fields */}, ReviewCount: whereHelperuint{/* contains filtered or unexported fields */}, Rating: whereHelpertypes_NullDecimal{/* contains filtered or unexported fields */}, LastLessonAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, FetchErrorCount: whereHelperuint8{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
var UserAPITokenColumns = struct { Token string UserID string CreatedAt string UpdatedAt string }{ Token: "token", UserID: "user_id", CreatedAt: "created_at", UpdatedAt: "updated_at", }
var UserAPITokenRels = struct {
}{}
UserAPITokenRels is where relationship names are stored.
var UserAPITokenTableColumns = struct { Token string UserID string CreatedAt string UpdatedAt string }{ Token: "user_api_token.token", UserID: "user_api_token.user_id", CreatedAt: "user_api_token.created_at", UpdatedAt: "user_api_token.updated_at", }
var UserAPITokenWhere = struct { Token whereHelperstring UserID whereHelperuint CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time }{ Token: whereHelperstring{/* contains filtered or unexported fields */}, UserID: whereHelperuint{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
var UserColumns = struct { ID string Name string Email string EmailVerified string PlanID string FollowedTeacherAt string OpenNotificationAt string CreatedAt string UpdatedAt string }{ ID: "id", Name: "name", Email: "email", EmailVerified: "email_verified", PlanID: "plan_id", FollowedTeacherAt: "followed_teacher_at", OpenNotificationAt: "open_notification_at", CreatedAt: "created_at", UpdatedAt: "updated_at", }
var UserGoogleColumns = struct { GoogleID string UserID string CreatedAt string UpdatedAt string }{ GoogleID: "google_id", UserID: "user_id", CreatedAt: "created_at", UpdatedAt: "updated_at", }
var UserGoogleRels = struct {
}{}
UserGoogleRels is where relationship names are stored.
var UserGoogleTableColumns = struct { GoogleID string UserID string CreatedAt string UpdatedAt string }{ GoogleID: "user_google.google_id", UserID: "user_google.user_id", CreatedAt: "user_google.created_at", UpdatedAt: "user_google.updated_at", }
var UserGoogleWhere = struct { GoogleID whereHelperstring UserID whereHelperuint CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time }{ GoogleID: whereHelperstring{/* contains filtered or unexported fields */}, UserID: whereHelperuint{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
var UserRels = struct {
}{}
UserRels is where relationship names are stored.
var UserTableColumns = struct { ID string Name string Email string EmailVerified string PlanID string FollowedTeacherAt string OpenNotificationAt string CreatedAt string UpdatedAt string }{ ID: "user.id", Name: "user.name", Email: "user.email", EmailVerified: "user.email_verified", PlanID: "user.plan_id", FollowedTeacherAt: "user.followed_teacher_at", OpenNotificationAt: "user.open_notification_at", CreatedAt: "user.created_at", UpdatedAt: "user.updated_at", }
var UserWhere = struct { ID whereHelperuint Name whereHelperstring Email whereHelperstring EmailVerified whereHelperuint8 PlanID whereHelperuint8 FollowedTeacherAt whereHelpernull_Time OpenNotificationAt whereHelpernull_Time CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time }{ ID: whereHelperuint{/* contains filtered or unexported fields */}, Name: whereHelperstring{/* contains filtered or unexported fields */}, Email: whereHelperstring{/* contains filtered or unexported fields */}, EmailVerified: whereHelperuint8{/* contains filtered or unexported fields */}, PlanID: whereHelperuint8{/* contains filtered or unexported fields */}, FollowedTeacherAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, OpenNotificationAt: whereHelpernull_Time{/* 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 AddEventLogEmailHook ¶
func AddEventLogEmailHook(hookPoint boil.HookPoint, eventLogEmailHook EventLogEmailHook)
AddEventLogEmailHook registers your hook function for all future operations.
func AddFlashMessageHook ¶
func AddFlashMessageHook(hookPoint boil.HookPoint, flashMessageHook FlashMessageHook)
AddFlashMessageHook registers your hook function for all future operations.
func AddFollowingTeacherHook ¶
func AddFollowingTeacherHook(hookPoint boil.HookPoint, followingTeacherHook FollowingTeacherHook)
AddFollowingTeacherHook registers your hook function for all future operations.
func AddLessonHook ¶
func AddLessonHook(hookPoint boil.HookPoint, lessonHook LessonHook)
AddLessonHook registers your hook function for all future operations.
func AddLessonStatusLogHook ¶
func AddLessonStatusLogHook(hookPoint boil.HookPoint, lessonStatusLogHook LessonStatusLogHook)
AddLessonStatusLogHook registers your hook function for all future operations.
func AddMCountryHook ¶
func AddMCountryHook(hookPoint boil.HookPoint, mCountryHook MCountryHook)
AddMCountryHook registers your hook function for all future operations.
func AddMPlanHook ¶
AddMPlanHook registers your hook function for all future operations.
func AddNotificationTimeSpanHook ¶
func AddNotificationTimeSpanHook(hookPoint boil.HookPoint, notificationTimeSpanHook NotificationTimeSpanHook)
AddNotificationTimeSpanHook registers your hook function for all future operations.
func AddStatDailyNotificationEventHook ¶
func AddStatDailyNotificationEventHook(hookPoint boil.HookPoint, statDailyNotificationEventHook StatDailyNotificationEventHook)
AddStatDailyNotificationEventHook registers your hook function for all future operations.
func AddStatDailyUserNotificationEventHook ¶
func AddStatDailyUserNotificationEventHook(hookPoint boil.HookPoint, statDailyUserNotificationEventHook StatDailyUserNotificationEventHook)
AddStatDailyUserNotificationEventHook registers your hook function for all future operations.
func AddStatNewLessonNotifierHook ¶
func AddStatNewLessonNotifierHook(hookPoint boil.HookPoint, statNewLessonNotifierHook StatNewLessonNotifierHook)
AddStatNewLessonNotifierHook registers your hook function for all future operations.
func AddStatNotifierHook ¶
func AddStatNotifierHook(hookPoint boil.HookPoint, statNotifierHook StatNotifierHook)
AddStatNotifierHook registers your hook function for all future operations.
func AddTeacherHook ¶
func AddTeacherHook(hookPoint boil.HookPoint, teacherHook TeacherHook)
AddTeacherHook registers your hook function for all future operations.
func AddUserAPITokenHook ¶
func AddUserAPITokenHook(hookPoint boil.HookPoint, userAPITokenHook UserAPITokenHook)
AddUserAPITokenHook registers your hook function for all future operations.
func AddUserGoogleHook ¶
func AddUserGoogleHook(hookPoint boil.HookPoint, userGoogleHook UserGoogleHook)
AddUserGoogleHook registers your hook function for all future operations.
func AddUserHook ¶
AddUserHook registers your hook function for all future operations.
func AllEventLogEmailEmailType ¶
func AllEventLogEmailEmailType() []string
func AllEventLogEmailEvent ¶
func AllEventLogEmailEvent() []string
func AllLessonStatus ¶
func AllLessonStatus() []string
func AllLessonStatusLogStatus ¶
func AllLessonStatusLogStatus() []string
func AllStatDailyNotificationEventEvent ¶
func AllStatDailyNotificationEventEvent() []string
func AllStatDailyUserNotificationEventEvent ¶
func AllStatDailyUserNotificationEventEvent() []string
func AllStatNewLessonNotifierEvent ¶
func AllStatNewLessonNotifierEvent() []string
func AllTeacherGender ¶
func AllTeacherGender() []string
func EventLogEmailExists ¶
EventLogEmailExists checks if the EventLogEmail row exists.
func EventLogEmails ¶
EventLogEmails retrieves all the records using an executor.
func FlashMessageExists ¶
FlashMessageExists checks if the FlashMessage row exists.
func FlashMessages ¶
FlashMessages retrieves all the records using an executor.
func FollowingTeacherExists ¶
func FollowingTeacherExists(ctx context.Context, exec boil.ContextExecutor, userID uint, teacherID uint) (bool, error)
FollowingTeacherExists checks if the FollowingTeacher row exists.
func FollowingTeachers ¶
FollowingTeachers retrieves all the records using an executor.
func LessonExists ¶
LessonExists checks if the Lesson row exists.
func LessonStatusLogExists ¶
LessonStatusLogExists checks if the LessonStatusLog row exists.
func LessonStatusLogs ¶
LessonStatusLogs retrieves all the records using an executor.
func MCountries ¶
MCountries retrieves all the records using an executor.
func MCountryExists ¶
MCountryExists checks if the MCountry row exists.
func MPlanExists ¶
MPlanExists checks if the MPlan row exists.
func NotificationTimeSpanExists ¶
func NotificationTimeSpanExists(ctx context.Context, exec boil.ContextExecutor, userID uint, number uint8) (bool, error)
NotificationTimeSpanExists checks if the NotificationTimeSpan row exists.
func NotificationTimeSpans ¶
NotificationTimeSpans retrieves all the records using an executor.
func StatDailyNotificationEventExists ¶
func StatDailyNotificationEventExists(ctx context.Context, exec boil.ContextExecutor, date time.Time, event string) (bool, error)
StatDailyNotificationEventExists checks if the StatDailyNotificationEvent row exists.
func StatDailyNotificationEvents ¶
StatDailyNotificationEvents retrieves all the records using an executor.
func StatDailyUserNotificationEventExists ¶
func StatDailyUserNotificationEventExists(ctx context.Context, exec boil.ContextExecutor, date time.Time, userID uint, event string) (bool, error)
StatDailyUserNotificationEventExists checks if the StatDailyUserNotificationEvent row exists.
func StatDailyUserNotificationEvents ¶
StatDailyUserNotificationEvents retrieves all the records using an executor.
func StatNewLessonNotifierExists ¶
func StatNewLessonNotifierExists(ctx context.Context, exec boil.ContextExecutor, date time.Time, event string) (bool, error)
StatNewLessonNotifierExists checks if the StatNewLessonNotifier row exists.
func StatNewLessonNotifiers ¶
StatNewLessonNotifiers retrieves all the records using an executor.
func StatNotifierExists ¶
func StatNotifierExists(ctx context.Context, exec boil.ContextExecutor, datetime time.Time, interval uint8) (bool, error)
StatNotifierExists checks if the StatNotifier row exists.
func StatNotifiers ¶
StatNotifiers retrieves all the records using an executor.
func TeacherExists ¶
TeacherExists checks if the Teacher row exists.
func UserAPITokenExists ¶
UserAPITokenExists checks if the UserAPIToken row exists.
func UserAPITokens ¶
UserAPITokens retrieves all the records using an executor.
func UserExists ¶
UserExists checks if the User row exists.
func UserGoogleExists ¶
func UserGoogleExists(ctx context.Context, exec boil.ContextExecutor, googleID string) (bool, error)
UserGoogleExists checks if the UserGoogle row exists.
func UserGoogles ¶
UserGoogles retrieves all the records using an executor.
Types ¶
type EventLogEmail ¶
type EventLogEmail struct { ID uint `boil:"id" json:"id" toml:"id" yaml:"id"` Datetime time.Time `boil:"datetime" json:"datetime" toml:"datetime" yaml:"datetime"` Event string `boil:"event" json:"event" toml:"event" yaml:"event"` EmailType string `boil:"email_type" json:"email_type" toml:"email_type" yaml:"email_type"` UserID uint `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"` UserAgent string `boil:"user_agent" json:"user_agent" toml:"user_agent" yaml:"user_agent"` TeacherIds string `boil:"teacher_ids" json:"teacher_ids" toml:"teacher_ids" yaml:"teacher_ids"` URL string `boil:"url" json:"url" toml:"url" yaml:"url"` R *eventLogEmailR `boil:"-" json:"-" toml:"-" yaml:"-"` L eventLogEmailL `boil:"-" json:"-" toml:"-" yaml:"-"` }
EventLogEmail is an object representing the database table.
func FindEventLogEmail ¶
func FindEventLogEmail(ctx context.Context, exec boil.ContextExecutor, iD uint, selectCols ...string) (*EventLogEmail, error)
FindEventLogEmail retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*EventLogEmail) Delete ¶
func (o *EventLogEmail) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single EventLogEmail record with an executor. Delete will match against the primary key column to find the record to delete.
func (*EventLogEmail) Exists ¶
func (o *EventLogEmail) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the EventLogEmail row exists.
func (*EventLogEmail) Insert ¶
func (o *EventLogEmail) 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 (*EventLogEmail) Reload ¶
func (o *EventLogEmail) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*EventLogEmail) Update ¶
func (o *EventLogEmail) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the EventLogEmail. 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 (*EventLogEmail) Upsert ¶
func (o *EventLogEmail) 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 EventLogEmailHook ¶
type EventLogEmailHook func(context.Context, boil.ContextExecutor, *EventLogEmail) error
EventLogEmailHook is the signature for custom EventLogEmail hook methods
type EventLogEmailSlice ¶
type EventLogEmailSlice []*EventLogEmail
EventLogEmailSlice is an alias for a slice of pointers to EventLogEmail. This should almost always be used instead of []EventLogEmail.
func (EventLogEmailSlice) DeleteAll ¶
func (o EventLogEmailSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*EventLogEmailSlice) ReloadAll ¶
func (o *EventLogEmailSlice) 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 (EventLogEmailSlice) UpdateAll ¶
func (o EventLogEmailSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type FlashMessage ¶
type FlashMessage struct { ID string `boil:"id" json:"id" toml:"id" yaml:"id"` Value types.JSON `boil:"value" json:"value" toml:"value" yaml:"value"` ExpiredAt time.Time `boil:"expired_at" json:"expired_at" toml:"expired_at" yaml:"expired_at"` R *flashMessageR `boil:"-" json:"-" toml:"-" yaml:"-"` L flashMessageL `boil:"-" json:"-" toml:"-" yaml:"-"` }
FlashMessage is an object representing the database table.
func FindFlashMessage ¶
func FindFlashMessage(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*FlashMessage, error)
FindFlashMessage retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*FlashMessage) Delete ¶
func (o *FlashMessage) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single FlashMessage record with an executor. Delete will match against the primary key column to find the record to delete.
func (*FlashMessage) Exists ¶
func (o *FlashMessage) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the FlashMessage row exists.
func (*FlashMessage) Insert ¶
func (o *FlashMessage) 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 (*FlashMessage) Reload ¶
func (o *FlashMessage) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*FlashMessage) Update ¶
func (o *FlashMessage) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the FlashMessage. 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 (*FlashMessage) Upsert ¶
func (o *FlashMessage) 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 FlashMessageHook ¶
type FlashMessageHook func(context.Context, boil.ContextExecutor, *FlashMessage) error
FlashMessageHook is the signature for custom FlashMessage hook methods
type FlashMessageSlice ¶
type FlashMessageSlice []*FlashMessage
FlashMessageSlice is an alias for a slice of pointers to FlashMessage. This should almost always be used instead of []FlashMessage.
func (FlashMessageSlice) DeleteAll ¶
func (o FlashMessageSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*FlashMessageSlice) ReloadAll ¶
func (o *FlashMessageSlice) 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 (FlashMessageSlice) UpdateAll ¶
func (o FlashMessageSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type FollowingTeacher ¶
type FollowingTeacher struct { UserID uint `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"` TeacherID uint `boil:"teacher_id" json:"teacher_id" toml:"teacher_id" yaml:"teacher_id"` 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 *followingTeacherR `boil:"-" json:"-" toml:"-" yaml:"-"` L followingTeacherL `boil:"-" json:"-" toml:"-" yaml:"-"` }
FollowingTeacher is an object representing the database table.
func FindFollowingTeacher ¶
func FindFollowingTeacher(ctx context.Context, exec boil.ContextExecutor, userID uint, teacherID uint, selectCols ...string) (*FollowingTeacher, error)
FindFollowingTeacher retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*FollowingTeacher) Delete ¶
func (o *FollowingTeacher) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single FollowingTeacher record with an executor. Delete will match against the primary key column to find the record to delete.
func (*FollowingTeacher) Exists ¶
func (o *FollowingTeacher) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the FollowingTeacher row exists.
func (*FollowingTeacher) ID ¶
func (o *FollowingTeacher) ID() string
func (*FollowingTeacher) Insert ¶
func (o *FollowingTeacher) 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 (*FollowingTeacher) Reload ¶
func (o *FollowingTeacher) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*FollowingTeacher) Update ¶
func (o *FollowingTeacher) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the FollowingTeacher. 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 (*FollowingTeacher) Upsert ¶
func (o *FollowingTeacher) 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 FollowingTeacherHook ¶
type FollowingTeacherHook func(context.Context, boil.ContextExecutor, *FollowingTeacher) error
FollowingTeacherHook is the signature for custom FollowingTeacher hook methods
type FollowingTeacherSlice ¶
type FollowingTeacherSlice []*FollowingTeacher
FollowingTeacherSlice is an alias for a slice of pointers to FollowingTeacher. This should almost always be used instead of []FollowingTeacher.
func (FollowingTeacherSlice) DeleteAll ¶
func (o FollowingTeacherSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*FollowingTeacherSlice) ReloadAll ¶
func (o *FollowingTeacherSlice) 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 (FollowingTeacherSlice) UpdateAll ¶
func (o FollowingTeacherSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type GAMeasurementEvent ¶
type Lesson ¶
type Lesson struct { ID uint64 `boil:"id" json:"id" toml:"id" yaml:"id"` TeacherID uint `boil:"teacher_id" json:"teacher_id" toml:"teacher_id" yaml:"teacher_id"` Datetime time.Time `boil:"datetime" json:"datetime" toml:"datetime" yaml:"datetime"` Status string `boil:"status" json:"status" toml:"status" yaml:"status"` 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 *lessonR `boil:"-" json:"-" toml:"-" yaml:"-"` L lessonL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Lesson is an object representing the database table.
func FindLesson ¶
func FindLesson(ctx context.Context, exec boil.ContextExecutor, iD uint64, selectCols ...string) (*Lesson, error)
FindLesson retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Lesson) Delete ¶
Delete deletes a single Lesson record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Lesson) Insert ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*Lesson) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Lesson) Update ¶
func (o *Lesson) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Lesson. 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 (*Lesson) Upsert ¶
func (o *Lesson) 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 LessonDatetime ¶
func ParseLessonDatetime ¶
func ParseLessonDatetime(s string) (LessonDatetime, error)
func (LessonDatetime) String ¶
func (ld LessonDatetime) String() string
type LessonHook ¶
LessonHook is the signature for custom Lesson hook methods
type LessonSlice ¶
type LessonSlice []*Lesson
LessonSlice is an alias for a slice of pointers to Lesson. This should almost always be used instead of []Lesson.
func (LessonSlice) DeleteAll ¶
func (o LessonSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*LessonSlice) ReloadAll ¶
func (o *LessonSlice) 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 (LessonSlice) UpdateAll ¶
func (o LessonSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type LessonStatus ¶
type LessonStatusLog ¶
type LessonStatusLog struct { ID uint64 `boil:"id" json:"id" toml:"id" yaml:"id"` LessonID uint64 `boil:"lesson_id" json:"lesson_id" toml:"lesson_id" yaml:"lesson_id"` Status string `boil:"status" json:"status" toml:"status" yaml:"status"` CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"` R *lessonStatusLogR `boil:"-" json:"-" toml:"-" yaml:"-"` L lessonStatusLogL `boil:"-" json:"-" toml:"-" yaml:"-"` }
LessonStatusLog is an object representing the database table.
func FindLessonStatusLog ¶
func FindLessonStatusLog(ctx context.Context, exec boil.ContextExecutor, iD uint64, selectCols ...string) (*LessonStatusLog, error)
FindLessonStatusLog retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*LessonStatusLog) Delete ¶
func (o *LessonStatusLog) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single LessonStatusLog record with an executor. Delete will match against the primary key column to find the record to delete.
func (*LessonStatusLog) Exists ¶
func (o *LessonStatusLog) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the LessonStatusLog row exists.
func (*LessonStatusLog) Insert ¶
func (o *LessonStatusLog) 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 (*LessonStatusLog) Reload ¶
func (o *LessonStatusLog) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*LessonStatusLog) Update ¶
func (o *LessonStatusLog) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the LessonStatusLog. 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 (*LessonStatusLog) Upsert ¶
func (o *LessonStatusLog) 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 LessonStatusLogHook ¶
type LessonStatusLogHook func(context.Context, boil.ContextExecutor, *LessonStatusLog) error
LessonStatusLogHook is the signature for custom LessonStatusLog hook methods
type LessonStatusLogSlice ¶
type LessonStatusLogSlice []*LessonStatusLog
LessonStatusLogSlice is an alias for a slice of pointers to LessonStatusLog. This should almost always be used instead of []LessonStatusLog.
func (LessonStatusLogSlice) DeleteAll ¶
func (o LessonStatusLogSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*LessonStatusLogSlice) ReloadAll ¶
func (o *LessonStatusLogSlice) 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 (LessonStatusLogSlice) UpdateAll ¶
func (o LessonStatusLogSlice) 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 MCountry ¶
type MCountry struct { ID uint16 `boil:"id" json:"id" toml:"id" yaml:"id"` Name string `boil:"name" json:"name" toml:"name" yaml:"name"` NameJa string `boil:"name_ja" json:"name_ja" toml:"name_ja" yaml:"name_ja"` 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 *mCountryR `boil:"-" json:"-" toml:"-" yaml:"-"` L mCountryL `boil:"-" json:"-" toml:"-" yaml:"-"` }
MCountry is an object representing the database table.
func FindMCountry ¶
func FindMCountry(ctx context.Context, exec boil.ContextExecutor, iD uint16, selectCols ...string) (*MCountry, error)
FindMCountry retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*MCountry) Delete ¶
Delete deletes a single MCountry record with an executor. Delete will match against the primary key column to find the record to delete.
func (*MCountry) Insert ¶
func (o *MCountry) 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 (*MCountry) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*MCountry) Update ¶
func (o *MCountry) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the MCountry. 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 (*MCountry) Upsert ¶
func (o *MCountry) 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 MCountryHook ¶
MCountryHook is the signature for custom MCountry hook methods
type MCountryList ¶
type MCountryList struct {
// contains filtered or unexported fields
}
func NewMCountryList ¶
func NewMCountryList(values []*MCountry) *MCountryList
func (*MCountryList) GetByNameJA ¶
func (mc *MCountryList) GetByNameJA(name string) (*MCountry, bool)
type MCountrySlice ¶
type MCountrySlice []*MCountry
MCountrySlice is an alias for a slice of pointers to MCountry. This should almost always be used instead of []MCountry.
func (MCountrySlice) DeleteAll ¶
func (o MCountrySlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*MCountrySlice) ReloadAll ¶
func (o *MCountrySlice) 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 (MCountrySlice) UpdateAll ¶
func (o MCountrySlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type MPlan ¶
type MPlan struct { ID uint8 `boil:"id" json:"id" toml:"id" yaml:"id"` Name string `boil:"name" json:"name" toml:"name" yaml:"name"` InternalName string `boil:"internal_name" json:"internal_name" toml:"internal_name" yaml:"internal_name"` StripeTestProductID null.String `` /* 139-byte string literal not displayed */ Price int32 `boil:"price" json:"price" toml:"price" yaml:"price"` NotificationInterval uint8 `boil:"notification_interval" json:"notification_interval" toml:"notification_interval" yaml:"notification_interval"` ShowAd uint8 `boil:"show_ad" json:"show_ad" toml:"show_ad" yaml:"show_ad"` MaxFollowingTeacher uint8 `boil:"max_following_teacher" json:"max_following_teacher" toml:"max_following_teacher" yaml:"max_following_teacher"` 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 *mPlanR `boil:"-" json:"-" toml:"-" yaml:"-"` L mPlanL `boil:"-" json:"-" toml:"-" yaml:"-"` }
MPlan is an object representing the database table.
func FindMPlan ¶
func FindMPlan(ctx context.Context, exec boil.ContextExecutor, iD uint8, selectCols ...string) (*MPlan, error)
FindMPlan retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*MPlan) Delete ¶
Delete deletes a single MPlan record with an executor. Delete will match against the primary key column to find the record to delete.
func (*MPlan) Insert ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*MPlan) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*MPlan) Update ¶
func (o *MPlan) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the MPlan. 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 (*MPlan) Upsert ¶
func (o *MPlan) 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 MPlanSlice ¶
type MPlanSlice []*MPlan
MPlanSlice is an alias for a slice of pointers to MPlan. This should almost always be used instead of []MPlan.
func (MPlanSlice) DeleteAll ¶
func (o MPlanSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*MPlanSlice) ReloadAll ¶
func (o *MPlanSlice) 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 (MPlanSlice) UpdateAll ¶
func (o MPlanSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type NotificationTimeSpan ¶
type NotificationTimeSpan struct { UserID uint `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"` Number uint8 `boil:"number" json:"number" toml:"number" yaml:"number"` FromTime string `boil:"from_time" json:"from_time" toml:"from_time" yaml:"from_time"` ToTime string `boil:"to_time" json:"to_time" toml:"to_time" yaml:"to_time"` CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"` R *notificationTimeSpanR `boil:"-" json:"-" toml:"-" yaml:"-"` L notificationTimeSpanL `boil:"-" json:"-" toml:"-" yaml:"-"` }
NotificationTimeSpan is an object representing the database table.
func FindNotificationTimeSpan ¶
func FindNotificationTimeSpan(ctx context.Context, exec boil.ContextExecutor, userID uint, number uint8, selectCols ...string) (*NotificationTimeSpan, error)
FindNotificationTimeSpan retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*NotificationTimeSpan) Delete ¶
func (o *NotificationTimeSpan) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single NotificationTimeSpan record with an executor. Delete will match against the primary key column to find the record to delete.
func (*NotificationTimeSpan) Exists ¶
func (o *NotificationTimeSpan) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the NotificationTimeSpan row exists.
func (*NotificationTimeSpan) Insert ¶
func (o *NotificationTimeSpan) 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 (*NotificationTimeSpan) Reload ¶
func (o *NotificationTimeSpan) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*NotificationTimeSpan) Update ¶
func (o *NotificationTimeSpan) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the NotificationTimeSpan. 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 (*NotificationTimeSpan) Upsert ¶
func (o *NotificationTimeSpan) 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 NotificationTimeSpanHook ¶
type NotificationTimeSpanHook func(context.Context, boil.ContextExecutor, *NotificationTimeSpan) error
NotificationTimeSpanHook is the signature for custom NotificationTimeSpan hook methods
type NotificationTimeSpanList ¶
type NotificationTimeSpanList []*NotificationTimeSpan
type NotificationTimeSpanSlice ¶
type NotificationTimeSpanSlice []*NotificationTimeSpan
NotificationTimeSpanSlice is an alias for a slice of pointers to NotificationTimeSpan. This should almost always be used instead of []NotificationTimeSpan.
func (NotificationTimeSpanSlice) DeleteAll ¶
func (o NotificationTimeSpanSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*NotificationTimeSpanSlice) ReloadAll ¶
func (o *NotificationTimeSpanSlice) 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 (NotificationTimeSpanSlice) UpdateAll ¶
func (o NotificationTimeSpanSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type StatDailyNotificationEvent ¶
type StatDailyNotificationEvent struct { Date time.Time `boil:"date" json:"date" toml:"date" yaml:"date"` Event string `boil:"event" json:"event" toml:"event" yaml:"event"` Count uint `boil:"count" json:"count" toml:"count" yaml:"count"` UuCount uint `boil:"uu_count" json:"uu_count" toml:"uu_count" yaml:"uu_count"` R *statDailyNotificationEventR `boil:"-" json:"-" toml:"-" yaml:"-"` L statDailyNotificationEventL `boil:"-" json:"-" toml:"-" yaml:"-"` }
StatDailyNotificationEvent is an object representing the database table.
func FindStatDailyNotificationEvent ¶
func FindStatDailyNotificationEvent(ctx context.Context, exec boil.ContextExecutor, date time.Time, event string, selectCols ...string) (*StatDailyNotificationEvent, error)
FindStatDailyNotificationEvent retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*StatDailyNotificationEvent) Delete ¶
func (o *StatDailyNotificationEvent) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single StatDailyNotificationEvent record with an executor. Delete will match against the primary key column to find the record to delete.
func (*StatDailyNotificationEvent) Exists ¶
func (o *StatDailyNotificationEvent) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the StatDailyNotificationEvent row exists.
func (*StatDailyNotificationEvent) Insert ¶
func (o *StatDailyNotificationEvent) 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 (*StatDailyNotificationEvent) Reload ¶
func (o *StatDailyNotificationEvent) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*StatDailyNotificationEvent) Update ¶
func (o *StatDailyNotificationEvent) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the StatDailyNotificationEvent. 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 (*StatDailyNotificationEvent) Upsert ¶
func (o *StatDailyNotificationEvent) 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 StatDailyNotificationEventHook ¶
type StatDailyNotificationEventHook func(context.Context, boil.ContextExecutor, *StatDailyNotificationEvent) error
StatDailyNotificationEventHook is the signature for custom StatDailyNotificationEvent hook methods
type StatDailyNotificationEventSlice ¶
type StatDailyNotificationEventSlice []*StatDailyNotificationEvent
StatDailyNotificationEventSlice is an alias for a slice of pointers to StatDailyNotificationEvent. This should almost always be used instead of []StatDailyNotificationEvent.
func (StatDailyNotificationEventSlice) DeleteAll ¶
func (o StatDailyNotificationEventSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*StatDailyNotificationEventSlice) ReloadAll ¶
func (o *StatDailyNotificationEventSlice) 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 (StatDailyNotificationEventSlice) UpdateAll ¶
func (o StatDailyNotificationEventSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type StatDailyUserNotificationEvent ¶
type StatDailyUserNotificationEvent struct { Date time.Time `boil:"date" json:"date" toml:"date" yaml:"date"` UserID uint `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"` Event string `boil:"event" json:"event" toml:"event" yaml:"event"` Count uint `boil:"count" json:"count" toml:"count" yaml:"count"` R *statDailyUserNotificationEventR `boil:"-" json:"-" toml:"-" yaml:"-"` L statDailyUserNotificationEventL `boil:"-" json:"-" toml:"-" yaml:"-"` }
StatDailyUserNotificationEvent is an object representing the database table.
func FindStatDailyUserNotificationEvent ¶
func FindStatDailyUserNotificationEvent(ctx context.Context, exec boil.ContextExecutor, date time.Time, userID uint, event string, selectCols ...string) (*StatDailyUserNotificationEvent, error)
FindStatDailyUserNotificationEvent retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*StatDailyUserNotificationEvent) Delete ¶
func (o *StatDailyUserNotificationEvent) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single StatDailyUserNotificationEvent record with an executor. Delete will match against the primary key column to find the record to delete.
func (*StatDailyUserNotificationEvent) Exists ¶
func (o *StatDailyUserNotificationEvent) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the StatDailyUserNotificationEvent row exists.
func (*StatDailyUserNotificationEvent) Insert ¶
func (o *StatDailyUserNotificationEvent) 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 (*StatDailyUserNotificationEvent) Reload ¶
func (o *StatDailyUserNotificationEvent) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*StatDailyUserNotificationEvent) Update ¶
func (o *StatDailyUserNotificationEvent) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the StatDailyUserNotificationEvent. 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 (*StatDailyUserNotificationEvent) Upsert ¶
func (o *StatDailyUserNotificationEvent) 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 StatDailyUserNotificationEventHook ¶
type StatDailyUserNotificationEventHook func(context.Context, boil.ContextExecutor, *StatDailyUserNotificationEvent) error
StatDailyUserNotificationEventHook is the signature for custom StatDailyUserNotificationEvent hook methods
type StatDailyUserNotificationEventSlice ¶
type StatDailyUserNotificationEventSlice []*StatDailyUserNotificationEvent
StatDailyUserNotificationEventSlice is an alias for a slice of pointers to StatDailyUserNotificationEvent. This should almost always be used instead of []StatDailyUserNotificationEvent.
func (StatDailyUserNotificationEventSlice) DeleteAll ¶
func (o StatDailyUserNotificationEventSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*StatDailyUserNotificationEventSlice) ReloadAll ¶
func (o *StatDailyUserNotificationEventSlice) 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 (StatDailyUserNotificationEventSlice) UpdateAll ¶
func (o StatDailyUserNotificationEventSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type StatNewLessonNotifier ¶
type StatNewLessonNotifier struct { Date time.Time `boil:"date" json:"date" toml:"date" yaml:"date"` Event string `boil:"event" json:"event" toml:"event" yaml:"event"` Count uint `boil:"count" json:"count" toml:"count" yaml:"count"` UuCount uint `boil:"uu_count" json:"uu_count" toml:"uu_count" yaml:"uu_count"` R *statNewLessonNotifierR `boil:"-" json:"-" toml:"-" yaml:"-"` L statNewLessonNotifierL `boil:"-" json:"-" toml:"-" yaml:"-"` }
StatNewLessonNotifier is an object representing the database table.
func FindStatNewLessonNotifier ¶
func FindStatNewLessonNotifier(ctx context.Context, exec boil.ContextExecutor, date time.Time, event string, selectCols ...string) (*StatNewLessonNotifier, error)
FindStatNewLessonNotifier retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*StatNewLessonNotifier) Delete ¶
func (o *StatNewLessonNotifier) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single StatNewLessonNotifier record with an executor. Delete will match against the primary key column to find the record to delete.
func (*StatNewLessonNotifier) Exists ¶
func (o *StatNewLessonNotifier) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the StatNewLessonNotifier row exists.
func (*StatNewLessonNotifier) Insert ¶
func (o *StatNewLessonNotifier) 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 (*StatNewLessonNotifier) Reload ¶
func (o *StatNewLessonNotifier) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*StatNewLessonNotifier) Update ¶
func (o *StatNewLessonNotifier) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the StatNewLessonNotifier. 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 (*StatNewLessonNotifier) Upsert ¶
func (o *StatNewLessonNotifier) 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 StatNewLessonNotifierHook ¶
type StatNewLessonNotifierHook func(context.Context, boil.ContextExecutor, *StatNewLessonNotifier) error
StatNewLessonNotifierHook is the signature for custom StatNewLessonNotifier hook methods
type StatNewLessonNotifierSlice ¶
type StatNewLessonNotifierSlice []*StatNewLessonNotifier
StatNewLessonNotifierSlice is an alias for a slice of pointers to StatNewLessonNotifier. This should almost always be used instead of []StatNewLessonNotifier.
func (StatNewLessonNotifierSlice) DeleteAll ¶
func (o StatNewLessonNotifierSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*StatNewLessonNotifierSlice) ReloadAll ¶
func (o *StatNewLessonNotifierSlice) 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 (StatNewLessonNotifierSlice) UpdateAll ¶
func (o StatNewLessonNotifierSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type StatNotifier ¶
type StatNotifier struct { Datetime time.Time `boil:"datetime" json:"datetime" toml:"datetime" yaml:"datetime"` Interval uint8 `boil:"interval" json:"interval" toml:"interval" yaml:"interval"` Elapsed uint `boil:"elapsed" json:"elapsed" toml:"elapsed" yaml:"elapsed"` UserCount uint `boil:"user_count" json:"user_count" toml:"user_count" yaml:"user_count"` FollowedTeacherCount uint `boil:"followed_teacher_count" json:"followed_teacher_count" toml:"followed_teacher_count" yaml:"followed_teacher_count"` R *statNotifierR `boil:"-" json:"-" toml:"-" yaml:"-"` L statNotifierL `boil:"-" json:"-" toml:"-" yaml:"-"` }
StatNotifier is an object representing the database table.
func FindStatNotifier ¶
func FindStatNotifier(ctx context.Context, exec boil.ContextExecutor, datetime time.Time, interval uint8, selectCols ...string) (*StatNotifier, error)
FindStatNotifier retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*StatNotifier) Delete ¶
func (o *StatNotifier) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single StatNotifier record with an executor. Delete will match against the primary key column to find the record to delete.
func (*StatNotifier) Exists ¶
func (o *StatNotifier) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the StatNotifier row exists.
func (*StatNotifier) Insert ¶
func (o *StatNotifier) 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 (*StatNotifier) Reload ¶
func (o *StatNotifier) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*StatNotifier) Update ¶
func (o *StatNotifier) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the StatNotifier. 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 (*StatNotifier) Upsert ¶
func (o *StatNotifier) 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 StatNotifierHook ¶
type StatNotifierHook func(context.Context, boil.ContextExecutor, *StatNotifier) error
StatNotifierHook is the signature for custom StatNotifier hook methods
type StatNotifierSlice ¶
type StatNotifierSlice []*StatNotifier
StatNotifierSlice is an alias for a slice of pointers to StatNotifier. This should almost always be used instead of []StatNotifier.
func (StatNotifierSlice) DeleteAll ¶
func (o StatNotifierSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*StatNotifierSlice) ReloadAll ¶
func (o *StatNotifierSlice) 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 (StatNotifierSlice) UpdateAll ¶
func (o StatNotifierSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type Teacher ¶
type Teacher struct { ID uint `boil:"id" json:"id" toml:"id" yaml:"id"` Name string `boil:"name" json:"name" toml:"name" yaml:"name"` CountryID int16 `boil:"country_id" json:"country_id" toml:"country_id" yaml:"country_id"` Gender string `boil:"gender" json:"gender" toml:"gender" yaml:"gender"` Birthday time.Time `boil:"birthday" json:"birthday" toml:"birthday" yaml:"birthday"` YearsOfExperience int8 `boil:"years_of_experience" json:"years_of_experience" toml:"years_of_experience" yaml:"years_of_experience"` FavoriteCount uint `boil:"favorite_count" json:"favorite_count" toml:"favorite_count" yaml:"favorite_count"` ReviewCount uint `boil:"review_count" json:"review_count" toml:"review_count" yaml:"review_count"` Rating types.NullDecimal `boil:"rating" json:"rating,omitempty" toml:"rating" yaml:"rating,omitempty"` LastLessonAt time.Time `boil:"last_lesson_at" json:"last_lesson_at" toml:"last_lesson_at" yaml:"last_lesson_at"` FetchErrorCount uint8 `boil:"fetch_error_count" json:"fetch_error_count" toml:"fetch_error_count" yaml:"fetch_error_count"` 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 *teacherR `boil:"-" json:"-" toml:"-" yaml:"-"` L teacherL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Teacher is an object representing the database table.
func FindTeacher ¶
func FindTeacher(ctx context.Context, exec boil.ContextExecutor, iD uint, selectCols ...string) (*Teacher, error)
FindTeacher retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func NewTeacher ¶
func NewTeacherFromIDOrURL ¶
func NewTeacherFromModel ¶
func (*Teacher) Delete ¶
Delete deletes a single Teacher record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Teacher) Insert ¶
func (o *Teacher) 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 (*Teacher) IsJapanese ¶
func (*Teacher) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Teacher) Update ¶
func (o *Teacher) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Teacher. 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 (*Teacher) Upsert ¶
func (o *Teacher) 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 TeacherHook ¶
TeacherHook is the signature for custom Teacher hook methods
type TeacherLessons ¶
func NewTeacherLessons ¶
func NewTeacherLessons(t *Teacher, l []*Lesson) *TeacherLessons
type TeacherSlice ¶
type TeacherSlice []*Teacher
TeacherSlice is an alias for a slice of pointers to Teacher. This should almost always be used instead of []Teacher.
func (TeacherSlice) DeleteAll ¶
func (o TeacherSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*TeacherSlice) ReloadAll ¶
func (o *TeacherSlice) 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 (TeacherSlice) UpdateAll ¶
func (o TeacherSlice) 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 uint `boil:"id" json:"id" toml:"id" yaml:"id"` Name string `boil:"name" json:"name" toml:"name" yaml:"name"` Email string `boil:"email" json:"email" toml:"email" yaml:"email"` EmailVerified uint8 `boil:"email_verified" json:"email_verified" toml:"email_verified" yaml:"email_verified"` PlanID uint8 `boil:"plan_id" json:"plan_id" toml:"plan_id" yaml:"plan_id"` FollowedTeacherAt null.Time `` /* 127-byte string literal not displayed */ OpenNotificationAt null.Time `` /* 131-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 *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 uint, selectCols ...string) (*User, error)
FindUser retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func NewUserFromModel ¶
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) IsFollowedTeacher ¶
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.
type UserAPIToken ¶
type UserAPIToken struct { Token string `boil:"token" json:"token" toml:"token" yaml:"token"` UserID uint `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"` 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 *userAPITokenR `boil:"-" json:"-" toml:"-" yaml:"-"` L userAPITokenL `boil:"-" json:"-" toml:"-" yaml:"-"` }
UserAPIToken is an object representing the database table.
func FindUserAPIToken ¶
func FindUserAPIToken(ctx context.Context, exec boil.ContextExecutor, token string, selectCols ...string) (*UserAPIToken, error)
FindUserAPIToken retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*UserAPIToken) Delete ¶
func (o *UserAPIToken) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single UserAPIToken record with an executor. Delete will match against the primary key column to find the record to delete.
func (*UserAPIToken) Exists ¶
func (o *UserAPIToken) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the UserAPIToken row exists.
func (*UserAPIToken) Insert ¶
func (o *UserAPIToken) 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 (*UserAPIToken) Reload ¶
func (o *UserAPIToken) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*UserAPIToken) Update ¶
func (o *UserAPIToken) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the UserAPIToken. 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 (*UserAPIToken) Upsert ¶
func (o *UserAPIToken) 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 UserAPITokenHook ¶
type UserAPITokenHook func(context.Context, boil.ContextExecutor, *UserAPIToken) error
UserAPITokenHook is the signature for custom UserAPIToken hook methods
type UserAPITokenSlice ¶
type UserAPITokenSlice []*UserAPIToken
UserAPITokenSlice is an alias for a slice of pointers to UserAPIToken. This should almost always be used instead of []UserAPIToken.
func (UserAPITokenSlice) DeleteAll ¶
func (o UserAPITokenSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*UserAPITokenSlice) ReloadAll ¶
func (o *UserAPITokenSlice) 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 (UserAPITokenSlice) UpdateAll ¶
func (o UserAPITokenSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type UserGoogle ¶
type UserGoogle struct { GoogleID string `boil:"google_id" json:"google_id" toml:"google_id" yaml:"google_id"` UserID uint `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"` 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 *userGoogleR `boil:"-" json:"-" toml:"-" yaml:"-"` L userGoogleL `boil:"-" json:"-" toml:"-" yaml:"-"` }
UserGoogle is an object representing the database table.
func FindUserGoogle ¶
func FindUserGoogle(ctx context.Context, exec boil.ContextExecutor, googleID string, selectCols ...string) (*UserGoogle, error)
FindUserGoogle retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*UserGoogle) Delete ¶
func (o *UserGoogle) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single UserGoogle record with an executor. Delete will match against the primary key column to find the record to delete.
func (*UserGoogle) Exists ¶
func (o *UserGoogle) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the UserGoogle row exists.
func (*UserGoogle) Insert ¶
func (o *UserGoogle) 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 (*UserGoogle) Reload ¶
func (o *UserGoogle) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*UserGoogle) Update ¶
func (o *UserGoogle) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the UserGoogle. 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 (*UserGoogle) Upsert ¶
func (o *UserGoogle) 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 UserGoogleHook ¶
type UserGoogleHook func(context.Context, boil.ContextExecutor, *UserGoogle) error
UserGoogleHook is the signature for custom UserGoogle hook methods
type UserGoogleSlice ¶
type UserGoogleSlice []*UserGoogle
UserGoogleSlice is an alias for a slice of pointers to UserGoogle. This should almost always be used instead of []UserGoogle.
func (UserGoogleSlice) DeleteAll ¶
func (o UserGoogleSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*UserGoogleSlice) ReloadAll ¶
func (o *UserGoogleSlice) 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 (UserGoogleSlice) UpdateAll ¶
func (o UserGoogleSlice) 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.
Source Files ¶
- boil_queries.go
- boil_table_names.go
- boil_types.go
- boil_view_names.go
- event_log_email.go
- event_log_email_custom.go
- event_values.go
- flash_message.go
- following_teacher.go
- following_teacher_custom.go
- lesson.go
- lesson_custom.go
- lesson_helper.go
- lesson_status_log.go
- m_country.go
- m_country_helper.go
- m_plan.go
- model2.go
- mysql_upsert.go
- notification_time_span.go
- notification_time_span_helper.go
- stat_daily_notification_event.go
- stat_daily_user_notification_event.go
- stat_new_lesson_notifier.go
- stat_notifier.go
- teacher.go
- teacher_custom.go
- teacher_helper.go
- user.go
- user_api_token.go
- user_api_token_custom.go
- user_custom.go
- user_google.go
- user_helper.go