@nuxodin/item 0.6.16 → 0.6.17

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxodin/item",
3
- "version": "0.6.16",
3
+ "version": "0.6.17",
4
4
  "description": "Reactive state library",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -102,6 +102,9 @@ export async function schemaToDb(schema, query, { force = false, patch = false }
102
102
  const primaries = fields.filter(([, f]) => f['x-index'] === 'primary').map(([n]) => n)
103
103
 
104
104
  if (!currTables.includes(table)) {
105
+ // Idea: WITHOUT ROWID when the primary key is not a single integer column and all other columns
106
+ // are narrow (numbers, booleans, short strings), e.g. measurement tables: about half the size.
107
+ // Requires NOT NULL key columns; only applies to newly created tables.
105
108
  stmts.push(`CREATE TABLE ${quoteId(table)} (\n${createBody(table, fields, primaries)}\n);`)
106
109
  stmts.push(...indexStatements(table, fields, primaries))
107
110
  } else {