mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-14 18:41:21 +00:00
12 lines
358 B
TypeScript
12 lines
358 B
TypeScript
import { TDbClient } from "@app/db";
|
|
import { TableName } from "@app/db/schemas";
|
|
import { ormify } from "@app/lib/knex";
|
|
|
|
export type TIdentityAwsAuthDALFactory = ReturnType<typeof identityAwsAuthDALFactory>;
|
|
|
|
export const identityAwsAuthDALFactory = (db: TDbClient) => {
|
|
const awsAuthOrm = ormify(db, TableName.IdentityAwsAuth);
|
|
|
|
return awsAuthOrm;
|
|
};
|