build: bump redb to 3.0
This commit is contained in:
3
sdgb-cli/src/cache/mod.rs
vendored
3
sdgb-cli/src/cache/mod.rs
vendored
@@ -1,12 +1,11 @@
|
||||
use std::sync::LazyLock;
|
||||
|
||||
use redb::{ReadTransaction, Table, TableDefinition, WriteTransaction};
|
||||
use redb::{ReadTransaction, ReadableDatabase as _, Table, TableDefinition, WriteTransaction};
|
||||
|
||||
static DATABASE: LazyLock<redb::Database> = LazyLock::new(|| {
|
||||
let mut db = redb::Database::builder()
|
||||
.create("players.redb")
|
||||
.expect("failed to open database");
|
||||
_ = db.upgrade();
|
||||
_ = db.compact();
|
||||
db
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user