MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / firstWord

Function firstWord

apps/host-cloudflare/src/db/data-migrations.ts:22–22  ·  view source on GitHub ↗
(sql: string)

Source from the content-addressed store, hash-verified

20const TX_CONTROL = new Set(["BEGIN", "BEGIN TRANSACTION", "COMMIT", "ROLLBACK"]);
21
22const firstWord = (sql: string): string => sql.trimStart().split(/\s+/, 1)[0]?.toUpperCase() ?? "";
23
24const queryRows = <T extends Record<string, unknown>>(
25 session: D1DatabaseSession,

Callers 1

queryRowsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected