mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-19 02:25:07 +00:00
11 lines
360 B
TypeScript
11 lines
360 B
TypeScript
import { TDbClient } from "@app/db";
|
|
import { TableName } from "@app/db/schemas";
|
|
import { ormify, TOrmify } from "@app/lib/knex";
|
|
|
|
export type TTrustedIpDALFactory = TOrmify<TableName.TrustedIps>;
|
|
|
|
export const trustedIpDALFactory = (db: TDbClient): TTrustedIpDALFactory => {
|
|
const trustedIpOrm = ormify(db, TableName.TrustedIps);
|
|
return trustedIpOrm;
|
|
};
|