openwallet-foundation / askar

Secure storage designed for Hyperledger Aries agents.
Apache License 2.0
63 stars 51 forks source link

Able to create an in-memory sqlite database? #318

Closed jamshale closed 1 month ago

jamshale commented 1 month ago

From the python library is there a way to create an in-memory sqlite database?

I see this https://github.com/hyperledger/aries-askar/blob/main/askar-storage/src/backend/sqlite/provision.rs#L50 and will try and figure it out myself. Just posting this here is anyone knows off the to of their head.

context: We're trying to rely on askar fully in aca-py and remove the existing in-memory wallet that was created for testing. Having the option to create an in-memory wallet that is askar based would really help speed up the tests and prevent file IO errors.

andrewwhitehead commented 1 month ago

Yes, just use the store URL sqlite://:memory:.