Documentation ¶
Overview ¶
Package atlasdb implements sqlite3 database storage for accounts and other atlas data.
Index ¶
- type DB
- func (db *DB) Close() error
- func (db *DB) GetAccount(uid uint64) (*api0.Account, error)
- func (db *DB) GetUIDsByUsername(username string) ([]uint64, error)
- func (db *DB) MigrateDown(ctx context.Context, to uint64) error
- func (db *DB) MigrateUp(ctx context.Context, to uint64) error
- func (db *DB) SaveAccount(a *api0.Account) 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 atlas data in a sqlite3 database.
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.