db

package
v0.0.0-...-73fb8be Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DbConnection *sql.DB

Functions

func CreateRankingtable

func CreateRankingtable(tx *sql.Tx) error

func CreateUsertable

func CreateUsertable(tx *sql.Tx) error

func DBinit

func DBinit() error

func InsertUserData

func InsertUserData(userID, userName string, tx *sql.Tx) error

func Transaction

func Transaction(txFunc func(*sql.Tx) error, dbConn *sql.DB) error

トランザクション処理

Types

type LocalRanking

type LocalRanking struct {
	Score     int
	CreatedAt string
}

type User

type User struct {
	Id       string
	UserName string
}

func SelectUser

func SelectUser() (*User, error)

Jump to

Keyboard shortcuts

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