Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix(pam): add dialect TODO to FilterPopover, unexport quoteIdent/quoteLiteral

bernie-ga428653d6132
diff --git a/frontend/src/pages/pam/PamDataExplorerPage/components/FilterPopover.tsx b/frontend/src/pages/pam/PamDataExplorerPage/components/FilterPopover.tsx
index 68573fc665..e7fe181984 100644
--- a/frontend/src/pages/pam/PamDataExplorerPage/components/FilterPopover.tsx
+++ b/frontend/src/pages/pam/PamDataExplorerPage/components/FilterPopover.tsx
@@ -15,6 +15,7 @@ import {
import type { ColumnInfo } from "../data-explorer-types";
import type { FilterCondition, FilterOperator, SqlDialect } from "../sql-generation";
+// TODO: split by dialect when we add more DB engines
function getFilterPlaceholder(columnType: string, operator: FilterOperator): string {
switch (operator) {
case "LIKE":
diff --git a/frontend/src/pages/pam/PamDataExplorerPage/sql-generation.ts b/frontend/src/pages/pam/PamDataExplorerPage/sql-generation.ts
index 307d25f05c..6b8f123950 100644
--- a/frontend/src/pages/pam/PamDataExplorerPage/sql-generation.ts
+++ b/frontend/src/pages/pam/PamDataExplorerPage/sql-generation.ts
@@ -3,12 +3,12 @@
export type SqlDialect = "postgres" | "mysql";
-export function quoteIdent(name: string, dialect: SqlDialect = "postgres"): string {
+function quoteIdent(name: string, dialect: SqlDialect = "postgres"): string {
if (dialect === "mysql") return `\`${name.replace(/`/g, "``")}\``;
return `"${name.replace(/"/g, '""')}"`;
}
-export function quoteLiteral(value: unknown, dialect: SqlDialect = "postgres"): string {
+function quoteLiteral(value: unknown, dialect: SqlDialect = "postgres"): string {
if (value === null || value === undefined) return "NULL";
if (typeof value === "number") {
if (!Number.isFinite(value)) return "NULL";