MCPcopy Create free account
hub / github.com/InsForge/InsForge / getRawTextGuardError

Function getRawTextGuardError

backend/src/utils/sql-parser.ts:27–33  ·  view source on GitHub ↗
(query: string)

Source from the content-addressed store, hash-verified

25]);
26
27function getRawTextGuardError(query: string): string | null {
28 if (SET_CONFIG_PATTERN.test(query)) {
29 return 'Changing SQL session configuration is not allowed.';
30 }
31
32 return null;
33}
34
35/**
36 * Initialize the SQL parser WASM module.

Callers 1

checkSqlExecutionGuardsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected