GitHub시작하기

API 레퍼런스는 소스 코드의 Go 문서 주석에서 추출되며 영어로 작성되어 있습니다.

package pgstore

import "github.com/nsgo-dev/game/pkg/online/leaderboard/selfhost/pgstore"

전용 linux, macos, windows, android, ios

개요

Package pgstore is experimental: its API and documented formats may change in a minor release. See the API stability policy. keeps the self-hosted leaderboard's records in Postgres through the pgx driver, so several service processes can share them.

색인

함수

func Open(ctx context.Context, dsn string) (*sqlstore.Store, error)

Open connects to the Postgres database at dsn, migrates its leaderboard schema and returns a store over it. Several service processes may share the database.