-
Notifications
You must be signed in to change notification settings - Fork 218
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
node-drivers: node-postgres based driver for testing #4151
Conversation
CodSpeed Performance ReportMerging #4151 will not alter performanceComparing Summary
|
super({ client: connection, isTransaction: true }) | ||
class PgTransaction extends PgQueryable<TransactionClient> implements Transaction { | ||
constructor(client: pg.PoolClient) { | ||
super(client) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't that equivalent to leaving the constructor out?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you referring to the constructor(client) { super(client) }
in a subclass of a class having a compatible constructor? Yes, it's indeed redundant. I find it easier to read, but feel free to remove it.
} | ||
|
||
/** | ||
* Execute a query given as SQL, interpolating the given parameters and |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The parameters aren't interpolated in quaint/tokio_postgres — is it different in PG?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That series of comments is copied almost verbatim from
/// Execute a query given as SQL, interpolating the given parameters. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should fix that, at some point.
f5a9add
to
0fceccc
Compare
To facilitate local evaluation and performance testing of the prototype. It follows the same patterns as the planetscale and neon drivers, and includes smoke tests. Co-authored-by: jkomyno <schiabel@prisma.io>
0fceccc
to
15a0bc1
Compare
import { ColumnTypeEnum, type ColumnType } from '@jkomyno/prisma-js-connector-utils' | ||
import { types } from 'pg' | ||
|
||
const NeonColumnType = types.builtins |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
copy/paste or should this really say PgColumnType
or similar?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
copy/paste
To facilitate local evaluation and performance testing of the prototype.
It follows the same patterns as the planetscale and neon drivers, and
includes smoke tests.
Co-authored-by: jkomyno schiabel@prisma.io