@pol-studios/db 1.0.18 → 1.0.21

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.
@@ -1554,13 +1554,11 @@ function createAdapterAutoDetector(powerSyncDb, supabase, options) {
1554
1554
  }
1555
1555
 
1556
1556
  // src/adapters/registry.ts
1557
- function generatePowerSyncAlias(tableName) {
1557
+ function stripSchemaPrefix(tableName) {
1558
1558
  if (!tableName.includes(".")) {
1559
1559
  return tableName;
1560
1560
  }
1561
- const [schema, table] = tableName.split(".");
1562
- const pascalSchema = schema.charAt(0).toUpperCase() + schema.slice(1);
1563
- return `${pascalSchema}${table}`;
1561
+ return tableName.split(".")[1];
1564
1562
  }
1565
1563
  function getPowerSyncAlias(tableName, strategy) {
1566
1564
  if (strategy && (strategy.strategy === "powersync" || strategy.strategy === "hybrid")) {
@@ -1569,7 +1567,7 @@ function getPowerSyncAlias(tableName, strategy) {
1569
1567
  return typedStrategy.alias;
1570
1568
  }
1571
1569
  }
1572
- return generatePowerSyncAlias(tableName);
1570
+ return stripSchemaPrefix(tableName);
1573
1571
  }
1574
1572
  var AdapterRegistry = class {
1575
1573
  /**
@@ -1698,7 +1696,6 @@ var AdapterRegistry = class {
1698
1696
  getAdapter(table) {
1699
1697
  const tableWithoutSchema = table.includes(".") ? table.split(".")[1] : table;
1700
1698
  const strategy = this.config.tables[table] ?? this.config.tables[tableWithoutSchema];
1701
- const configKey = this.config.tables[table] ? table : tableWithoutSchema;
1702
1699
  if (!strategy || strategy.strategy === "auto") {
1703
1700
  if (this.powerSyncAdapter) {
1704
1701
  const powerSyncTableKeys = this.getPowerSyncTableKeys();
@@ -1816,7 +1813,7 @@ var AdapterRegistry = class {
1816
1813
  * @param strategy - Optional auto strategy configuration
1817
1814
  * @returns The automatically selected adapter
1818
1815
  */
1819
- getAutoAdapter(strategy) {
1816
+ getAutoAdapter(_strategy) {
1820
1817
  if (!this.autoDetector) {
1821
1818
  if (!this.supabaseAdapter) {
1822
1819
  throw new Error("No auto-detector configured and Supabase adapter not available. Either initialize auto-detection or set adapters explicitly.");
@@ -3879,6 +3876,7 @@ export {
3879
3876
  BackendStatus,
3880
3877
  AdapterAutoDetector,
3881
3878
  createAdapterAutoDetector,
3879
+ stripSchemaPrefix,
3882
3880
  AdapterRegistry,
3883
3881
  createAdapterRegistry,
3884
3882
  SupabaseAdapter,
@@ -3917,4 +3915,4 @@ export {
3917
3915
  useApplyFeedback,
3918
3916
  useResolveFeedback
3919
3917
  };
3920
- //# sourceMappingURL=chunk-XOPORVJG.js.map
3918
+ //# sourceMappingURL=chunk-R5B2XMN5.js.map