dao

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EchoAllColumns            = echoAllColumns
	EchoColumnsWithoutDefault = echoColumnsWithoutDefault
	EchoColumnsWithDefault    = echoColumnsWithDefault
	EchoPrimaryKeyColumns     = echoPrimaryKeyColumns
	EchoGeneratedColumns      = echoGeneratedColumns
)

/////////////////////////////// BEGIN EXTENSIONS ///////////////////////////////// Expose table columns

View Source
var (
	GlobalKVSEntryAllColumns            = globalKVSEntryAllColumns
	GlobalKVSEntryColumnsWithoutDefault = globalKVSEntryColumnsWithoutDefault
	GlobalKVSEntryColumnsWithDefault    = globalKVSEntryColumnsWithDefault
	GlobalKVSEntryPrimaryKeyColumns     = globalKVSEntryPrimaryKeyColumns
	GlobalKVSEntryGeneratedColumns      = globalKVSEntryGeneratedColumns
)

/////////////////////////////// BEGIN EXTENSIONS ///////////////////////////////// Expose table columns

View Source
var (
	LeaderBoardAllColumns            = leaderBoardAllColumns
	LeaderBoardColumnsWithoutDefault = leaderBoardColumnsWithoutDefault
	LeaderBoardColumnsWithDefault    = leaderBoardColumnsWithDefault
	LeaderBoardPrimaryKeyColumns     = leaderBoardPrimaryKeyColumns
	LeaderBoardGeneratedColumns      = leaderBoardGeneratedColumns
)

/////////////////////////////// BEGIN EXTENSIONS ///////////////////////////////// Expose table columns

View Source
var (
	LeaderBoardScoreAllColumns            = leaderBoardScoreAllColumns
	LeaderBoardScoreColumnsWithoutDefault = leaderBoardScoreColumnsWithoutDefault
	LeaderBoardScoreColumnsWithDefault    = leaderBoardScoreColumnsWithDefault
	LeaderBoardScorePrimaryKeyColumns     = leaderBoardScorePrimaryKeyColumns
	LeaderBoardScoreGeneratedColumns      = leaderBoardScoreGeneratedColumns
)

/////////////////////////////// BEGIN EXTENSIONS ///////////////////////////////// Expose table columns

View Source
var (
	MasterDatumAllColumns            = masterDatumAllColumns
	MasterDatumColumnsWithoutDefault = masterDatumColumnsWithoutDefault
	MasterDatumColumnsWithDefault    = masterDatumColumnsWithDefault
	MasterDatumPrimaryKeyColumns     = masterDatumPrimaryKeyColumns
	MasterDatumGeneratedColumns      = masterDatumGeneratedColumns
)

/////////////////////////////// BEGIN EXTENSIONS ///////////////////////////////// Expose table columns

View Source
var (
	PrivateKVSEntryAllColumns            = privateKVSEntryAllColumns
	PrivateKVSEntryColumnsWithoutDefault = privateKVSEntryColumnsWithoutDefault
	PrivateKVSEntryColumnsWithDefault    = privateKVSEntryColumnsWithDefault
	PrivateKVSEntryPrimaryKeyColumns     = privateKVSEntryPrimaryKeyColumns
	PrivateKVSEntryGeneratedColumns      = privateKVSEntryGeneratedColumns
)

/////////////////////////////// BEGIN EXTENSIONS ///////////////////////////////// Expose table columns

View Source
var (
	PrivateKVSEtagAllColumns            = privateKVSEtagAllColumns
	PrivateKVSEtagColumnsWithoutDefault = privateKVSEtagColumnsWithoutDefault
	PrivateKVSEtagColumnsWithDefault    = privateKVSEtagColumnsWithDefault
	PrivateKVSEtagPrimaryKeyColumns     = privateKVSEtagPrimaryKeyColumns
	PrivateKVSEtagGeneratedColumns      = privateKVSEtagGeneratedColumns
)

/////////////////////////////// BEGIN EXTENSIONS ///////////////////////////////// Expose table columns

View Source
var (
	RoomUserAllColumns            = roomUserAllColumns
	RoomUserColumnsWithoutDefault = roomUserColumnsWithoutDefault
	RoomUserColumnsWithDefault    = roomUserColumnsWithDefault
	RoomUserPrimaryKeyColumns     = roomUserPrimaryKeyColumns
	RoomUserGeneratedColumns      = roomUserGeneratedColumns
)

/////////////////////////////// BEGIN EXTENSIONS ///////////////////////////////// Expose table columns

View Source
var (
	RoomAllColumns            = roomAllColumns
	RoomColumnsWithoutDefault = roomColumnsWithoutDefault
	RoomColumnsWithDefault    = roomColumnsWithDefault
	RoomPrimaryKeyColumns     = roomPrimaryKeyColumns
	RoomGeneratedColumns      = roomGeneratedColumns
)

/////////////////////////////// BEGIN EXTENSIONS ///////////////////////////////// Expose table columns

View Source
var (
	UserAuthenticationAllColumns            = userAuthenticationAllColumns
	UserAuthenticationColumnsWithoutDefault = userAuthenticationColumnsWithoutDefault
	UserAuthenticationColumnsWithDefault    = userAuthenticationColumnsWithDefault
	UserAuthenticationPrimaryKeyColumns     = userAuthenticationPrimaryKeyColumns
	UserAuthenticationGeneratedColumns      = userAuthenticationGeneratedColumns
)

/////////////////////////////// BEGIN EXTENSIONS ///////////////////////////////// Expose table columns

View Source
var (
	UserProfileAllColumns            = userProfileAllColumns
	UserProfileColumnsWithoutDefault = userProfileColumnsWithoutDefault
	UserProfileColumnsWithDefault    = userProfileColumnsWithDefault
	UserProfilePrimaryKeyColumns     = userProfilePrimaryKeyColumns
	UserProfileGeneratedColumns      = userProfileGeneratedColumns
)

/////////////////////////////// BEGIN EXTENSIONS ///////////////////////////////// Expose table columns

View Source
var (
	UserAllColumns            = userAllColumns
	UserColumnsWithoutDefault = userColumnsWithoutDefault
	UserColumnsWithDefault    = userColumnsWithDefault
	UserPrimaryKeyColumns     = userPrimaryKeyColumns
	UserGeneratedColumns      = userGeneratedColumns
)

/////////////////////////////// BEGIN EXTENSIONS ///////////////////////////////// Expose table columns

View Source
var EchoColumns = struct {
	ID        string
	Message   string
	Timestamp string
	CreatedAt string
	UpdatedAt string
}{
	ID:        "id",
	Message:   "message",
	Timestamp: "timestamp",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
}
View Source
var EchoRels = struct {
}{}

EchoRels is where relationship names are stored.

View Source
var EchoTableColumns = struct {
	ID        string
	Message   string
	Timestamp string
	CreatedAt string
	UpdatedAt string
}{
	ID:        "echos.id",
	Message:   "echos.message",
	Timestamp: "echos.timestamp",
	CreatedAt: "echos.created_at",
	UpdatedAt: "echos.updated_at",
}
View Source
var EchoWhere = struct {
	ID        whereHelperstring
	Message   whereHelperstring
	Timestamp whereHelpertime_Time
	CreatedAt whereHelpertime_Time
	UpdatedAt whereHelpertime_Time
}{
	ID:        whereHelperstring{/* contains filtered or unexported fields */},
	Message:   whereHelperstring{/* contains filtered or unexported fields */},
	Timestamp: whereHelpertime_Time{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var ErrSyncFail = errors.New("dao: failed to synchronize data after insert")

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

View Source
var GlobalKVSEntryColumns = struct {
	Key       string
	Value     string
	CreatedAt string
	UpdatedAt string
}{
	Key:       "key",
	Value:     "value",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
}
View Source
var GlobalKVSEntryRels = struct {
}{}

GlobalKVSEntryRels is where relationship names are stored.

View Source
var GlobalKVSEntryTableColumns = struct {
	Key       string
	Value     string
	CreatedAt string
	UpdatedAt string
}{
	Key:       "global_kvs_entries.key",
	Value:     "global_kvs_entries.value",
	CreatedAt: "global_kvs_entries.created_at",
	UpdatedAt: "global_kvs_entries.updated_at",
}
View Source
var GlobalKVSEntryWhere = struct {
	Key       whereHelperstring
	Value     whereHelper__byte
	CreatedAt whereHelpertime_Time
	UpdatedAt whereHelpertime_Time
}{
	Key:       whereHelperstring{/* contains filtered or unexported fields */},
	Value:     whereHelper__byte{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var LeaderBoardColumns = struct {
	ID        string
	CreatedAt string
	UpdatedAt string
}{
	ID:        "id",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
}
View Source
var LeaderBoardRels = struct {
	LeaderBoardScores string
}{
	LeaderBoardScores: "LeaderBoardScores",
}

LeaderBoardRels is where relationship names are stored.

View Source
var LeaderBoardScoreColumns = struct {
	LeaderBoardID string
	ScoreID       string
	Score         string
	Timestamp     string
	CreatedAt     string
	UpdatedAt     string
}{
	LeaderBoardID: "leader_board_id",
	ScoreID:       "score_id",
	Score:         "score",
	Timestamp:     "timestamp",
	CreatedAt:     "created_at",
	UpdatedAt:     "updated_at",
}
View Source
var LeaderBoardScoreRels = struct {
	LeaderBoard string
}{
	LeaderBoard: "LeaderBoard",
}

LeaderBoardScoreRels is where relationship names are stored.

View Source
var LeaderBoardScoreTableColumns = struct {
	LeaderBoardID string
	ScoreID       string
	Score         string
	Timestamp     string
	CreatedAt     string
	UpdatedAt     string
}{
	LeaderBoardID: "leader_board_scores.leader_board_id",
	ScoreID:       "leader_board_scores.score_id",
	Score:         "leader_board_scores.score",
	Timestamp:     "leader_board_scores.timestamp",
	CreatedAt:     "leader_board_scores.created_at",
	UpdatedAt:     "leader_board_scores.updated_at",
}
View Source
var LeaderBoardScoreWhere = struct {
	LeaderBoardID whereHelperstring
	ScoreID       whereHelperstring
	Score         whereHelperint
	Timestamp     whereHelpertime_Time
	CreatedAt     whereHelpertime_Time
	UpdatedAt     whereHelpertime_Time
}{
	LeaderBoardID: whereHelperstring{/* contains filtered or unexported fields */},
	ScoreID:       whereHelperstring{/* contains filtered or unexported fields */},
	Score:         whereHelperint{/* contains filtered or unexported fields */},
	Timestamp:     whereHelpertime_Time{/* contains filtered or unexported fields */},
	CreatedAt:     whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:     whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var LeaderBoardTableColumns = struct {
	ID        string
	CreatedAt string
	UpdatedAt string
}{
	ID:        "leader_board.id",
	CreatedAt: "leader_board.created_at",
	UpdatedAt: "leader_board.updated_at",
}
View Source
var LeaderBoardWhere = struct {
	ID        whereHelperstring
	CreatedAt whereHelpertime_Time
	UpdatedAt whereHelpertime_Time
}{
	ID:        whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var MasterDatumColumns = struct {
	Revision  string
	Content   string
	IsActive  string
	Comment   string
	CreatedAt string
	UpdatedAt string
}{
	Revision:  "revision",
	Content:   "content",
	IsActive:  "is_active",
	Comment:   "comment",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
}
View Source
var MasterDatumRels = struct {
}{}

MasterDatumRels is where relationship names are stored.

View Source
var MasterDatumTableColumns = struct {
	Revision  string
	Content   string
	IsActive  string
	Comment   string
	CreatedAt string
	UpdatedAt string
}{
	Revision:  "master_data.revision",
	Content:   "master_data.content",
	IsActive:  "master_data.is_active",
	Comment:   "master_data.comment",
	CreatedAt: "master_data.created_at",
	UpdatedAt: "master_data.updated_at",
}
View Source
var MasterDatumWhere = struct {
	Revision  whereHelperint
	Content   whereHelper__byte
	IsActive  whereHelperbool
	Comment   whereHelperstring
	CreatedAt whereHelpertime_Time
	UpdatedAt whereHelpertime_Time
}{
	Revision:  whereHelperint{/* contains filtered or unexported fields */},
	Content:   whereHelper__byte{/* contains filtered or unexported fields */},
	IsActive:  whereHelperbool{/* contains filtered or unexported fields */},
	Comment:   whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var PrivateKVSEntryColumns = struct {
	UserID    string
	Key       string
	Value     string
	CreatedAt string
	UpdatedAt string
}{
	UserID:    "user_id",
	Key:       "key",
	Value:     "value",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
}
View Source
var PrivateKVSEntryRels = struct {
	User string
}{
	User: "User",
}

PrivateKVSEntryRels is where relationship names are stored.

View Source
var PrivateKVSEntryTableColumns = struct {
	UserID    string
	Key       string
	Value     string
	CreatedAt string
	UpdatedAt string
}{
	UserID:    "private_kvs_entries.user_id",
	Key:       "private_kvs_entries.key",
	Value:     "private_kvs_entries.value",
	CreatedAt: "private_kvs_entries.created_at",
	UpdatedAt: "private_kvs_entries.updated_at",
}
View Source
var PrivateKVSEntryWhere = struct {
	UserID    whereHelperstring
	Key       whereHelperstring
	Value     whereHelper__byte
	CreatedAt whereHelpertime_Time
	UpdatedAt whereHelpertime_Time
}{
	UserID:    whereHelperstring{/* contains filtered or unexported fields */},
	Key:       whereHelperstring{/* contains filtered or unexported fields */},
	Value:     whereHelper__byte{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var PrivateKVSEtagColumns = struct {
	UserID    string
	Etag      string
	CreatedAt string
	UpdatedAt string
}{
	UserID:    "user_id",
	Etag:      "etag",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
}
View Source
var PrivateKVSEtagRels = struct {
	User string
}{
	User: "User",
}

PrivateKVSEtagRels is where relationship names are stored.

View Source
var PrivateKVSEtagTableColumns = struct {
	UserID    string
	Etag      string
	CreatedAt string
	UpdatedAt string
}{
	UserID:    "private_kvs_etags.user_id",
	Etag:      "private_kvs_etags.etag",
	CreatedAt: "private_kvs_etags.created_at",
	UpdatedAt: "private_kvs_etags.updated_at",
}
View Source
var PrivateKVSEtagWhere = struct {
	UserID    whereHelperstring
	Etag      whereHelperstring
	CreatedAt whereHelpertime_Time
	UpdatedAt whereHelpertime_Time
}{
	UserID:    whereHelperstring{/* contains filtered or unexported fields */},
	Etag:      whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var RoomColumns = struct {
	ID          string
	OwnerUserID string
	Type        string
	MaxCapacity string
	Secret      string
	Details     string
	CreatedAt   string
	UpdatedAt   string
}{
	ID:          "id",
	OwnerUserID: "owner_user_id",
	Type:        "type",
	MaxCapacity: "max_capacity",
	Secret:      "secret",
	Details:     "details",
	CreatedAt:   "created_at",
	UpdatedAt:   "updated_at",
}
View Source
var RoomRels = struct {
	OwnerUser string
	RoomUsers string
}{
	OwnerUser: "OwnerUser",
	RoomUsers: "RoomUsers",
}

RoomRels is where relationship names are stored.

View Source
var RoomTableColumns = struct {
	ID          string
	OwnerUserID string
	Type        string
	MaxCapacity string
	Secret      string
	Details     string
	CreatedAt   string
	UpdatedAt   string
}{
	ID:          "rooms.id",
	OwnerUserID: "rooms.owner_user_id",
	Type:        "rooms.type",
	MaxCapacity: "rooms.max_capacity",
	Secret:      "rooms.secret",
	Details:     "rooms.details",
	CreatedAt:   "rooms.created_at",
	UpdatedAt:   "rooms.updated_at",
}
View Source
var RoomUserColumns = struct {
	RoomID    string
	UserID    string
	CreatedAt string
	UpdatedAt string
}{
	RoomID:    "room_id",
	UserID:    "user_id",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
}
View Source
var RoomUserRels = struct {
	Room string
	User string
}{
	Room: "Room",
	User: "User",
}

RoomUserRels is where relationship names are stored.

View Source
var RoomUserTableColumns = struct {
	RoomID    string
	UserID    string
	CreatedAt string
	UpdatedAt string
}{
	RoomID:    "room_users.room_id",
	UserID:    "room_users.user_id",
	CreatedAt: "room_users.created_at",
	UpdatedAt: "room_users.updated_at",
}
View Source
var RoomUserWhere = struct {
	RoomID    whereHelperstring
	UserID    whereHelperstring
	CreatedAt whereHelpertime_Time
	UpdatedAt whereHelpertime_Time
}{
	RoomID:    whereHelperstring{/* contains filtered or unexported fields */},
	UserID:    whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var RoomWhere = struct {
	ID          whereHelperstring
	OwnerUserID whereHelperstring
	Type        whereHelperint
	MaxCapacity whereHelperint
	Secret      whereHelperstring
	Details     whereHelper__byte
	CreatedAt   whereHelpertime_Time
	UpdatedAt   whereHelpertime_Time
}{
	ID:          whereHelperstring{/* contains filtered or unexported fields */},
	OwnerUserID: whereHelperstring{/* contains filtered or unexported fields */},
	Type:        whereHelperint{/* contains filtered or unexported fields */},
	MaxCapacity: whereHelperint{/* contains filtered or unexported fields */},
	Secret:      whereHelperstring{/* contains filtered or unexported fields */},
	Details:     whereHelper__byte{/* contains filtered or unexported fields */},
	CreatedAt:   whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:   whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var TableNames = struct {
	Echos               string
	GlobalKVSEntries    string
	LeaderBoard         string
	LeaderBoardScores   string
	MasterData          string
	PrivateKVSEntries   string
	PrivateKVSEtags     string
	RoomUsers           string
	Rooms               string
	UserAuthentications string
	UserProfiles        string
	Users               string
}{
	Echos:               "echos",
	GlobalKVSEntries:    "global_kvs_entries",
	LeaderBoard:         "leader_board",
	LeaderBoardScores:   "leader_board_scores",
	MasterData:          "master_data",
	PrivateKVSEntries:   "private_kvs_entries",
	PrivateKVSEtags:     "private_kvs_etags",
	RoomUsers:           "room_users",
	Rooms:               "rooms",
	UserAuthentications: "user_authentications",
	UserProfiles:        "user_profiles",
	Users:               "users",
}
View Source
var UserAuthenticationColumns = struct {
	UserID              string
	BaasUserID          string
	LastAuthenticatedAt string
	CreatedAt           string
	UpdatedAt           string
}{
	UserID:              "user_id",
	BaasUserID:          "baas_user_id",
	LastAuthenticatedAt: "last_authenticated_at",
	CreatedAt:           "created_at",
	UpdatedAt:           "updated_at",
}
View Source
var UserAuthenticationRels = struct {
	User string
}{
	User: "User",
}

UserAuthenticationRels is where relationship names are stored.

View Source
var UserAuthenticationTableColumns = struct {
	UserID              string
	BaasUserID          string
	LastAuthenticatedAt string
	CreatedAt           string
	UpdatedAt           string
}{
	UserID:              "user_authentications.user_id",
	BaasUserID:          "user_authentications.baas_user_id",
	LastAuthenticatedAt: "user_authentications.last_authenticated_at",
	CreatedAt:           "user_authentications.created_at",
	UpdatedAt:           "user_authentications.updated_at",
}
View Source
var UserAuthenticationWhere = struct {
	UserID              whereHelperstring
	BaasUserID          whereHelperstring
	LastAuthenticatedAt whereHelpertime_Time
	CreatedAt           whereHelpertime_Time
	UpdatedAt           whereHelpertime_Time
}{
	UserID:              whereHelperstring{/* contains filtered or unexported fields */},
	BaasUserID:          whereHelperstring{/* contains filtered or unexported fields */},
	LastAuthenticatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	CreatedAt:           whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:           whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var UserColumns = struct {
	ID        string
	Email     string
	Status    string
	IsDeleted string
	CreatedAt string
	UpdatedAt string
}{
	ID:        "id",
	Email:     "email",
	Status:    "status",
	IsDeleted: "is_deleted",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
}
View Source
var UserProfileColumns = struct {
	UserID    string
	Content   string
	CreatedAt string
	UpdatedAt string
}{
	UserID:    "user_id",
	Content:   "content",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
}
View Source
var UserProfileRels = struct {
	User string
}{
	User: "User",
}

UserProfileRels is where relationship names are stored.

View Source
var UserProfileTableColumns = struct {
	UserID    string
	Content   string
	CreatedAt string
	UpdatedAt string
}{
	UserID:    "user_profiles.user_id",
	Content:   "user_profiles.content",
	CreatedAt: "user_profiles.created_at",
	UpdatedAt: "user_profiles.updated_at",
}
View Source
var UserProfileWhere = struct {
	UserID    whereHelperstring
	Content   whereHelper__byte
	CreatedAt whereHelpertime_Time
	UpdatedAt whereHelpertime_Time
}{
	UserID:    whereHelperstring{/* contains filtered or unexported fields */},
	Content:   whereHelper__byte{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var UserRels = struct {
	PrivateKVSEtag     string
	UserAuthentication string
	UserProfile        string
	PrivateKVSEntries  string
	RoomUsers          string
	OwnerUserRooms     string
}{
	PrivateKVSEtag:     "PrivateKVSEtag",
	UserAuthentication: "UserAuthentication",
	UserProfile:        "UserProfile",
	PrivateKVSEntries:  "PrivateKVSEntries",
	RoomUsers:          "RoomUsers",
	OwnerUserRooms:     "OwnerUserRooms",
}

UserRels is where relationship names are stored.

View Source
var UserTableColumns = struct {
	ID        string
	Email     string
	Status    string
	IsDeleted string
	CreatedAt string
	UpdatedAt string
}{
	ID:        "users.id",
	Email:     "users.email",
	Status:    "users.status",
	IsDeleted: "users.is_deleted",
	CreatedAt: "users.created_at",
	UpdatedAt: "users.updated_at",
}
View Source
var UserWhere = struct {
	ID        whereHelperstring
	Email     whereHelperstring
	Status    whereHelperint
	IsDeleted whereHelperbool
	CreatedAt whereHelpertime_Time
	UpdatedAt whereHelpertime_Time
}{
	ID:        whereHelperstring{/* contains filtered or unexported fields */},
	Email:     whereHelperstring{/* contains filtered or unexported fields */},
	Status:    whereHelperint{/* contains filtered or unexported fields */},
	IsDeleted: whereHelperbool{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var ViewNames = struct {
}{}

Functions

func AddEchoHook

func AddEchoHook(hookPoint boil.HookPoint, echoHook EchoHook)

AddEchoHook registers your hook function for all future operations.

func AddGlobalKVSEntryHook

func AddGlobalKVSEntryHook(hookPoint boil.HookPoint, globalKVSEntryHook GlobalKVSEntryHook)

AddGlobalKVSEntryHook registers your hook function for all future operations.

func AddLeaderBoardHook added in v0.2.0

func AddLeaderBoardHook(hookPoint boil.HookPoint, leaderBoardHook LeaderBoardHook)

AddLeaderBoardHook registers your hook function for all future operations.

func AddLeaderBoardScoreHook added in v0.2.0

func AddLeaderBoardScoreHook(hookPoint boil.HookPoint, leaderBoardScoreHook LeaderBoardScoreHook)

AddLeaderBoardScoreHook registers your hook function for all future operations.

func AddMasterDatumHook added in v0.3.0

func AddMasterDatumHook(hookPoint boil.HookPoint, masterDatumHook MasterDatumHook)

AddMasterDatumHook registers your hook function for all future operations.

func AddPrivateKVSEntryHook added in v0.2.0

func AddPrivateKVSEntryHook(hookPoint boil.HookPoint, privateKVSEntryHook PrivateKVSEntryHook)

AddPrivateKVSEntryHook registers your hook function for all future operations.

func AddPrivateKVSEtagHook added in v0.2.0

func AddPrivateKVSEtagHook(hookPoint boil.HookPoint, privateKVSEtagHook PrivateKVSEtagHook)

AddPrivateKVSEtagHook registers your hook function for all future operations.

func AddRoomHook added in v0.3.0

func AddRoomHook(hookPoint boil.HookPoint, roomHook RoomHook)

AddRoomHook registers your hook function for all future operations.

func AddRoomUserHook added in v0.3.0

func AddRoomUserHook(hookPoint boil.HookPoint, roomUserHook RoomUserHook)

AddRoomUserHook registers your hook function for all future operations.

func AddUserAuthenticationHook

func AddUserAuthenticationHook(hookPoint boil.HookPoint, userAuthenticationHook UserAuthenticationHook)

AddUserAuthenticationHook registers your hook function for all future operations.

func AddUserHook

func AddUserHook(hookPoint boil.HookPoint, userHook UserHook)

AddUserHook registers your hook function for all future operations.

func AddUserProfileHook added in v0.3.0

func AddUserProfileHook(hookPoint boil.HookPoint, userProfileHook UserProfileHook)

AddUserProfileHook registers your hook function for all future operations.

func EchoExists

func EchoExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

EchoExists checks if the Echo row exists.

func Echos

func Echos(mods ...qm.QueryMod) echoQuery

Echos retrieves all the records using an executor.

func GlobalKVSEntries

func GlobalKVSEntries(mods ...qm.QueryMod) globalKVSEntryQuery

GlobalKVSEntries retrieves all the records using an executor.

func GlobalKVSEntryExists

func GlobalKVSEntryExists(ctx context.Context, exec boil.ContextExecutor, key string) (bool, error)

GlobalKVSEntryExists checks if the GlobalKVSEntry row exists.

func LeaderBoardExists added in v0.2.0

func LeaderBoardExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

LeaderBoardExists checks if the LeaderBoard row exists.

func LeaderBoardScoreExists added in v0.2.0

func LeaderBoardScoreExists(ctx context.Context, exec boil.ContextExecutor, leaderBoardID string, scoreID string) (bool, error)

LeaderBoardScoreExists checks if the LeaderBoardScore row exists.

func LeaderBoardScores added in v0.2.0

func LeaderBoardScores(mods ...qm.QueryMod) leaderBoardScoreQuery

LeaderBoardScores retrieves all the records using an executor.

func LeaderBoards added in v0.2.0

func LeaderBoards(mods ...qm.QueryMod) leaderBoardQuery

LeaderBoards retrieves all the records using an executor.

func MasterData added in v0.3.0

func MasterData(mods ...qm.QueryMod) masterDatumQuery

MasterData retrieves all the records using an executor.

func MasterDatumExists added in v0.3.0

func MasterDatumExists(ctx context.Context, exec boil.ContextExecutor, revision int) (bool, error)

MasterDatumExists checks if the MasterDatum row exists.

func NewQuery

func NewQuery(mods ...qm.QueryMod) *queries.Query

NewQuery initializes a new Query using the passed in QueryMods

func PrivateKVSEntries added in v0.2.0

func PrivateKVSEntries(mods ...qm.QueryMod) privateKVSEntryQuery

PrivateKVSEntries retrieves all the records using an executor.

func PrivateKVSEntryExists added in v0.2.0

func PrivateKVSEntryExists(ctx context.Context, exec boil.ContextExecutor, userID string, key string) (bool, error)

PrivateKVSEntryExists checks if the PrivateKVSEntry row exists.

func PrivateKVSEtagExists added in v0.2.0

func PrivateKVSEtagExists(ctx context.Context, exec boil.ContextExecutor, userID string) (bool, error)

PrivateKVSEtagExists checks if the PrivateKVSEtag row exists.

func PrivateKVSEtags added in v0.2.0

func PrivateKVSEtags(mods ...qm.QueryMod) privateKVSEtagQuery

PrivateKVSEtags retrieves all the records using an executor.

func RoomExists added in v0.3.0

func RoomExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

RoomExists checks if the Room row exists.

func RoomUserExists added in v0.3.0

func RoomUserExists(ctx context.Context, exec boil.ContextExecutor, roomID string, userID string) (bool, error)

RoomUserExists checks if the RoomUser row exists.

func RoomUsers added in v0.3.0

func RoomUsers(mods ...qm.QueryMod) roomUserQuery

RoomUsers retrieves all the records using an executor.

func Rooms added in v0.3.0

func Rooms(mods ...qm.QueryMod) roomQuery

Rooms retrieves all the records using an executor.

func UserAuthenticationExists

func UserAuthenticationExists(ctx context.Context, exec boil.ContextExecutor, userID string) (bool, error)

UserAuthenticationExists checks if the UserAuthentication row exists.

func UserAuthentications

func UserAuthentications(mods ...qm.QueryMod) userAuthenticationQuery

UserAuthentications retrieves all the records using an executor.

func UserExists

func UserExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

UserExists checks if the User row exists.

func UserProfileExists added in v0.3.0

func UserProfileExists(ctx context.Context, exec boil.ContextExecutor, userID string) (bool, error)

UserProfileExists checks if the UserProfile row exists.

func UserProfiles added in v0.3.0

func UserProfiles(mods ...qm.QueryMod) userProfileQuery

UserProfiles retrieves all the records using an executor.

func Users

func Users(mods ...qm.QueryMod) userQuery

Users retrieves all the records using an executor.

Types

type Echo

type Echo struct {
	ID        string    `boil:"id" json:"id" toml:"id" yaml:"id"`
	Message   string    `boil:"message" json:"message" toml:"message" yaml:"message"`
	Timestamp time.Time `boil:"timestamp" json:"timestamp" toml:"timestamp" yaml:"timestamp"`
	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 *echoR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L echoL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Echo is an object representing the database table.

func FindEcho

func FindEcho(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*Echo, error)

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

func (*Echo) Delete

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

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

func (*Echo) Exists

func (o *Echo) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the Echo row exists.

func (*Echo) Insert

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

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

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

func (*Echo) Update

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

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

func (o *Echo) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) 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 EchoHook

type EchoHook func(context.Context, boil.ContextExecutor, *Echo) error

EchoHook is the signature for custom Echo hook methods

type EchoSlice

type EchoSlice []*Echo

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

func (EchoSlice) DeleteAll

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

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

func (EchoSlice) InsertAll

func (o EchoSlice) InsertAll(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

InsertAll inserts all rows with the specified column values, using an executor.

func (*EchoSlice) ReloadAll

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

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

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

func (EchoSlice) UpsertAll

func (o EchoSlice) UpsertAll(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) (int64, error)

UpsertAll inserts or updates all rows Currently it doesn't support "NoContext" and "NoRowsAffected"

type GlobalKVSEntry

type GlobalKVSEntry struct {
	Key       string    `boil:"key" json:"key" toml:"key" yaml:"key"`
	Value     []byte    `boil:"value" json:"value" toml:"value" yaml:"value"`
	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 *globalKVSEntryR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L globalKVSEntryL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

GlobalKVSEntry is an object representing the database table.

func FindGlobalKVSEntry

func FindGlobalKVSEntry(ctx context.Context, exec boil.ContextExecutor, key string, selectCols ...string) (*GlobalKVSEntry, error)

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

func (*GlobalKVSEntry) Delete

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

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

func (*GlobalKVSEntry) Exists

func (o *GlobalKVSEntry) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the GlobalKVSEntry row exists.

func (*GlobalKVSEntry) Insert

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

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

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

func (*GlobalKVSEntry) Update

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

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

func (o *GlobalKVSEntry) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) 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 GlobalKVSEntryHook

type GlobalKVSEntryHook func(context.Context, boil.ContextExecutor, *GlobalKVSEntry) error

GlobalKVSEntryHook is the signature for custom GlobalKVSEntry hook methods

type GlobalKVSEntrySlice

type GlobalKVSEntrySlice []*GlobalKVSEntry

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

func (GlobalKVSEntrySlice) DeleteAll

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

func (GlobalKVSEntrySlice) InsertAll

func (o GlobalKVSEntrySlice) InsertAll(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

InsertAll inserts all rows with the specified column values, using an executor.

func (*GlobalKVSEntrySlice) ReloadAll

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

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

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

func (GlobalKVSEntrySlice) UpsertAll

func (o GlobalKVSEntrySlice) UpsertAll(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) (int64, error)

UpsertAll inserts or updates all rows Currently it doesn't support "NoContext" and "NoRowsAffected"

type LeaderBoard added in v0.2.0

type LeaderBoard struct {
	ID        string    `boil:"id" json:"id" toml:"id" yaml:"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 *leaderBoardR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L leaderBoardL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

LeaderBoard is an object representing the database table.

func FindLeaderBoard added in v0.2.0

func FindLeaderBoard(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*LeaderBoard, error)

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

func (*LeaderBoard) AddLeaderBoardScores added in v0.2.0

func (o *LeaderBoard) AddLeaderBoardScores(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*LeaderBoardScore) error

AddLeaderBoardScores adds the given related objects to the existing relationships of the leader_board, optionally inserting them as new records. Appends related to o.R.LeaderBoardScores. Sets related.R.LeaderBoard appropriately.

func (*LeaderBoard) Delete added in v0.2.0

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

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

func (*LeaderBoard) Exists added in v0.2.0

func (o *LeaderBoard) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the LeaderBoard row exists.

func (*LeaderBoard) Insert added in v0.2.0

func (o *LeaderBoard) 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 (*LeaderBoard) LeaderBoardScores added in v0.2.0

func (o *LeaderBoard) LeaderBoardScores(mods ...qm.QueryMod) leaderBoardScoreQuery

LeaderBoardScores retrieves all the leader_board_score's LeaderBoardScores with an executor.

func (*LeaderBoard) Reload added in v0.2.0

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

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

func (*LeaderBoard) Update added in v0.2.0

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

Update uses an executor to update the LeaderBoard. 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 (*LeaderBoard) Upsert added in v0.2.0

func (o *LeaderBoard) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) 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 LeaderBoardHook added in v0.2.0

type LeaderBoardHook func(context.Context, boil.ContextExecutor, *LeaderBoard) error

LeaderBoardHook is the signature for custom LeaderBoard hook methods

type LeaderBoardScore added in v0.2.0

type LeaderBoardScore struct {
	LeaderBoardID string    `boil:"leader_board_id" json:"leader_board_id" toml:"leader_board_id" yaml:"leader_board_id"`
	ScoreID       string    `boil:"score_id" json:"score_id" toml:"score_id" yaml:"score_id"`
	Score         int       `boil:"score" json:"score" toml:"score" yaml:"score"`
	Timestamp     time.Time `boil:"timestamp" json:"timestamp" toml:"timestamp" yaml:"timestamp"`
	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 *leaderBoardScoreR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L leaderBoardScoreL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

LeaderBoardScore is an object representing the database table.

func FindLeaderBoardScore added in v0.2.0

func FindLeaderBoardScore(ctx context.Context, exec boil.ContextExecutor, leaderBoardID string, scoreID string, selectCols ...string) (*LeaderBoardScore, error)

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

func (*LeaderBoardScore) Delete added in v0.2.0

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

func (*LeaderBoardScore) Exists added in v0.2.0

func (o *LeaderBoardScore) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the LeaderBoardScore row exists.

func (*LeaderBoardScore) Insert added in v0.2.0

func (o *LeaderBoardScore) 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 (*LeaderBoardScore) LeaderBoard added in v0.2.0

func (o *LeaderBoardScore) LeaderBoard(mods ...qm.QueryMod) leaderBoardQuery

LeaderBoard pointed to by the foreign key.

func (*LeaderBoardScore) Reload added in v0.2.0

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

func (*LeaderBoardScore) SetLeaderBoard added in v0.2.0

func (o *LeaderBoardScore) SetLeaderBoard(ctx context.Context, exec boil.ContextExecutor, insert bool, related *LeaderBoard) error

SetLeaderBoard of the leaderBoardScore to the related item. Sets o.R.LeaderBoard to related. Adds o to related.R.LeaderBoardScores.

func (*LeaderBoardScore) Update added in v0.2.0

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

Update uses an executor to update the LeaderBoardScore. 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 (*LeaderBoardScore) Upsert added in v0.2.0

func (o *LeaderBoardScore) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) 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 LeaderBoardScoreHook added in v0.2.0

type LeaderBoardScoreHook func(context.Context, boil.ContextExecutor, *LeaderBoardScore) error

LeaderBoardScoreHook is the signature for custom LeaderBoardScore hook methods

type LeaderBoardScoreSlice added in v0.2.0

type LeaderBoardScoreSlice []*LeaderBoardScore

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

func (LeaderBoardScoreSlice) DeleteAll added in v0.2.0

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

func (LeaderBoardScoreSlice) InsertAll added in v0.2.0

func (o LeaderBoardScoreSlice) InsertAll(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

InsertAll inserts all rows with the specified column values, using an executor.

func (*LeaderBoardScoreSlice) ReloadAll added in v0.2.0

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

func (LeaderBoardScoreSlice) UpdateAll added in v0.2.0

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

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

func (LeaderBoardScoreSlice) UpsertAll added in v0.2.0

func (o LeaderBoardScoreSlice) UpsertAll(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) (int64, error)

UpsertAll inserts or updates all rows Currently it doesn't support "NoContext" and "NoRowsAffected"

type LeaderBoardSlice added in v0.2.0

type LeaderBoardSlice []*LeaderBoard

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

func (LeaderBoardSlice) DeleteAll added in v0.2.0

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

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

func (LeaderBoardSlice) InsertAll added in v0.2.0

func (o LeaderBoardSlice) InsertAll(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

InsertAll inserts all rows with the specified column values, using an executor.

func (*LeaderBoardSlice) ReloadAll added in v0.2.0

func (o *LeaderBoardSlice) 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 (LeaderBoardSlice) UpdateAll added in v0.2.0

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

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

func (LeaderBoardSlice) UpsertAll added in v0.2.0

func (o LeaderBoardSlice) UpsertAll(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) (int64, error)

UpsertAll inserts or updates all rows Currently it doesn't support "NoContext" and "NoRowsAffected"

type M

type M map[string]interface{}

M type is for providing columns and column values to UpdateAll.

type MasterDatum added in v0.3.0

type MasterDatum struct {
	Revision  int       `boil:"revision" json:"revision" toml:"revision" yaml:"revision"`
	Content   []byte    `boil:"content" json:"content" toml:"content" yaml:"content"`
	IsActive  bool      `boil:"is_active" json:"is_active" toml:"is_active" yaml:"is_active"`
	Comment   string    `boil:"comment" json:"comment" toml:"comment" yaml:"comment"`
	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 *masterDatumR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L masterDatumL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

MasterDatum is an object representing the database table.

func FindMasterDatum added in v0.3.0

func FindMasterDatum(ctx context.Context, exec boil.ContextExecutor, revision int, selectCols ...string) (*MasterDatum, error)

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

func (*MasterDatum) Delete added in v0.3.0

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

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

func (*MasterDatum) Exists added in v0.3.0

func (o *MasterDatum) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the MasterDatum row exists.

func (*MasterDatum) Insert added in v0.3.0

func (o *MasterDatum) 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 (*MasterDatum) Reload added in v0.3.0

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

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

func (*MasterDatum) Update added in v0.3.0

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

Update uses an executor to update the MasterDatum. 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 (*MasterDatum) Upsert added in v0.3.0

func (o *MasterDatum) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) 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 MasterDatumHook added in v0.3.0

type MasterDatumHook func(context.Context, boil.ContextExecutor, *MasterDatum) error

MasterDatumHook is the signature for custom MasterDatum hook methods

type MasterDatumSlice added in v0.3.0

type MasterDatumSlice []*MasterDatum

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

func (MasterDatumSlice) DeleteAll added in v0.3.0

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

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

func (MasterDatumSlice) InsertAll added in v0.3.0

func (o MasterDatumSlice) InsertAll(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

InsertAll inserts all rows with the specified column values, using an executor.

func (*MasterDatumSlice) ReloadAll added in v0.3.0

func (o *MasterDatumSlice) 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 (MasterDatumSlice) UpdateAll added in v0.3.0

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

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

func (MasterDatumSlice) UpsertAll added in v0.3.0

func (o MasterDatumSlice) UpsertAll(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) (int64, error)

UpsertAll inserts or updates all rows Currently it doesn't support "NoContext" and "NoRowsAffected"

type PrivateKVSEntry added in v0.2.0

type PrivateKVSEntry struct {
	UserID    string    `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"`
	Key       string    `boil:"key" json:"key" toml:"key" yaml:"key"`
	Value     []byte    `boil:"value" json:"value" toml:"value" yaml:"value"`
	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 *privateKVSEntryR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L privateKVSEntryL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

PrivateKVSEntry is an object representing the database table.

func FindPrivateKVSEntry added in v0.2.0

func FindPrivateKVSEntry(ctx context.Context, exec boil.ContextExecutor, userID string, key string, selectCols ...string) (*PrivateKVSEntry, error)

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

func (*PrivateKVSEntry) Delete added in v0.2.0

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

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

func (*PrivateKVSEntry) Exists added in v0.2.0

func (o *PrivateKVSEntry) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the PrivateKVSEntry row exists.

func (*PrivateKVSEntry) Insert added in v0.2.0

func (o *PrivateKVSEntry) 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 (*PrivateKVSEntry) Reload added in v0.2.0

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

func (*PrivateKVSEntry) SetUser added in v0.2.0

func (o *PrivateKVSEntry) SetUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error

SetUser of the privateKVSEntry to the related item. Sets o.R.User to related. Adds o to related.R.PrivateKVSEntries.

func (*PrivateKVSEntry) Update added in v0.2.0

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

Update uses an executor to update the PrivateKVSEntry. 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 (*PrivateKVSEntry) Upsert added in v0.2.0

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

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

func (*PrivateKVSEntry) User added in v0.2.0

func (o *PrivateKVSEntry) User(mods ...qm.QueryMod) userQuery

User pointed to by the foreign key.

type PrivateKVSEntryHook added in v0.2.0

type PrivateKVSEntryHook func(context.Context, boil.ContextExecutor, *PrivateKVSEntry) error

PrivateKVSEntryHook is the signature for custom PrivateKVSEntry hook methods

type PrivateKVSEntrySlice added in v0.2.0

type PrivateKVSEntrySlice []*PrivateKVSEntry

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

func (PrivateKVSEntrySlice) DeleteAll added in v0.2.0

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

func (PrivateKVSEntrySlice) InsertAll added in v0.2.0

func (o PrivateKVSEntrySlice) InsertAll(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

InsertAll inserts all rows with the specified column values, using an executor.

func (*PrivateKVSEntrySlice) ReloadAll added in v0.2.0

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

func (PrivateKVSEntrySlice) UpdateAll added in v0.2.0

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

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

func (PrivateKVSEntrySlice) UpsertAll added in v0.2.0

func (o PrivateKVSEntrySlice) UpsertAll(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) (int64, error)

UpsertAll inserts or updates all rows Currently it doesn't support "NoContext" and "NoRowsAffected"

type PrivateKVSEtag added in v0.2.0

type PrivateKVSEtag struct {
	UserID    string    `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"`
	Etag      string    `boil:"etag" json:"etag" toml:"etag" yaml:"etag"`
	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 *privateKVSEtagR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L privateKVSEtagL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

PrivateKVSEtag is an object representing the database table.

func FindPrivateKVSEtag added in v0.2.0

func FindPrivateKVSEtag(ctx context.Context, exec boil.ContextExecutor, userID string, selectCols ...string) (*PrivateKVSEtag, error)

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

func (*PrivateKVSEtag) Delete added in v0.2.0

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

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

func (*PrivateKVSEtag) Exists added in v0.2.0

func (o *PrivateKVSEtag) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the PrivateKVSEtag row exists.

func (*PrivateKVSEtag) Insert added in v0.2.0

func (o *PrivateKVSEtag) 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 (*PrivateKVSEtag) Reload added in v0.2.0

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

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

func (*PrivateKVSEtag) SetUser added in v0.2.0

func (o *PrivateKVSEtag) SetUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error

SetUser of the privateKVSEtag to the related item. Sets o.R.User to related. Adds o to related.R.PrivateKVSEtag.

func (*PrivateKVSEtag) Update added in v0.2.0

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

Update uses an executor to update the PrivateKVSEtag. 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 (*PrivateKVSEtag) Upsert added in v0.2.0

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

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

func (*PrivateKVSEtag) User added in v0.2.0

func (o *PrivateKVSEtag) User(mods ...qm.QueryMod) userQuery

User pointed to by the foreign key.

type PrivateKVSEtagHook added in v0.2.0

type PrivateKVSEtagHook func(context.Context, boil.ContextExecutor, *PrivateKVSEtag) error

PrivateKVSEtagHook is the signature for custom PrivateKVSEtag hook methods

type PrivateKVSEtagSlice added in v0.2.0

type PrivateKVSEtagSlice []*PrivateKVSEtag

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

func (PrivateKVSEtagSlice) DeleteAll added in v0.2.0

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

func (PrivateKVSEtagSlice) InsertAll added in v0.2.0

func (o PrivateKVSEtagSlice) InsertAll(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

InsertAll inserts all rows with the specified column values, using an executor.

func (*PrivateKVSEtagSlice) ReloadAll added in v0.2.0

func (o *PrivateKVSEtagSlice) 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 (PrivateKVSEtagSlice) UpdateAll added in v0.2.0

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

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

func (PrivateKVSEtagSlice) UpsertAll added in v0.2.0

func (o PrivateKVSEtagSlice) UpsertAll(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) (int64, error)

UpsertAll inserts or updates all rows Currently it doesn't support "NoContext" and "NoRowsAffected"

type Room added in v0.3.0

type Room struct {
	ID          string    `boil:"id" json:"id" toml:"id" yaml:"id"`
	OwnerUserID string    `boil:"owner_user_id" json:"owner_user_id" toml:"owner_user_id" yaml:"owner_user_id"`
	Type        int       `boil:"type" json:"type" toml:"type" yaml:"type"`
	MaxCapacity int       `boil:"max_capacity" json:"max_capacity" toml:"max_capacity" yaml:"max_capacity"`
	Secret      string    `boil:"secret" json:"secret" toml:"secret" yaml:"secret"`
	Details     []byte    `boil:"details" json:"details" toml:"details" yaml:"details"`
	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 *roomR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L roomL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Room is an object representing the database table.

func FindRoom added in v0.3.0

func FindRoom(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*Room, error)

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

func (*Room) AddRoomUsers added in v0.3.0

func (o *Room) AddRoomUsers(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*RoomUser) error

AddRoomUsers adds the given related objects to the existing relationships of the room, optionally inserting them as new records. Appends related to o.R.RoomUsers. Sets related.R.Room appropriately.

func (*Room) Delete added in v0.3.0

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

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

func (*Room) Exists added in v0.3.0

func (o *Room) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the Room row exists.

func (*Room) Insert added in v0.3.0

func (o *Room) 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 (*Room) OwnerUser added in v0.3.0

func (o *Room) OwnerUser(mods ...qm.QueryMod) userQuery

OwnerUser pointed to by the foreign key.

func (*Room) Reload added in v0.3.0

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

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

func (*Room) RoomUsers added in v0.3.0

func (o *Room) RoomUsers(mods ...qm.QueryMod) roomUserQuery

RoomUsers retrieves all the room_user's RoomUsers with an executor.

func (*Room) SetOwnerUser added in v0.3.0

func (o *Room) SetOwnerUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error

SetOwnerUser of the room to the related item. Sets o.R.OwnerUser to related. Adds o to related.R.OwnerUserRooms.

func (*Room) Update added in v0.3.0

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

Update uses an executor to update the Room. 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 (*Room) Upsert added in v0.3.0

func (o *Room) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) 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 RoomHook added in v0.3.0

type RoomHook func(context.Context, boil.ContextExecutor, *Room) error

RoomHook is the signature for custom Room hook methods

type RoomSlice added in v0.3.0

type RoomSlice []*Room

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

func (RoomSlice) DeleteAll added in v0.3.0

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

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

func (RoomSlice) InsertAll added in v0.3.0

func (o RoomSlice) InsertAll(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

InsertAll inserts all rows with the specified column values, using an executor.

func (*RoomSlice) ReloadAll added in v0.3.0

func (o *RoomSlice) 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 (RoomSlice) UpdateAll added in v0.3.0

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

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

func (RoomSlice) UpsertAll added in v0.3.0

func (o RoomSlice) UpsertAll(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) (int64, error)

UpsertAll inserts or updates all rows Currently it doesn't support "NoContext" and "NoRowsAffected"

type RoomUser added in v0.3.0

type RoomUser struct {
	RoomID    string    `boil:"room_id" json:"room_id" toml:"room_id" yaml:"room_id"`
	UserID    string    `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 *roomUserR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L roomUserL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

RoomUser is an object representing the database table.

func FindRoomUser added in v0.3.0

func FindRoomUser(ctx context.Context, exec boil.ContextExecutor, roomID string, userID string, selectCols ...string) (*RoomUser, error)

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

func (*RoomUser) Delete added in v0.3.0

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

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

func (*RoomUser) Exists added in v0.3.0

func (o *RoomUser) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the RoomUser row exists.

func (*RoomUser) Insert added in v0.3.0

func (o *RoomUser) 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 (*RoomUser) Reload added in v0.3.0

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

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

func (*RoomUser) Room added in v0.3.0

func (o *RoomUser) Room(mods ...qm.QueryMod) roomQuery

Room pointed to by the foreign key.

func (*RoomUser) SetRoom added in v0.3.0

func (o *RoomUser) SetRoom(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Room) error

SetRoom of the roomUser to the related item. Sets o.R.Room to related. Adds o to related.R.RoomUsers.

func (*RoomUser) SetUser added in v0.3.0

func (o *RoomUser) SetUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error

SetUser of the roomUser to the related item. Sets o.R.User to related. Adds o to related.R.RoomUsers.

func (*RoomUser) Update added in v0.3.0

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

Update uses an executor to update the RoomUser. 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 (*RoomUser) Upsert added in v0.3.0

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

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

func (*RoomUser) User added in v0.3.0

func (o *RoomUser) User(mods ...qm.QueryMod) userQuery

User pointed to by the foreign key.

type RoomUserHook added in v0.3.0

type RoomUserHook func(context.Context, boil.ContextExecutor, *RoomUser) error

RoomUserHook is the signature for custom RoomUser hook methods

type RoomUserSlice added in v0.3.0

type RoomUserSlice []*RoomUser

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

func (RoomUserSlice) DeleteAll added in v0.3.0

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

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

func (RoomUserSlice) InsertAll added in v0.3.0

func (o RoomUserSlice) InsertAll(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

InsertAll inserts all rows with the specified column values, using an executor.

func (*RoomUserSlice) ReloadAll added in v0.3.0

func (o *RoomUserSlice) 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 (RoomUserSlice) UpdateAll added in v0.3.0

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

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

func (RoomUserSlice) UpsertAll added in v0.3.0

func (o RoomUserSlice) UpsertAll(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) (int64, error)

UpsertAll inserts or updates all rows Currently it doesn't support "NoContext" and "NoRowsAffected"

type UpsertOptionFunc

type UpsertOptionFunc func(o *UpsertOptions)

func UpsertConflictTarget

func UpsertConflictTarget(conflictTarget string) UpsertOptionFunc

func UpsertUpdateSet

func UpsertUpdateSet(updateSet string) UpsertOptionFunc

type UpsertOptions

type UpsertOptions struct {
	// contains filtered or unexported fields
}

type User

type User struct {
	ID        string    `boil:"id" json:"id" toml:"id" yaml:"id"`
	Email     string    `boil:"email" json:"email" toml:"email" yaml:"email"`
	Status    int       `boil:"status" json:"status" toml:"status" yaml:"status"`
	IsDeleted bool      `boil:"is_deleted" json:"is_deleted" toml:"is_deleted" yaml:"is_deleted"`
	CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`

	R *userR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L userL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

User is an object representing the database table.

func FindUser

func FindUser(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*User, error)

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

func (*User) AddOwnerUserRooms added in v0.3.0

func (o *User) AddOwnerUserRooms(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Room) error

AddOwnerUserRooms adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.OwnerUserRooms. Sets related.R.OwnerUser appropriately.

func (*User) AddPrivateKVSEntries added in v0.2.0

func (o *User) AddPrivateKVSEntries(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*PrivateKVSEntry) error

AddPrivateKVSEntries adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.PrivateKVSEntries. Sets related.R.User appropriately.

func (*User) AddRoomUsers added in v0.3.0

func (o *User) AddRoomUsers(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*RoomUser) error

AddRoomUsers adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.RoomUsers. Sets related.R.User appropriately.

func (*User) Delete

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

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

func (o *User) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the User row exists.

func (*User) Insert

func (o *User) 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 (*User) OwnerUserRooms added in v0.3.0

func (o *User) OwnerUserRooms(mods ...qm.QueryMod) roomQuery

OwnerUserRooms retrieves all the room's Rooms with an executor via owner_user_id column.

func (*User) PrivateKVSEntries added in v0.2.0

func (o *User) PrivateKVSEntries(mods ...qm.QueryMod) privateKVSEntryQuery

PrivateKVSEntries retrieves all the private_kvs_entry's PrivateKVSEntries with an executor.

func (*User) PrivateKVSEtag added in v0.2.0

func (o *User) PrivateKVSEtag(mods ...qm.QueryMod) privateKVSEtagQuery

PrivateKVSEtag pointed to by the foreign key.

func (*User) Reload

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

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

func (*User) RoomUsers added in v0.3.0

func (o *User) RoomUsers(mods ...qm.QueryMod) roomUserQuery

RoomUsers retrieves all the room_user's RoomUsers with an executor.

func (*User) SetPrivateKVSEtag added in v0.2.0

func (o *User) SetPrivateKVSEtag(ctx context.Context, exec boil.ContextExecutor, insert bool, related *PrivateKVSEtag) error

SetPrivateKVSEtag of the user to the related item. Sets o.R.PrivateKVSEtag to related. Adds o to related.R.User.

func (*User) SetUserAuthentication

func (o *User) SetUserAuthentication(ctx context.Context, exec boil.ContextExecutor, insert bool, related *UserAuthentication) error

SetUserAuthentication of the user to the related item. Sets o.R.UserAuthentication to related. Adds o to related.R.User.

func (*User) SetUserProfile added in v0.3.0

func (o *User) SetUserProfile(ctx context.Context, exec boil.ContextExecutor, insert bool, related *UserProfile) error

SetUserProfile of the user to the related item. Sets o.R.UserProfile to related. Adds o to related.R.User.

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, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

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

func (*User) UserAuthentication

func (o *User) UserAuthentication(mods ...qm.QueryMod) userAuthenticationQuery

UserAuthentication pointed to by the foreign key.

func (*User) UserProfile added in v0.3.0

func (o *User) UserProfile(mods ...qm.QueryMod) userProfileQuery

UserProfile pointed to by the foreign key.

type UserAuthentication

type UserAuthentication struct {
	UserID              string    `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"`
	BaasUserID          string    `boil:"baas_user_id" json:"baas_user_id" toml:"baas_user_id" yaml:"baas_user_id"`
	LastAuthenticatedAt time.Time `boil:"last_authenticated_at" json:"last_authenticated_at" toml:"last_authenticated_at" yaml:"last_authenticated_at"`
	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 *userAuthenticationR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L userAuthenticationL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

UserAuthentication is an object representing the database table.

func FindUserAuthentication

func FindUserAuthentication(ctx context.Context, exec boil.ContextExecutor, userID string, selectCols ...string) (*UserAuthentication, error)

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

func (*UserAuthentication) Delete

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

func (*UserAuthentication) Exists

Exists checks if the UserAuthentication row exists.

func (*UserAuthentication) Insert

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

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

func (*UserAuthentication) SetUser

func (o *UserAuthentication) SetUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error

SetUser of the userAuthentication to the related item. Sets o.R.User to related. Adds o to related.R.UserAuthentication.

func (*UserAuthentication) Update

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

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

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

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

func (*UserAuthentication) User

func (o *UserAuthentication) User(mods ...qm.QueryMod) userQuery

User pointed to by the foreign key.

type UserAuthenticationHook

type UserAuthenticationHook func(context.Context, boil.ContextExecutor, *UserAuthentication) error

UserAuthenticationHook is the signature for custom UserAuthentication hook methods

type UserAuthenticationSlice

type UserAuthenticationSlice []*UserAuthentication

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

func (UserAuthenticationSlice) DeleteAll

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

func (UserAuthenticationSlice) InsertAll

func (o UserAuthenticationSlice) InsertAll(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

InsertAll inserts all rows with the specified column values, using an executor.

func (*UserAuthenticationSlice) ReloadAll

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

func (UserAuthenticationSlice) UpdateAll

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

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

func (UserAuthenticationSlice) UpsertAll

func (o UserAuthenticationSlice) UpsertAll(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) (int64, error)

UpsertAll inserts or updates all rows Currently it doesn't support "NoContext" and "NoRowsAffected"

type UserHook

type UserHook func(context.Context, boil.ContextExecutor, *User) error

UserHook is the signature for custom User hook methods

type UserProfile added in v0.3.0

type UserProfile struct {
	UserID    string    `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"`
	Content   []byte    `boil:"content" json:"content" toml:"content" yaml:"content"`
	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 *userProfileR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L userProfileL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

UserProfile is an object representing the database table.

func FindUserProfile added in v0.3.0

func FindUserProfile(ctx context.Context, exec boil.ContextExecutor, userID string, selectCols ...string) (*UserProfile, error)

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

func (*UserProfile) Delete added in v0.3.0

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

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

func (*UserProfile) Exists added in v0.3.0

func (o *UserProfile) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the UserProfile row exists.

func (*UserProfile) Insert added in v0.3.0

func (o *UserProfile) 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 (*UserProfile) Reload added in v0.3.0

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

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

func (*UserProfile) SetUser added in v0.3.0

func (o *UserProfile) SetUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error

SetUser of the userProfile to the related item. Sets o.R.User to related. Adds o to related.R.UserProfile.

func (*UserProfile) Update added in v0.3.0

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

Update uses an executor to update the UserProfile. 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 (*UserProfile) Upsert added in v0.3.0

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

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

func (*UserProfile) User added in v0.3.0

func (o *UserProfile) User(mods ...qm.QueryMod) userQuery

User pointed to by the foreign key.

type UserProfileHook added in v0.3.0

type UserProfileHook func(context.Context, boil.ContextExecutor, *UserProfile) error

UserProfileHook is the signature for custom UserProfile hook methods

type UserProfileSlice added in v0.3.0

type UserProfileSlice []*UserProfile

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

func (UserProfileSlice) DeleteAll added in v0.3.0

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

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

func (UserProfileSlice) InsertAll added in v0.3.0

func (o UserProfileSlice) InsertAll(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

InsertAll inserts all rows with the specified column values, using an executor.

func (*UserProfileSlice) ReloadAll added in v0.3.0

func (o *UserProfileSlice) 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 (UserProfileSlice) UpdateAll added in v0.3.0

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

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

func (UserProfileSlice) UpsertAll added in v0.3.0

func (o UserProfileSlice) UpsertAll(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) (int64, error)

UpsertAll inserts or updates all rows Currently it doesn't support "NoContext" and "NoRowsAffected"

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.

func (UserSlice) DeleteAll

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

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

func (UserSlice) InsertAll

func (o UserSlice) InsertAll(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

InsertAll inserts all rows with the specified column values, using an executor.

func (*UserSlice) ReloadAll

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

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

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

func (UserSlice) UpsertAll

func (o UserSlice) UpsertAll(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) (int64, error)

UpsertAll inserts or updates all rows Currently it doesn't support "NoContext" and "NoRowsAffected"

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL