obj_sql

package
v0.0.0-...-3691266 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddSessionToken

func AddSessionToken(sessionToken, username string) error

func CheckSessionToken

func CheckSessionToken(sessionToken string) (*int64, error)

func GetBattleLean

func GetBattleLean(userId int64, splatnetNumber int64) (*api_objects.Battle2, error)

func GetBattleLeanPk

func GetBattleLeanPk(pk int64) (*api_objects.Battle2, error)

func GetBattlePk

func GetBattlePk(pk int64) (*api_objects.Battle2, error)

func GetBattlesLean

func GetBattlesLean(values []interface{}, conditionColumns []string, startAt, endAt int64, sort string) ([]api_objects.Battle2, error)

func GetBattlesLeanUser

func GetBattlesLeanUser(userId int64, values []interface{}, conditionColumns []string, startAt, endAt int64, sort string) ([]api_objects.Battle2, error)

func GetBattlesUser

func GetBattlesUser(userId int64, values []interface{}, conditionColumns []string, startAt, endAt int64, sort string) ([]api_objects.Battle2, error)

func GetShift

func GetShift(userId, splatnetNumber int64) (*api_objects.Shift2, error)

func GetShift3

func GetShift3(userId int64, shiftId string) (*api_objects.Shift3, error)

func GetShiftLean

func GetShiftLean(userId, splatnetNumber int64) (*api_objects.Shift2, error)

func GetShiftLeanPk

func GetShiftLeanPk(pk int64) (*api_objects.Shift2, error)

func GetShiftNames3

func GetShiftNames3(userId, stage string, resultWave int, timeFrom, timeTo time.Time) ([]string, error)

func GetShiftStubs3

func GetShiftStubs3(userId, stage string, resultWave int, timeFrom, timeTo time.Time) ([]map[string]interface{}, error)

func GetShiftsLean

func GetShiftsLean(values []interface{}, conditionColumns []string, startAt, endAt int64, sort string) ([]api_objects.Shift2, error)

func GetShiftsLeanUser

func GetShiftsLeanUser(userId int64, values []interface{}, conditionColumns []string, startAt, endAt int64, sort string) ([]api_objects.Shift2, error)

func GetShiftsUser

func GetShiftsUser(userId, startAt, endAt int64, sort string) ([]api_objects.Shift2, error)

func ReadKeyArrayKey

func ReadKeyArrayKey(keyField, objectTable, sort, sortColumn string) ([]int64, error)

func ReadKeyArrayKeyCondition

func ReadKeyArrayKeyCondition(values []interface{}, conditionColumns []string, keyField, objectTable, sort, sortColumn string) ([]int64, error)

func ReadKeyArrayWithCondition

func ReadKeyArrayWithCondition(condition []interface{}, conditionField []string, endKeyField, objectTable, sort, sortColumn string) ([]int64, error)

func ReadKeyArrayWithKey

func ReadKeyArrayWithKey(startKey, startKeyField, endKeyField, objectTable, sort, sortColumn string) ([]int64, error)

func ReadKeyArrayWithKeyTable

func ReadKeyArrayWithKeyTable(startKey interface{}, startKeyField, tableName, tableColumnName, endKeyField, objectTable string) ([]int64, error)

func ReadUser

func ReadUser(username string) (*db_objects.User, error)

func ReadUserById

func ReadUserById(pk int64) (*db_objects.User, error)

func ReadValuesWithKey

func ReadValuesWithKey(key interface{}, keyField, objectTable string, fields []string) *sql.Row

func VerifyEmailUser

func VerifyEmailUser(email string) error

func WriteNewBattle

func WriteNewBattle(battle *api_objects.Battle2) error

func WriteNewBattle3

func WriteNewBattle3(battle *api_objects.Battle3, userId int64) error

func WriteNewShift3

func WriteNewShift3(shift *api_objects.Shift3, userId int64) error

func WriteNewUser

func WriteNewUser(user *db_objects.User) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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