Skip to content
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

Docs: how to save and load the database? #8

Open
jlarmstrongiv opened this issue Apr 14, 2023 · 1 comment
Open

Docs: how to save and load the database? #8

jlarmstrongiv opened this issue Apr 14, 2023 · 1 comment

Comments

@jlarmstrongiv
Copy link

What is the recommended way to save and load a database with blinkdb?

@froehlichA
Copy link
Contributor

For now, you can simply use many/insertMany with

// save
const items = await many(table);
saveDataSomewhere(items);

// load
const items = loadDataFromSomewhere();
await insertMany(table, items);

I will implement a faster way in the future, but that will depend heavily on the underlying db structure and therefore will take some time to implement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants