db

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDataSourceName

func GetDataSourceName() (string, string, error)

func GetSQL

func GetSQL(name string, req interface{}) string

func LoadBgDataForScore

func LoadBgDataForScore(r *BgRepository) error

<summary>: ボードゲームのデータを読み込みます

Types

type BgRepository

type BgRepository struct {
	*gorp.DbMap
}
var (
	// <summary>: DB接続のコネクションプール
	BgRepo *BgRepository
)

func NewRepository

func NewRepository(dm *gorp.DbMap) *BgRepository

func (*BgRepository) GetScoreSupported

func (r *BgRepository) GetScoreSupported() ([]models.BgScoreSupport, error)

Jump to

Keyboard shortcuts

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