mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-15 06:35:21 +00:00
11 lines
391 B
TypeScript
11 lines
391 B
TypeScript
import { TDbClient } from "@app/db";
|
|
import { TableName } from "@app/db/schemas";
|
|
import { ormify } from "@app/lib/knex";
|
|
|
|
export type TCertificateAuthorityCertDALFactory = ReturnType<typeof certificateAuthorityCertDALFactory>;
|
|
|
|
export const certificateAuthorityCertDALFactory = (db: TDbClient) => {
|
|
const caCertOrm = ormify(db, TableName.CertificateAuthorityCert);
|
|
return caCertOrm;
|
|
};
|