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

Function ref

tests/e2e/orm/policy/raw-sql.test.ts:35–37  ·  view source on GitHub ↗
(client: ClientContract<SchemaDef>, col: string)

Source from the content-addressed store, hash-verified

33 });
34
35 function ref(client: ClientContract<SchemaDef>, col: string) {
36 return client.$schema.provider.type === 'mysql' ? sql.raw(`\`${col}\``) : sql.raw(`"${col}"`);
37 }
38
39 async function createPolicyClient(options?: { dangerouslyAllowRawSql?: boolean; dbName: string }) {
40 const unsafeClient = await createTestClient(schema, {

Callers 1

raw-sql.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected