Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

371 B
Raw Blame
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;
};