@databrainhq/plugin 0.14.1 → 0.14.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,6 +9,13 @@ type ReplaceVariable = {
9
9
  };
10
10
  export declare const replaceVariable: ({ query, rlsConditions, tenancyLevel, clientId, values, isAllClient, }: ReplaceVariable) => string;
11
11
  export declare const nameSpaceSpecification: (parentAlias: string, columnName: string, dbName: string) => string;
12
+ export declare const cteQuery: (queryStr: string, groupedConditions: Record<string, RlsCondition[]>, dbName: string) => string;
13
+ export declare const subQuery: (queryStr: string, groupedConditions: Record<string, RlsCondition[]>, dbName: string) => string;
14
+ export declare const getReplacedQuery: (table: {
15
+ tableName: string;
16
+ condition: string;
17
+ }, query: string, dbName: string) => string;
18
+ export declare const replaceWhereClauses: (queryStr: string, groupedConditions: Record<string, RlsCondition[]>, dbName: string) => string;
12
19
  export declare const getModifiedQuery: ({ rlsConditions, dbName, query, }: {
13
20
  rlsConditions: RlsCondition[];
14
21
  dbName: string;