mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-21 01:16:49 +00:00
feat(infisical-pg): completed nested folder support for secret,folder and import operations
This commit is contained in:
@@ -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>) =>
|
||||
|
||||
@@ -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];
|
||||
Reference in New Issue
Block a user