MCPcopy Create free account
hub / github.com/zenstackhq/zenstack / ref

Function ref

tests/e2e/orm/client-api/raw-query.test.ts:20–22  ·  view source on GitHub ↗
(col: string)

Source from the content-addressed store, hash-verified

18 });
19
20 function ref(col: string) {
21 return client.$schema.provider.type === ('mysql' as any) ? sql.raw(`\`${col}\``) : sql.raw(`"${col}"`);
22 }
23
24 it('works with executeRaw', async () => {
25 await client.user.create({

Callers 1

raw-query.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected