datanotes 3.1.0 → 3.2.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/api/index.cjs +175 -8
- package/dist/api/index.js +175 -8
- package/dist/api/mcp.cjs +175 -8
- package/dist/api/mcp.js +175 -8
- package/dist/datanotes.cjs +591 -139
- package/dist/docs/api/operations/add_column.md +1 -0
- package/dist/docs/api/operations/add_constraint.md +2 -0
- package/dist/docs/api/operations/alter_column.md +1 -1
- package/dist/docs/api/operations/alter_table.md +3 -2
- package/dist/docs/api/operations/check_table.md +1 -1
- package/dist/docs/api/operations/create_table.md +3 -1
- package/dist/docs/api/operations/describe_table.md +1 -1
- package/dist/docs/api/operations/insert_row.md +2 -2
- package/dist/docs/api/operations/tags/rows-dml.md +1 -1
- package/dist/docs/api.md +2 -2
- package/dist/docs/guides/data-quality/check-constraints.md +14 -13
- package/dist/docs/guides/data-quality/hand-edits.md +10 -10
- package/dist/docs/guides/database-objects/bases.md +11 -11
- package/dist/docs/guides/database-objects/catalogs-and-schemas.md +16 -10
- package/dist/docs/guides/database-objects/columns.md +38 -38
- package/dist/docs/guides/database-objects/relations.md +173 -36
- package/dist/docs/guides/database-objects/tables.md +80 -35
- package/dist/docs/guides/database-objects/views.md +44 -44
- package/dist/docs/guides/history/change-data-feed.md +34 -34
- package/dist/docs/guides/history/journal-and-undo.md +12 -12
- package/dist/docs/guides/history/restore.md +20 -20
- package/dist/docs/guides/history/table-history.md +31 -31
- package/dist/docs/guides/read-and-write/automatic-links.md +15 -15
- package/dist/docs/guides/read-and-write/import-notes.md +21 -21
- package/dist/docs/guides/read-and-write/joins-and-aggregates.md +7 -7
- package/dist/docs/guides/read-and-write/read-and-filter.md +10 -10
- package/dist/docs/guides/read-and-write/write-rows.md +10 -10
- package/dist/docs/guides/search/text.md +1 -1
- package/dist/docs/reference/cli.md +1 -1
- package/dist/docs/reference/errors.md +1 -1
- package/dist/docs/reference/operations/auxiliary.md +2 -2
- package/dist/docs/reference/operations/rows.md +1 -1
- package/dist/docs/reference/operations/schema.md +15 -11
- package/dist/docs/reference/operations.md +28 -28
- package/dist/docs/release-notes.md +24 -0
- package/package.json +1 -1
|
@@ -35,7 +35,7 @@ Answer:
|
|
|
35
35
|
"op": "add_column",
|
|
36
36
|
"planned_texts": ["datanotes/metastore.yaml"],
|
|
37
37
|
"commits": [{ "table": "main.public.film", "version": 3, "operation": "ADD COLUMNS" }],
|
|
38
|
-
"migration_id": "
|
|
38
|
+
"migration_id": "20261019T040638-add_column-add-column-minutes-to-film"
|
|
39
39
|
}
|
|
40
40
|
```
|
|
41
41
|
|
|
@@ -118,7 +118,7 @@ Answer:
|
|
|
118
118
|
],
|
|
119
119
|
"planned_texts": ["datanotes/metastore.yaml"],
|
|
120
120
|
"commits": [{ "table": "main.public.film", "version": 5, "operation": "ADD COLUMNS" }],
|
|
121
|
-
"migration_id": "
|
|
121
|
+
"migration_id": "20261019T040638-add_column-add-column-favourite-to-film"
|
|
122
122
|
}
|
|
123
123
|
```
|
|
124
124
|
|
|
@@ -176,7 +176,7 @@ Answer:
|
|
|
176
176
|
"op": "add_column",
|
|
177
177
|
"planned_texts": ["datanotes/metastore.yaml"],
|
|
178
178
|
"commits": [{ "table": "main.public.film", "version": 6, "operation": "ADD COLUMNS" }],
|
|
179
|
-
"migration_id": "
|
|
179
|
+
"migration_id": "20261019T040638-add_column-add-column-status-to-film"
|
|
180
180
|
}
|
|
181
181
|
```
|
|
182
182
|
|
|
@@ -283,7 +283,7 @@ Answer:
|
|
|
283
283
|
],
|
|
284
284
|
"planned_texts": ["datanotes/metastore.yaml"],
|
|
285
285
|
"commits": [{ "table": "main.public.film", "version": 9, "operation": "UPDATE" }],
|
|
286
|
-
"migration_id": "
|
|
286
|
+
"migration_id": "20261019T040638-rename_value-rename-film-status-value-seen-"
|
|
287
287
|
}
|
|
288
288
|
```
|
|
289
289
|
|
|
@@ -338,7 +338,7 @@ Answer:
|
|
|
338
338
|
"commits": [
|
|
339
339
|
{ "table": "main.public.film", "version": 10, "operation": "CHANGE COLUMN" }
|
|
340
340
|
],
|
|
341
|
-
"migration_id": "
|
|
341
|
+
"migration_id": "20261019T040638-alter_column-alter-column-status-in-film"
|
|
342
342
|
}
|
|
343
343
|
```
|
|
344
344
|
|
|
@@ -402,7 +402,7 @@ Answer:
|
|
|
402
402
|
"commits": [
|
|
403
403
|
{ "table": "main.public.film", "version": 11, "operation": "CHANGE COLUMN" }
|
|
404
404
|
],
|
|
405
|
-
"migration_id": "
|
|
405
|
+
"migration_id": "20261019T040638-alter_column-alter-column-minutes-in-film"
|
|
406
406
|
}
|
|
407
407
|
```
|
|
408
408
|
|
|
@@ -424,7 +424,7 @@ Answer:
|
|
|
424
424
|
"commits": [
|
|
425
425
|
{ "table": "main.public.film", "version": 12, "operation": "CHANGE COLUMN" }
|
|
426
426
|
],
|
|
427
|
-
"migration_id": "
|
|
427
|
+
"migration_id": "20261019T040638-alter_column-alter-column-minutes-in-film-2"
|
|
428
428
|
}
|
|
429
429
|
```
|
|
430
430
|
|
|
@@ -454,7 +454,7 @@ Answer:
|
|
|
454
454
|
"commits": [
|
|
455
455
|
{ "table": "main.public.film", "version": 13, "operation": "CHANGE COLUMN" }
|
|
456
456
|
],
|
|
457
|
-
"migration_id": "
|
|
457
|
+
"migration_id": "20261019T040638-alter_column-alter-column-minutes-in-film-3"
|
|
458
458
|
}
|
|
459
459
|
```
|
|
460
460
|
|
|
@@ -463,7 +463,7 @@ Answer:
|
|
|
463
463
|
```markdown
|
|
464
464
|
---
|
|
465
465
|
table: main.public.film
|
|
466
|
-
id:
|
|
466
|
+
id: 01a15257-0b64-7ab6-932a-3735e098cc48
|
|
467
467
|
title: Nosferatu
|
|
468
468
|
year: 1922
|
|
469
469
|
favourite: false
|
|
@@ -490,7 +490,7 @@ Answer:
|
|
|
490
490
|
"commits": [
|
|
491
491
|
{ "table": "main.public.film", "version": 14, "operation": "CHANGE COLUMN" }
|
|
492
492
|
],
|
|
493
|
-
"migration_id": "
|
|
493
|
+
"migration_id": "20261019T040638-alter_column-alter-column-minutes-in-film-4"
|
|
494
494
|
}
|
|
495
495
|
```
|
|
496
496
|
|
|
@@ -499,7 +499,7 @@ Answer:
|
|
|
499
499
|
```markdown
|
|
500
500
|
---
|
|
501
501
|
table: main.public.film
|
|
502
|
-
id:
|
|
502
|
+
id: 01a15257-0b64-7ab6-932a-3735e098cc48
|
|
503
503
|
title: Nosferatu
|
|
504
504
|
year: 1922
|
|
505
505
|
favourite: false
|
|
@@ -541,7 +541,7 @@ Answer:
|
|
|
541
541
|
"commits": [
|
|
542
542
|
{ "table": "main.public.film", "version": 15, "operation": "RENAME COLUMN" }
|
|
543
543
|
],
|
|
544
|
-
"migration_id": "
|
|
544
|
+
"migration_id": "20261019T040638-rename_column-rename-column-favourite-to-lov"
|
|
545
545
|
}
|
|
546
546
|
```
|
|
547
547
|
|
|
@@ -603,14 +603,14 @@ Answer:
|
|
|
603
603
|
],
|
|
604
604
|
"planned_texts": ["datanotes/metastore.yaml"],
|
|
605
605
|
"commits": [{ "table": "main.public.film", "version": 16, "operation": "DROP COLUMNS" }],
|
|
606
|
-
"migration_id": "
|
|
606
|
+
"migration_id": "20261019T040638-drop_column-drop-column-loved_it-from-film"
|
|
607
607
|
}
|
|
608
608
|
```
|
|
609
609
|
|
|
610
610
|
**`undo_migration`**
|
|
611
611
|
|
|
612
612
|
```json
|
|
613
|
-
{ "migration_id": "
|
|
613
|
+
{ "migration_id": "20261019T040638-drop_column-drop-column-loved_it-from-film" }
|
|
614
614
|
```
|
|
615
615
|
|
|
616
616
|
Answer:
|
|
@@ -619,8 +619,8 @@ Answer:
|
|
|
619
619
|
{
|
|
620
620
|
"ok": true,
|
|
621
621
|
"op": "undo_migration",
|
|
622
|
-
"undoes": "
|
|
623
|
-
"migration_id": "
|
|
622
|
+
"undoes": "20261019T040638-drop_column-drop-column-loved_it-from-film",
|
|
623
|
+
"migration_id": "20261019T040638-undo_migration-undo-20261019t040638-drop_colu",
|
|
624
624
|
"conflicts": [],
|
|
625
625
|
"failed": []
|
|
626
626
|
}
|
|
@@ -681,7 +681,7 @@ Answer:
|
|
|
681
681
|
"op": "add_column",
|
|
682
682
|
"planned_texts": ["datanotes/metastore.yaml"],
|
|
683
683
|
"commits": [{ "table": "main.public.film", "version": 18, "operation": "ADD COLUMNS" }],
|
|
684
|
-
"migration_id": "
|
|
684
|
+
"migration_id": "20261019T040638-add_column-add-column-added-to-film"
|
|
685
685
|
}
|
|
686
686
|
```
|
|
687
687
|
|
|
@@ -714,7 +714,7 @@ Answer:
|
|
|
714
714
|
"files_created": 1,
|
|
715
715
|
"planned_creates": ["datanotes/main/public/film/Sherlock Jr..md"],
|
|
716
716
|
"commits": [{ "table": "main.public.film", "version": 20, "operation": "WRITE" }],
|
|
717
|
-
"migration_id": "
|
|
717
|
+
"migration_id": "20261019T040638-insert_row-insert-into-film-3"
|
|
718
718
|
}
|
|
719
719
|
```
|
|
720
720
|
|
|
@@ -723,12 +723,12 @@ Answer:
|
|
|
723
723
|
```markdown
|
|
724
724
|
---
|
|
725
725
|
table: main.public.film
|
|
726
|
-
id:
|
|
726
|
+
id: 01a15257-0c62-7a36-afe1-f1afff29f8d8
|
|
727
727
|
loved_it: false
|
|
728
728
|
title: Sherlock Jr.
|
|
729
729
|
year: 1924
|
|
730
|
-
added: 2026-10-
|
|
731
|
-
added_at: 2026-10-
|
|
730
|
+
added: 2026-10-19
|
|
731
|
+
added_at: 2026-10-19T04:06:38Z
|
|
732
732
|
---
|
|
733
733
|
```
|
|
734
734
|
|
|
@@ -759,7 +759,7 @@ Answer:
|
|
|
759
759
|
"op": "add_column",
|
|
760
760
|
"planned_texts": ["datanotes/metastore.yaml"],
|
|
761
761
|
"commits": [{ "table": "main.public.film", "version": 21, "operation": "ADD COLUMNS" }],
|
|
762
|
-
"migration_id": "
|
|
762
|
+
"migration_id": "20261019T040638-add_column-add-column-seen_at-to-film"
|
|
763
763
|
}
|
|
764
764
|
```
|
|
765
765
|
|
|
@@ -784,7 +784,7 @@ Answer:
|
|
|
784
784
|
"op": "add_column",
|
|
785
785
|
"planned_texts": ["datanotes/metastore.yaml"],
|
|
786
786
|
"commits": [{ "table": "main.public.film", "version": 22, "operation": "ADD COLUMNS" }],
|
|
787
|
-
"migration_id": "
|
|
787
|
+
"migration_id": "20261019T040638-add_column-add-column-viewings-to-film"
|
|
788
788
|
}
|
|
789
789
|
```
|
|
790
790
|
|
|
@@ -833,7 +833,7 @@ Answer:
|
|
|
833
833
|
}
|
|
834
834
|
],
|
|
835
835
|
"commits": [{ "table": "main.public.film", "version": 23, "operation": "UPDATE" }],
|
|
836
|
-
"migration_id": "
|
|
836
|
+
"migration_id": "20261019T040638-update_row-update-film-4"
|
|
837
837
|
}
|
|
838
838
|
```
|
|
839
839
|
|
|
@@ -842,7 +842,7 @@ Answer:
|
|
|
842
842
|
```markdown
|
|
843
843
|
---
|
|
844
844
|
table: main.public.film
|
|
845
|
-
id:
|
|
845
|
+
id: 01a15257-0b64-7ab6-932a-3735e098cc48
|
|
846
846
|
title: Nosferatu
|
|
847
847
|
year: 1922
|
|
848
848
|
loved_it: false
|
|
@@ -942,7 +942,7 @@ Answer:
|
|
|
942
942
|
"op": "create_table",
|
|
943
943
|
"planned_texts": ["datanotes/metastore.yaml"],
|
|
944
944
|
"commits": [{ "table": "main.public.watch", "version": 0, "operation": "CREATE TABLE" }],
|
|
945
|
-
"migration_id": "
|
|
945
|
+
"migration_id": "20261019T040638-create_table-create-table-main-public-watch"
|
|
946
946
|
}
|
|
947
947
|
```
|
|
948
948
|
|
|
@@ -968,7 +968,7 @@ Answer:
|
|
|
968
968
|
"files_created": 1,
|
|
969
969
|
"planned_creates": ["datanotes/main/public/watch/2026-10-03T2130.md"],
|
|
970
970
|
"commits": [{ "table": "main.public.watch", "version": 1, "operation": "WRITE" }],
|
|
971
|
-
"migration_id": "
|
|
971
|
+
"migration_id": "20261019T040639-insert_row-insert-into-watch"
|
|
972
972
|
}
|
|
973
973
|
```
|
|
974
974
|
|
|
@@ -977,7 +977,7 @@ Answer:
|
|
|
977
977
|
```markdown
|
|
978
978
|
---
|
|
979
979
|
table: main.public.watch
|
|
980
|
-
id:
|
|
980
|
+
id: 01a15257-0c9b-7856-9c12-bebb7eaf82e5
|
|
981
981
|
film: His Girl Friday
|
|
982
982
|
occurred_at: 2026-10-03T21:30
|
|
983
983
|
where: home
|
|
@@ -1037,7 +1037,7 @@ Answer:
|
|
|
1037
1037
|
"op": "add_column",
|
|
1038
1038
|
"planned_texts": ["datanotes/metastore.yaml"],
|
|
1039
1039
|
"commits": [{ "table": "main.public.film", "version": 24, "operation": "ADD COLUMNS" }],
|
|
1040
|
-
"migration_id": "
|
|
1040
|
+
"migration_id": "20261019T040639-add_column-add-column-note_name-to-film"
|
|
1041
1041
|
}
|
|
1042
1042
|
```
|
|
1043
1043
|
|
|
@@ -1058,7 +1058,7 @@ Answer:
|
|
|
1058
1058
|
"op": "add_column",
|
|
1059
1059
|
"planned_texts": ["datanotes/metastore.yaml"],
|
|
1060
1060
|
"commits": [{ "table": "main.public.film", "version": 25, "operation": "ADD COLUMNS" }],
|
|
1061
|
-
"migration_id": "
|
|
1061
|
+
"migration_id": "20261019T040639-add_column-add-column-created-to-film"
|
|
1062
1062
|
}
|
|
1063
1063
|
```
|
|
1064
1064
|
|
|
@@ -1077,7 +1077,7 @@ Answer:
|
|
|
1077
1077
|
"files_created": 1,
|
|
1078
1078
|
"planned_creates": ["datanotes/main/public/film/Charade.md"],
|
|
1079
1079
|
"commits": [{ "table": "main.public.film", "version": 26, "operation": "WRITE" }],
|
|
1080
|
-
"migration_id": "
|
|
1080
|
+
"migration_id": "20261019T040639-insert_row-insert-into-film"
|
|
1081
1081
|
}
|
|
1082
1082
|
```
|
|
1083
1083
|
|
|
@@ -1086,14 +1086,14 @@ Answer:
|
|
|
1086
1086
|
```markdown
|
|
1087
1087
|
---
|
|
1088
1088
|
table: main.public.film
|
|
1089
|
-
id:
|
|
1089
|
+
id: 01a15257-0cc0-77b2-82b2-f18e2ec3a3e1
|
|
1090
1090
|
loved_it: false
|
|
1091
1091
|
title: Charade
|
|
1092
1092
|
year: 1963
|
|
1093
|
-
added: 2026-10-
|
|
1094
|
-
added_at: 2026-10-
|
|
1093
|
+
added: 2026-10-19
|
|
1094
|
+
added_at: 2026-10-19T04:06:39Z
|
|
1095
1095
|
note_name: Charade
|
|
1096
|
-
created: 2026-10-
|
|
1096
|
+
created: 2026-10-19T04:06:39Z
|
|
1097
1097
|
---
|
|
1098
1098
|
```
|
|
1099
1099
|
|
|
@@ -1134,7 +1134,7 @@ Answer:
|
|
|
1134
1134
|
"op": "create_table",
|
|
1135
1135
|
"planned_texts": ["datanotes/metastore.yaml"],
|
|
1136
1136
|
"commits": [{ "table": "main.public.actor", "version": 0, "operation": "CREATE TABLE" }],
|
|
1137
|
-
"migration_id": "
|
|
1137
|
+
"migration_id": "20261019T040640-create_table-create-table-main-public-actor"
|
|
1138
1138
|
}
|
|
1139
1139
|
```
|
|
1140
1140
|
|
|
@@ -1153,7 +1153,7 @@ Answer:
|
|
|
1153
1153
|
"files_created": 1,
|
|
1154
1154
|
"planned_creates": ["datanotes/main/public/actor/1904/Cary Grant.md"],
|
|
1155
1155
|
"commits": [{ "table": "main.public.actor", "version": 1, "operation": "WRITE" }],
|
|
1156
|
-
"migration_id": "
|
|
1156
|
+
"migration_id": "20261019T040640-insert_row-insert-into-actor"
|
|
1157
1157
|
}
|
|
1158
1158
|
```
|
|
1159
1159
|
|
|
@@ -1190,7 +1190,7 @@ The engine wrote this file with the columns from this page, in the operations’
|
|
|
1190
1190
|
|
|
1191
1191
|
```yaml
|
|
1192
1192
|
# Metastore (Datanotes): catalogs, schemas, tables, columns, views.
|
|
1193
|
-
id:
|
|
1193
|
+
id: 01a15257-0b53-73e7-8389-d60b05c9574b
|
|
1194
1194
|
config:
|
|
1195
1195
|
history: true
|
|
1196
1196
|
|