@syncular/typegen 0.32.1 → 0.34.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/README.md +4 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -262,7 +262,8 @@ duplicate ordinals are errors). The parser accepts exactly:
|
|
|
262
262
|
- column-def: `name TYPE [PRIMARY KEY] [NOT NULL] [NULL] [DEFAULT literal] [REFERENCES parent(pk) [ON DELETE RESTRICT | CASCADE | SET NULL]]`
|
|
263
263
|
- `--` line comments and `/* … */` block comments
|
|
264
264
|
|
|
265
|
-
Type map (case-insensitive) to the six §2.4 types
|
|
265
|
+
Type map (case-insensitive) to the six §2.4 types plus the two semantic
|
|
266
|
+
types:
|
|
266
267
|
|
|
267
268
|
| SQL keyword | IR type |
|
|
268
269
|
|---|---|
|
|
@@ -272,6 +273,8 @@ Type map (case-insensitive) to the six §2.4 types:
|
|
|
272
273
|
| `BOOLEAN`, `BOOL` | `boolean` |
|
|
273
274
|
| `JSON`, `JSONB` | `json` |
|
|
274
275
|
| `BLOB`, `BYTEA` | `bytes` |
|
|
276
|
+
| `BLOB_REF`, `BLOBREF` | `blob_ref`: a nullable blob reference string holding the canonical BlobRef document (§5.9) |
|
|
277
|
+
| `CRDT` | `crdt`: opaque server-merged CRDT bytes, `crdtType` defaults to `yjs-doc` (§5.10) |
|
|
275
278
|
|
|
276
279
|
Nullability: `NOT NULL` (or being the primary key) → non-nullable;
|
|
277
280
|
otherwise nullable. Exactly one single-column primary key per table,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@syncular/typegen",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.34.0",
|
|
4
4
|
"description": "Syncular schema-to-TypeScript type generator and the `syncular` CLI",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Benjamin Kniffler",
|
|
@@ -56,9 +56,9 @@
|
|
|
56
56
|
"!dist/**/*.test.d.ts"
|
|
57
57
|
],
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@syncular/core": "0.
|
|
59
|
+
"@syncular/core": "0.34.0"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@syncular/server": "0.
|
|
62
|
+
"@syncular/server": "0.34.0"
|
|
63
63
|
}
|
|
64
64
|
}
|