Defined in: node_modules/.pnpm/@rawsql-ts+testkit-postgres@0.16.0/node_modules/@rawsql-ts/testkit-postgres/dist/client/PostgresTestkitClient.d.ts:10
The driver-agnostic Postgres testkit client that rewrites SQL using fixtures and delegates to a QueryExecutor.
Type Parameters
RowType
Constructors
Constructor
new PostgresTestkitClient<
RowType>(options,scopedRows?,context?):PostgresTestkitClient<RowType>
Defined in: node_modules/.pnpm/@rawsql-ts+testkit-postgres@0.16.0/node_modules/@rawsql-ts/testkit-postgres/dist/client/PostgresTestkitClient.d.ts:17
Parameters
options
CreatePostgresTestkitClientOptions<RowType>
scopedRows?
context?
ExecutionContext<RowType>
Returns
PostgresTestkitClient<RowType>
Methods
query()
query(
textOrConfig,values?):Promise<CountableResult<RowType>>
Defined in: node_modules/.pnpm/@rawsql-ts+testkit-postgres@0.16.0/node_modules/@rawsql-ts/testkit-postgres/dist/client/PostgresTestkitClient.d.ts:18
Parameters
textOrConfig
string | PostgresQueryInput
values?
unknown[]
Returns
Promise<CountableResult<RowType>>
withFixtures()
withFixtures(
fixtures):PostgresTestkitClient<RowType>
Defined in: node_modules/.pnpm/@rawsql-ts+testkit-postgres@0.16.0/node_modules/@rawsql-ts/testkit-postgres/dist/client/PostgresTestkitClient.d.ts:19
Parameters
fixtures
Returns
PostgresTestkitClient<RowType>
close()
close():
Promise<void>
Defined in: node_modules/.pnpm/@rawsql-ts+testkit-postgres@0.16.0/node_modules/@rawsql-ts/testkit-postgres/dist/client/PostgresTestkitClient.d.ts:20
Returns
Promise<void>