electric-sql / electric-sql/pglite

Throw error when main db instance method used inside an interactive transaction

Open
#76 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
16k
Forks
442
Avg merge
20h 19m
Merged PRs (30d)
7

Description

```JS
const client = new PGlite();
await client.transaction(async (tx) => {
await tx.query('select 1');
await client.query('select 1'); // process just exits without any errors
})
```

Is this an intended behavior? (I know that I shouldn't do this, but still)

```shell
$ node -v
v20.11.0
$ arch
arm64
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.