Documentation ¶
Overview ¶
Package pdatadb implements sqlite3 database storage for pdata.
Index ¶
- type DB
- func (db *DB) Close() error
- func (db *DB) GetPdataCached(uid uint64, sha [sha256.Size]byte) (buf []byte, exists bool, err error)
- func (db *DB) GetPdataHash(uid uint64) (hash [sha256.Size]byte, exists bool, err error)
- func (db *DB) MigrateDown(ctx context.Context, to uint64) error
- func (db *DB) MigrateUp(ctx context.Context, to uint64) error
- func (db *DB) SetPdata(uid uint64, buf []byte) (n int, err error)
- func (db *DB) Version() (current, required uint64, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB stores player data in a sqlite3 database.
func (*DB) GetPdataCached ¶
func (*DB) GetPdataHash ¶
func (*DB) MigrateDown ¶
MigrateDown migrates the database down to the provided version. This will probably eat your data.
Click to show internal directories.
Click to hide internal directories.