A tool to migrate a fjall V2 database to V3.
use fjall_v2_v3_migrator::{DefaultOptionsFactory, migrate};
pub fn main() {
migrate("v2_folder", "v3_folder", DefaultOptionsFactory).unwrap();
}
// By implementing a custom options factory, you can configure keyspaces
impl OptionsFactory for MyOptionsFactory {
fn get_options(&self, keyspace_name: &str) -> fjall3::KeyspaceCreateOptions {
// Match on keyspace_name and build its Options
}
}