MCPcopy Create free account
hub / github.com/Effect-TS/effect / isInLineComment

Function isInLineComment

packages/effect/src/sql/Statement.ts:1827–1827  ·  view source on GitHub ↗
(sql: string, index: number)

Source from the content-addressed store, hash-verified

1825const emptyInKeyword = /\b(NOT\s+)?IN\s*$/i
1826
1827const isInLineComment = (sql: string, index: number) => sql.lastIndexOf("--", index) > sql.lastIndexOf("\n", index)

Callers 1

compileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected