import { TDbClient } from "@app/db"; import { TableName } from "@app/db/schemas"; import { ormify } from "@app/lib/knex"; export type TCertificateSecretDALFactory = ReturnType; export const certificateSecretDALFactory = (db: TDbClient) => { const certSecretOrm = ormify(db, TableName.CertificateSecret); return certSecretOrm; };