-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
migrate
API to allow bootstrapping schema data on launch of node
#597
Comments
migrate
method to allow bootstrapping schema data on launch of nodemigrate
API to allow bootstrapping schema data on launch of node
Another idea could be to add the schema file into the use aquadoggo::{Configuration, Node};
use p2panda_rs::identity::KeyPair;
let config = Configuration {
lock_file_path: "...",
...Default::default(),
};
let key_pair = KeyPair::new();
let node = Node::start(key_pair, config).await; Then |
There's basically two usecases here:
|
Really nice functionality to have access to programmatically, there's already a demand for it too. With regards to the two use cases you outline above, both are very valid. I'm wondering if they could be combined in some way into a unified API which serves both cases. Basically the API from version If we would rather pick one, then I'd lean towards I'm working on an embedded node in a tauri app, and for this I definitely need |
Good point, we already have fishy for that! Let's go for the embed case then |
Related discussion: p2panda/fishy#11
The text was updated successfully, but these errors were encountered: