tanstack-db-pglite 1.1.4 → 1.1.5

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.
Files changed (2) hide show
  1. package/dist/drizzle.js +2 -1
  2. package/package.json +1 -1
package/dist/drizzle.js CHANGED
@@ -86,6 +86,7 @@ export function drizzleCollectionOptions({ startSync = true, ...config }) {
86
86
  .from(config.table)
87
87
  .where(eq(config.primaryColumn, m.key))));
88
88
  }
89
+ const schema = createSelectSchema(config.table);
89
90
  return {
90
91
  startSync: true,
91
92
  sync: {
@@ -112,7 +113,7 @@ export function drizzleCollectionOptions({ startSync = true, ...config }) {
112
113
  },
113
114
  },
114
115
  gcTime: 0,
115
- schema: createSelectSchema(config.table),
116
+ schema,
116
117
  getKey: t => t[config.primaryColumn.name],
117
118
  onInsert: async (params) => {
118
119
  await config.db.transaction(async (tx) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tanstack-db-pglite",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "packageManager": "pnpm@10.32.1",
5
5
  "description": "",
6
6
  "author": "Valerii Strilets",