findReferencedLazyKeysInSql
findReferencedLazyKeysInSql(
sql,index):Set<string>
Defined in: packages/client/src/lazy-guard.ts:111
The compiled-SQL scan: the lazy registry keys whose quoted reference token appears in sql. Because
the token is fully quoted it is self-delimiting ("a" cannot match inside "ab"), so a substring test
is exact. A bare token sitting in alias position (… as "name", which Drizzle emits for .as("name"))
is excluded — the one realistic collision for a schema-less relation; a schema-qualified token cannot be
aliased and so needs no such guard.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Set<string>