mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-18 15:04:59 +00:00
11 lines
371 B
TypeScript
11 lines
371 B
TypeScript
import { TDbClient } from "@app/db";
|
|
import { TableName } from "@app/db/schemas";
|
|
import { ormify } from "@app/lib/knex";
|
|
|
|
export type TCertificateSecretDALFactory = ReturnType<typeof certificateSecretDALFactory>;
|
|
|
|
export const certificateSecretDALFactory = (db: TDbClient) => {
|
|
const certSecretOrm = ormify(db, TableName.CertificateSecret);
|
|
return certSecretOrm;
|
|
};
|