-
Notifications
You must be signed in to change notification settings - Fork 200
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 from SQLite to Postgres with Askar #1569
Comments
Related to openwallet-foundation/askar#58 |
I guess that it can be solved by exporting from SQLite and importing to Postgres, but I couldn't find any API for export/import. |
At the time when we implemented initial Askar module, aries-askar did not include any feature to import/export stores natively, so our alternative was to just do the manual work of copying the entire database and re-keying the wallet. However, now that openwallet-foundation/askar#159 has been merged, I think it should be possible to copy an entire store (or an individual profile) to another one. It might even be possible to switch between backends, which would be certainly promising. I guess as soon as openwallet-foundation/askar#169 and openwallet-foundation/askar#170 are merged, a new release of Askar JS wrappers can be done and we could incorporate its enhancements to |
Was already typing my reply, but you covered it pretty well @genaris :) |
Thanks again for the prompt replies @genaris @TimoGlastra ! |
@genaris @TimoGlastra with both of those PRs merged, has a new release of the Askar JS wrapper been made/has that been incorporated into the I'm just trying to update storage for an agent on
This is similar to the error from OP, but it's because |
In case of PosgreSQL wallets, it is possible to update but you'll need to explicitly set It is of course recommended that you make a backup of your DB before doing any update using this setting. |
That's true, and I can do that for now, but is there a plan to add auto backup support for Postgres backends? |
I thought this would be as simple as exporting the sqlite wallet, and importing into a postgres wallet.
But
AskarWallet.ts
has the following error:So a couple of questions:
The text was updated successfully, but these errors were encountered: