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

Function drizzleInternals

apps/cloud/src/db/db.schema.test.ts:81–84  ·  view source on GitHub ↗
(
            value: unknown,
          )

Source from the content-addressed store, hash-verified

79 Effect.sync(() => {
80 const db = drizzle(sql, { schema: combinedSchema });
81 const drizzleInternals = (
82 value: unknown,
83 ): { _: { fullSchema: Record<string, unknown> } } =>
84 value as { _: { fullSchema: Record<string, unknown> } };
85 const fullSchema = drizzleInternals(db)._.fullSchema;
86 for (const key of Object.keys(executorSchema)) {
87 expect(fullSchema, `fullSchema missing "${key}"`).toHaveProperty(key);

Callers 1

db.schema.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected