Assistance Needed for Implementing Transactions with Drizzle-ORM and Postgres in Effect-TS
Hey guys. I was wondering if I could get some assistance / pointed in the right direction for an effect-drizzle improvement. Presently I am attempting to utilize drizzle’s transactions api while using a Postgres database. I’ve made a service derived from Anna | Devminer’s code that reads as follows:
Running this service results in the following:
Looking at drizzle-orm’s repos there are a few different Postgres drivers. Namely node-postgres and database-js
Seeing as both drizzle-orm's postgres-js driver and effect's PgClient both use the same “postgres-js” library I figured I’d ask how we can possibly compose a new effect-drizzle driver using the drizzle-orm postgres-js package. I could use a bit of help.
Running this service results in the following:
“DrizzleDatabaseError: Transactions are not supported by the Postgres Proxy driver”Looking at drizzle-orm’s repos there are a few different Postgres drivers. Namely node-postgres and database-js
Seeing as both drizzle-orm's postgres-js driver and effect's PgClient both use the same “postgres-js” library I figured I’d ask how we can possibly compose a new effect-drizzle driver using the drizzle-orm postgres-js package. I could use a bit of help.
