public class SqlGuardRequest extends Object
| Modifier and Type | Field and Description |
|---|---|
String |
catalog |
String |
catalogMode |
String |
dialect |
Map<String,Object> |
options |
String |
policyPreset |
String |
question
Optional natural-language question that motivated the SQL — the
caller's stated intent.
|
String |
requestId |
String |
sampleCatalogId |
String |
sql |
Map<String,Object> |
userContext |
| Constructor and Description |
|---|
SqlGuardRequest() |
public String catalogMode
public String sampleCatalogId
public String policyPreset
public String question
AGGREGATION_GRAIN_MISMATCH) to compare against the SQL's
actual aggregation grain. Deliberately kept as a free-text string;
the rule uses a small keyword whitelist, not NLP. null
disables every intent-vs-SQL check (existing requests round-trip
byte-identical).public Map<String,Object> userContext
public SqlGuardRequest()
public static SqlGuardRequest fromJson(String json)