MCPcopy Create free account
hub / github.com/sqlchat/sqlchat / checkStatementIsSelect

Function checkStatementIsSelect

src/utils/sql.ts:1–3  ·  view source on GitHub ↗
(statement: string)

Source from the content-addressed store, hash-verified

1export const checkStatementIsSelect = (statement: string) => {
2 return statement.toUpperCase().trim().startsWith("SELECT");
3};

Callers 1

QueryDrawerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected