feat(infisical-pg): completed nested folder support for secret,folder and import operations

This commit is contained in:
Akhil Mohan
2024-01-27 12:38:23 +05:30
parent 0e1191f2ea
commit 010963a80c
4 changed files with 109 additions and 22 deletions
+1
View File
@@ -4,6 +4,7 @@ import { Tables } from "knex/types/tables";
import { DatabaseError } from "../errors";
export * from "./join";
export * from "./select";
export const withTransaction = <K extends object>(db: Knex, dal: K) => ({
transaction: async <T>(cb: (tx: Knex) => Promise<T>) =>
+5
View File
@@ -0,0 +1,5 @@
import { Knex } from "knex";
import { Tables } from "knex/types/tables";
export const selectAllTableCols = <Tname extends keyof Tables>(db: Knex, tableName: Tname) =>
db.ref("*").withSchema(tableName) as unknown as keyof Tables[Tname];