mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-17 02:47:35 +00:00
feat: secret sharing
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import { TDbClient } from "@app/db";
|
||||
import { TableName } from "@app/db/schemas";
|
||||
import { ormify } from "@app/lib/knex";
|
||||
|
||||
export type TSecretSharingDALFactory = ReturnType<typeof secretSharingDALFactory>;
|
||||
|
||||
export const secretSharingDALFactory = (db: TDbClient) => {
|
||||
const sharedSecretOrm = ormify(db, TableName.SecretSharing);
|
||||
|
||||
return {
|
||||
create: sharedSecretOrm.create,
|
||||
find: sharedSecretOrm.find,
|
||||
findById: sharedSecretOrm.findById,
|
||||
deleteById: sharedSecretOrm.deleteById
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user