Defined in: node_modules/.pnpm/@rawsql-ts+testkit-postgres@0.16.0/node_modules/@rawsql-ts/testkit-postgres/dist/types.d.ts:61
Configuration for initializing a PostgresTestkitClient, including fixtures, formatter options, and executor wiring.
Extends
Type Parameters
RowType
The row shape produced by the provided executor.
Properties
defaultSchema?
optionaldefaultSchema?:string
Defined in: node_modules/.pnpm/@rawsql-ts+testkit-postgres@0.16.0/node_modules/@rawsql-ts/testkit-postgres/dist/types.d.ts:36
Inherited from
SchemaResolutionOptions.defaultSchema
searchPath?
optionalsearchPath?:string[]
Defined in: node_modules/.pnpm/@rawsql-ts+testkit-postgres@0.16.0/node_modules/@rawsql-ts/testkit-postgres/dist/types.d.ts:37
Inherited from
SchemaResolutionOptions.searchPath
queryExecutor
queryExecutor:
TypedQueryExecutor<RowType>
Defined in: node_modules/.pnpm/@rawsql-ts+testkit-postgres@0.16.0/node_modules/@rawsql-ts/testkit-postgres/dist/types.d.ts:62
The driver executor used to run rewritten SQL.
generated?
optionalgenerated?:GeneratedFixtureManifest
Defined in: node_modules/.pnpm/@rawsql-ts+testkit-postgres@0.16.0/node_modules/@rawsql-ts/testkit-postgres/dist/types.d.ts:63
Optional generated runtime metadata from ztd-config; preferred over raw DDL directories.
tableDefinitions?
optionaltableDefinitions?:TableDefinitionModel[]
Defined in: node_modules/.pnpm/@rawsql-ts+testkit-postgres@0.16.0/node_modules/@rawsql-ts/testkit-postgres/dist/types.d.ts:64
Optional table metadata that describes the schema.
tableRows?
optionaltableRows?:TableRowsFixture[]
Defined in: node_modules/.pnpm/@rawsql-ts+testkit-postgres@0.16.0/node_modules/@rawsql-ts/testkit-postgres/dist/types.d.ts:65
Optional fixture rows seeded for tests.
formatterOptions?
optionalformatterOptions?:SqlFormatterOptions
Defined in: node_modules/.pnpm/@rawsql-ts+testkit-postgres@0.16.0/node_modules/@rawsql-ts/testkit-postgres/dist/types.d.ts:66
SQL formatter tweaks that influence the rewritten queries.
missingFixtureStrategy?
optionalmissingFixtureStrategy?:MissingFixtureStrategy
Defined in: node_modules/.pnpm/@rawsql-ts+testkit-postgres@0.16.0/node_modules/@rawsql-ts/testkit-postgres/dist/types.d.ts:67
Strategy for resolving missing fixtures (error/skip).
ddl?
optionalddl?:DdlFixtureLoaderOptions
Defined in: node_modules/.pnpm/@rawsql-ts+testkit-postgres@0.16.0/node_modules/@rawsql-ts/testkit-postgres/dist/types.d.ts:68
DDL loader options used during schema resolution.
onExecute?
optionalonExecute?: (sql,params?,fixtures?) =>void
Defined in: node_modules/.pnpm/@rawsql-ts+testkit-postgres@0.16.0/node_modules/@rawsql-ts/testkit-postgres/dist/types.d.ts:69
Optional hook invoked when the client executes rewritten SQL.
Parameters
sql
string
params?
unknown[]
fixtures?
string[]
Returns
void
disposeExecutor?
optionaldisposeExecutor?: () =>void|Promise<void>
Defined in: node_modules/.pnpm/@rawsql-ts+testkit-postgres@0.16.0/node_modules/@rawsql-ts/testkit-postgres/dist/types.d.ts:70
Optional cleanup function called when the client closes.
Returns
void | Promise<void>