-
Notifications
You must be signed in to change notification settings - Fork 55
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
Import/export endpoints #16
Conversation
} | ||
}, | ||
handler: (req, reply) => { | ||
const promises = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
read the raw storage here
handler: (req, reply) => { | ||
const data = req.payload; | ||
|
||
req.storage.importData(data) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
call webtaskStorage.write here
if (!options.provider) { | ||
throw new ArgumentError('The \'provider\' has to be set when initializing the database.'); | ||
} | ||
|
||
this.provider = options.provider; | ||
} | ||
|
||
importData(data) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't implement this here. it will not work for all "databases"
No description provided.