We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I want to copy all the contents of a leveldb all documents to another instance, would this code be sufficient or should I do something else
const source = new LeveldbPersistence(path); const target = new LeveldbPersistence(T); const list = await source.getAllDocNames(); const proms = list.map(async (d) => { const item = await target.getYDoc(d); await target.storeUpdate(d, encodeStateAsUpdate(item)); }); await Promise.all(proms);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I want to copy all the contents of a leveldb all documents to another instance, would this code be sufficient or should I do something else
The text was updated successfully, but these errors were encountered: