orchid-orm 1.70.1 → 1.71.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1374,6 +1374,10 @@ function afterCommit(hook) {
1374
1374
  * Identity helper for table row-level security configuration.
1375
1375
  */
1376
1376
  const defineRls = (rls) => rls;
1377
+ /**
1378
+ * Identity helper for table-local grant configuration.
1379
+ */
1380
+ const setGrants = (grants) => grants;
1377
1381
  const orchidORMBundleMetadataKey = Symbol("orchidORMBundleMetadataKey");
1378
1382
  const assignTablesToOrm = (tables, result, adapter, qb, asyncStorage, commonOptions, schema) => {
1379
1383
  const tableInstances = {};
@@ -1406,6 +1410,7 @@ const assignTablesToOrm = (tables, result, adapter, qb, asyncStorage, commonOpti
1406
1410
  dbTable.filePath = table.filePath;
1407
1411
  dbTable.name = table.constructor.name;
1408
1412
  dbTable.internal.tableRls = table.rls;
1413
+ dbTable.internal.tableGrants = table.grants;
1409
1414
  result[key] = dbTable;
1410
1415
  }
1411
1416
  applyRelations(qb, tableInstances, result, schema);
@@ -1522,6 +1527,6 @@ const createRepo = (table, methods) => {
1522
1527
  return q[key];
1523
1528
  } });
1524
1529
  };
1525
- export { bundleOrchidORMTables, createBaseTable, createRepo, defineRls, makeOrchidOrmDbWithAdapter, orchidORMWithAdapter };
1530
+ export { bundleOrchidORMTables, createBaseTable, createRepo, defineRls, makeOrchidOrmDbWithAdapter, orchidORMWithAdapter, setGrants };
1526
1531
 
1527
1532
  //# sourceMappingURL=index.mjs.map