mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-13 05:29:25 +00:00
11 lines
379 B
TypeScript
11 lines
379 B
TypeScript
import { TDbClient } from "@app/db";
|
|
import { TableName } from "@app/db/schemas";
|
|
import { ormify } from "@app/lib/knex";
|
|
|
|
export type TSshHostLoginUserDALFactory = ReturnType<typeof sshHostLoginUserDALFactory>;
|
|
|
|
export const sshHostLoginUserDALFactory = (db: TDbClient) => {
|
|
const sshHostLoginUserOrm = ormify(db, TableName.SshHostLoginUser);
|
|
return sshHostLoginUserOrm;
|
|
};
|