mirror of
https://github.com/Kaelio/ktx.git
synced 2026-06-25 08:48:08 +02:00
test: close unified ingest v1 expectations
This commit is contained in:
parent
23dba892cd
commit
1180fffdeb
9 changed files with 48 additions and 20 deletions
|
|
@ -2,7 +2,7 @@ import type { KtxProjectConfig, KtxProjectConnectionConfig } from '@ktx/context/
|
|||
|
||||
export type KtxDatabaseContextDepth = 'fast' | 'deep';
|
||||
|
||||
export const KTX_DATABASE_DRIVER_IDS = new Set([
|
||||
const KTX_DATABASE_DRIVER_IDS = new Set([
|
||||
'sqlite',
|
||||
'postgres',
|
||||
'postgresql',
|
||||
|
|
@ -23,7 +23,7 @@ export function isDatabaseDriver(driver: string): boolean {
|
|||
return KTX_DATABASE_DRIVER_IDS.has(driver.trim().toLowerCase());
|
||||
}
|
||||
|
||||
export function connectionContextRecord(connection: KtxProjectConnectionConfig): Record<string, unknown> {
|
||||
function connectionContextRecord(connection: KtxProjectConnectionConfig): Record<string, unknown> {
|
||||
const context = connection.context;
|
||||
return typeof context === 'object' && context !== null && !Array.isArray(context)
|
||||
? (context as Record<string, unknown>)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue