Page MenuHomeSoftware Heritage
Paste P1060

get_storage with instantiated db connection
ActivePublic

Authored by olasd on Jun 2 2021, 2:04 PM.
# try this first
get_storage(cls="postgresql", db=<psycopg2 connection instance>, objstorage={"cls": "memory"})
# ïf that doesn't work, something like the following should work
swh.storage.postgresql.storage.Storage(db=<psycopg2 connection instance>, objstorage={"cls": "memory"})

Event Timeline