chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 12:10:05 +08:00
commit d37d8d293b
1388 changed files with 484182 additions and 0 deletions
@@ -0,0 +1,16 @@
import { crudPolicy } from 'drizzle-orm/neon';
import { getTableConfig, integer, pgPolicy, pgRole, pgTable } from 'drizzle-orm/pg-core';
import { test } from 'vitest';
test.skip('getTableConfig: policies', async () => {
const schema = pgTable('hhh', {
id: integer(),
}, () => [
pgPolicy('name'),
crudPolicy({ role: pgRole('users'), read: true, modify: true }),
]);
const tc = getTableConfig(schema);
console.log(tc.policies);
});