mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-16 10:18:16 +00:00
12 lines
340 B
TypeScript
12 lines
340 B
TypeScript
import { TDbClient } from "@app/db";
|
|
import { TableName } from "@app/db/schemas";
|
|
import { ormify } from "@app/lib/knex";
|
|
|
|
export type TAuditLogStreamDALFactory = ReturnType<typeof auditLogStreamDALFactory>;
|
|
|
|
export const auditLogStreamDALFactory = (db: TDbClient) => {
|
|
const orm = ormify(db, TableName.AuditLogStream);
|
|
|
|
return orm;
|
|
};
|