Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

feat: add sensitive policy struct (#3447)

rebelice32e22cef2da0
diff --git a/plugin/db/driver.go b/plugin/db/driver.go
index 45f9024cab..653442f00c 100644
--- a/plugin/db/driver.go
+++ b/plugin/db/driver.go
@@ -548,3 +548,9 @@ func FormatParamNameInNumberedPosition(paramNames []string) string {
}
return fmt.Sprintf("WHERE %s ", strings.Join(parts, " AND "))
}
+
+// SensitiveColumnList is the list for sensitive columns.
+type SensitiveColumnList []string
+
+// SensitiveSchema is the set of the sensitive columns group by table names.
+type SensitiveSchema map[string]SensitiveColumnList