Versions in this module Expand all Collapse all v0 v0.0.1 May 21, 2021 Changes in this version + const Exec + const Query + var XOLog = func(ctx context.Context, sqlstr string, params ...interface{}) + type Execer interface + type Executor interface + type GoogleAuth struct + CreatedAt time.Time + GoogleID string + UpdatedAt time.Time + UserID string + func GetAllGoogleAuths(ctx context.Context, db Queryer) ([]*GoogleAuth, error) + func GetGoogleAuth(ctx context.Context, db Queryer, key string) (*GoogleAuth, error) + func GetGoogleAuths(ctx context.Context, db Queryer, keys []string) ([]*GoogleAuth, error) + func GoogleAuthByGoogleID(ctx context.Context, db Queryer, googleID string) (*GoogleAuth, error) + func GoogleAuthByUserID(ctx context.Context, db Queryer, userID string) (*GoogleAuth, error) + func (ga *GoogleAuth) Delete(ctx context.Context, db Execer) error + func (ga *GoogleAuth) Deleted() bool + func (ga *GoogleAuth) Exists() bool + func (ga *GoogleAuth) Insert(ctx context.Context, db Execer) error + func (ga *GoogleAuth) InsertIfNotExist(ctx context.Context, db Executor) error + func (ga *GoogleAuth) InsertOrUpdate(ctx context.Context, db Executor) error + func (ga *GoogleAuth) Update(ctx context.Context, db Execer) error + func (ga *GoogleAuth) User(ctx context.Context, db Executor) (*User, error) + type PubsubEvent struct + CreatedAt time.Time + Data string + DeduplicateKey sql.NullString + ID string + IsPublished bool + PublishedAt mysql.NullTime + Topic string + func GetAllPubsubEvents(ctx context.Context, db Queryer) ([]*PubsubEvent, error) + func GetPubsubEvent(ctx context.Context, db Queryer, key string) (*PubsubEvent, error) + func GetPubsubEvents(ctx context.Context, db Queryer, keys []string) ([]*PubsubEvent, error) + func PubsubEventByID(ctx context.Context, db Queryer, id string) (*PubsubEvent, error) + func PubsubEventsByIsPublished(ctx context.Context, db Queryer, isPublished bool) ([]*PubsubEvent, error) + func (pe *PubsubEvent) Delete(ctx context.Context, db Execer) error + func (pe *PubsubEvent) Deleted() bool + func (pe *PubsubEvent) Exists() bool + func (pe *PubsubEvent) Insert(ctx context.Context, db Execer) error + func (pe *PubsubEvent) InsertIfNotExist(ctx context.Context, db Executor) error + func (pe *PubsubEvent) InsertOrUpdate(ctx context.Context, db Executor) error + func (pe *PubsubEvent) Update(ctx context.Context, db Execer) error + type Queryer interface + type ScannerValuer interface + type Slice []ScannerValuer + type StringSlice []string + func (ss *StringSlice) Scan(src interface{}) error + func (ss StringSlice) Value() (driver.Value, error) + type User struct + CreatedAt time.Time + ID string + UpdatedAt time.Time + func GetAllUsers(ctx context.Context, db Queryer) ([]*User, error) + func GetUser(ctx context.Context, db Queryer, key string) (*User, error) + func GetUsers(ctx context.Context, db Queryer, keys []string) ([]*User, error) + func UserByID(ctx context.Context, db Queryer, id string) (*User, error) + func (u *User) Delete(ctx context.Context, db Execer) error + func (u *User) Deleted() bool + func (u *User) Exists() bool + func (u *User) Insert(ctx context.Context, db Execer) error + func (u *User) InsertIfNotExist(ctx context.Context, db Executor) error + func (u *User) InsertOrUpdate(ctx context.Context, db Executor) error + func (u *User) Update(ctx context.Context, db Execer) error + type UserProfile struct + CreatedAt time.Time + DisplayName string + Email string + ScreenImgURL sql.NullString + UpdatedAt time.Time + UserID string + func GetAllUserProfiles(ctx context.Context, db Queryer) ([]*UserProfile, error) + func GetUserProfile(ctx context.Context, db Queryer, key string) (*UserProfile, error) + func GetUserProfiles(ctx context.Context, db Queryer, keys []string) ([]*UserProfile, error) + func UserProfileByEmail(ctx context.Context, db Queryer, email string) (*UserProfile, error) + func UserProfileByUserID(ctx context.Context, db Queryer, userID string) (*UserProfile, error) + func (up *UserProfile) Delete(ctx context.Context, db Execer) error + func (up *UserProfile) Deleted() bool + func (up *UserProfile) Exists() bool + func (up *UserProfile) Insert(ctx context.Context, db Execer) error + func (up *UserProfile) InsertIfNotExist(ctx context.Context, db Executor) error + func (up *UserProfile) InsertOrUpdate(ctx context.Context, db Executor) error + func (up *UserProfile) Update(ctx context.Context, db Execer) error + func (up *UserProfile) User(ctx context.Context, db Executor) (*User, error)