🌳
pt0/serverF/dbF/dbTypesF.mts
1import type { Knex } from 'knex'
2import type { Kysely } from 'kysely'
5export type DbConnInfo = {
6 qsName: string
7 extQs: string
8 enableSsl: boolean
9 dbQs: string
10 password: string
11 username: string
12 svcName: string
13 nodePort?: number
14 hostname: string
15 cluster_name: string
16 ips: string[]
17 isCnPg?: boolean
18 ptNodePortNo?: number
19 lanHostIpsH?: { clusterVip?: string }
20 needsKubePortFwd?: boolean
21 openPortNoA?: OpenPortNoA
24export type DbConn = Knex | Kysely<unknown>
26export type DbHandles = {
27 [key: string]: Knex | Kysely<unknown> | null