mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-05-23 00:04:48 -07:00
global: one big snapshot
This commit is contained in:
@@ -10,7 +10,8 @@ homepage.workspace = true
|
||||
repository.workspace = true
|
||||
|
||||
[dependencies]
|
||||
brk_core = { workspace = true }
|
||||
brk_error = { workspace = true }
|
||||
brk_structs = { workspace = true }
|
||||
byteview = { workspace = true }
|
||||
fjall = { workspace = true }
|
||||
log = { workspace = true }
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
use std::path::Path;
|
||||
|
||||
use brk_core::Result;
|
||||
use brk_error::Result;
|
||||
|
||||
fn main() -> Result<()> {
|
||||
let p = Path::new("./examples/_fjall");
|
||||
|
||||
let keyspace = brk_store::open_keyspace(p)?;
|
||||
let _keyspace = brk_store::open_keyspace(p)?;
|
||||
|
||||
// let mut store: Store<usize, usize> =
|
||||
// brk_store::Store::import(&keyspace, p, "n", Version::ZERO, None)?;
|
||||
|
||||
@@ -11,7 +11,8 @@ use std::{
|
||||
path::Path,
|
||||
};
|
||||
|
||||
use brk_core::{Height, Result, Version};
|
||||
use brk_error::Result;
|
||||
use brk_structs::{Height, Version};
|
||||
use byteview::ByteView;
|
||||
use fjall::{
|
||||
PartitionCreateOptions, PersistMode, ReadTransaction, TransactionalKeyspace,
|
||||
|
||||
@@ -3,7 +3,8 @@ use std::{
|
||||
path::{Path, PathBuf},
|
||||
};
|
||||
|
||||
use brk_core::{Result, Version};
|
||||
use brk_error::Result;
|
||||
use brk_structs::Version;
|
||||
use fjall::{PersistMode, TransactionalKeyspace, TransactionalPartitionHandle};
|
||||
|
||||
use super::Height;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
use brk_core::{Height, Result, Version};
|
||||
use brk_error::Result;
|
||||
use brk_structs::{Height, Version};
|
||||
|
||||
pub trait AnyStore {
|
||||
fn commit(&mut self, height: Height) -> Result<()>;
|
||||
|
||||
Reference in New Issue
Block a user