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

Import/export endpoints #16

Merged
merged 4 commits into from
Oct 15, 2016
Merged

Import/export endpoints #16

merged 4 commits into from
Oct 15, 2016

Conversation

zxan1285
Copy link
Contributor

No description provided.

}
},
handler: (req, reply) => {
const promises = {
Copy link
Member

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)
Copy link
Member

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) {
Copy link
Member

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"

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

Successfully merging this pull request may close these issues.

2 participants