datanotes 3.2.0 → 3.3.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 +1 -0
- package/SECURITY.md +12 -0
- package/dist/api/client.d.cts +2 -0
- package/dist/api/client.d.ts +2 -0
- package/dist/api/docs.d.cts +14 -4
- package/dist/api/docs.d.ts +14 -4
- package/dist/api/extension-files.d.cts +23 -0
- package/dist/api/extension-files.d.ts +23 -0
- package/dist/api/extension-host.d.cts +108 -0
- package/dist/api/extension-host.d.ts +108 -0
- package/dist/api/extension-manifest.d.cts +154 -0
- package/dist/api/extension-manifest.d.ts +154 -0
- package/dist/api/extension-plan.d.cts +174 -0
- package/dist/api/extension-plan.d.ts +174 -0
- package/dist/api/extension-record.d.cts +65 -0
- package/dist/api/extension-record.d.ts +65 -0
- package/dist/api/extension-sdk.d.cts +65 -0
- package/dist/api/extension-sdk.d.ts +65 -0
- package/dist/api/extensions.cjs +18472 -0
- package/dist/api/extensions.d.cts +11 -0
- package/dist/api/extensions.d.ts +11 -0
- package/dist/api/extensions.js +18409 -0
- package/dist/api/index.cjs +371 -366
- package/dist/api/index.js +371 -366
- package/dist/api/mcp.cjs +28 -5
- package/dist/api/mcp.js +28 -5
- package/dist/datanotes.cjs +6205 -3421
- package/dist/docs/administration/extensions.md +213 -0
- package/dist/docs/api/operations/extensions_delete.md +29 -0
- package/dist/docs/api/operations/extensions_list.md +20 -0
- package/dist/docs/api/operations/extensions_record.md +44 -0
- package/dist/docs/api/operations/tags/extensions.md +9 -0
- package/dist/docs/api.md +9 -1
- package/dist/docs/develop/write-an-extension.md +369 -0
- package/dist/docs/guides/data-quality/check-constraints.md +10 -10
- package/dist/docs/guides/data-quality/hand-edits.md +8 -8
- package/dist/docs/guides/database-objects/bases.md +11 -11
- package/dist/docs/guides/database-objects/catalogs-and-schemas.md +10 -10
- package/dist/docs/guides/database-objects/columns.md +38 -38
- package/dist/docs/guides/database-objects/relations.md +28 -28
- package/dist/docs/guides/database-objects/tables.md +28 -28
- 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 +20 -20
- 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/guides/security/security-model.md +12 -0
- package/dist/docs/reference/cli.md +32 -1
- package/dist/docs/reference/glossary.md +8 -0
- package/dist/docs/release-notes.md +33 -0
- package/dist/docs/start/connect-agents.md +11 -0
- package/package.json +11 -1
|
@@ -63,7 +63,7 @@ Answer:
|
|
|
63
63
|
"commits": [
|
|
64
64
|
{ "table": "diary.classics.film", "version": 0, "operation": "CREATE TABLE" }
|
|
65
65
|
],
|
|
66
|
-
"migration_id": "
|
|
66
|
+
"migration_id": "20261020T173844-create_table-create-table-diary-classics-fi"
|
|
67
67
|
}
|
|
68
68
|
```
|
|
69
69
|
|
|
@@ -91,7 +91,7 @@ Answer:
|
|
|
91
91
|
"files_created": 1,
|
|
92
92
|
"planned_creates": ["datanotes/diary/classics/film/Nosferatu.md"],
|
|
93
93
|
"commits": [{ "table": "diary.classics.film", "version": 1, "operation": "WRITE" }],
|
|
94
|
-
"migration_id": "
|
|
94
|
+
"migration_id": "20261020T173844-insert_row-insert-into-film"
|
|
95
95
|
}
|
|
96
96
|
```
|
|
97
97
|
|
|
@@ -127,7 +127,7 @@ Answer:
|
|
|
127
127
|
"commits": [
|
|
128
128
|
{ "table": "diary.classics.film", "version": 3, "operation": "ALTER TABLE" }
|
|
129
129
|
],
|
|
130
|
-
"migration_id": "
|
|
130
|
+
"migration_id": "20261020T173844-alter_table-alter-table-diary-classics-fil-2"
|
|
131
131
|
}
|
|
132
132
|
```
|
|
133
133
|
|
|
@@ -144,7 +144,7 @@ Answer:
|
|
|
144
144
|
"ok": true,
|
|
145
145
|
"op": "comment_on",
|
|
146
146
|
"planned_texts": ["datanotes/metastore.yaml"],
|
|
147
|
-
"migration_id": "
|
|
147
|
+
"migration_id": "20261020T173844-comment_on-comment-on-catalog-diary"
|
|
148
148
|
}
|
|
149
149
|
```
|
|
150
150
|
|
|
@@ -165,7 +165,7 @@ Answer:
|
|
|
165
165
|
"ok": true,
|
|
166
166
|
"op": "comment_on",
|
|
167
167
|
"planned_texts": ["datanotes/metastore.yaml"],
|
|
168
|
-
"migration_id": "
|
|
168
|
+
"migration_id": "20261020T173845-comment_on-comment-on-schema-diary-classi"
|
|
169
169
|
}
|
|
170
170
|
```
|
|
171
171
|
|
|
@@ -173,7 +173,7 @@ Answer:
|
|
|
173
173
|
|
|
174
174
|
```yaml
|
|
175
175
|
# Metastore (Datanotes): catalogs, schemas, tables, columns, views.
|
|
176
|
-
id:
|
|
176
|
+
id: 01a15a64-e851-7907-b148-bbd50adcd745
|
|
177
177
|
config:
|
|
178
178
|
history: true
|
|
179
179
|
|
|
@@ -270,7 +270,7 @@ Answer:
|
|
|
270
270
|
"commits": [
|
|
271
271
|
{ "table": "diary.classics.film", "version": 4, "operation": "ALTER TABLE" }
|
|
272
272
|
],
|
|
273
|
-
"migration_id": "
|
|
273
|
+
"migration_id": "20261020T173845-alter_table-alter-table-diary-classics-fil"
|
|
274
274
|
}
|
|
275
275
|
```
|
|
276
276
|
|
|
@@ -287,7 +287,7 @@ Answer:
|
|
|
287
287
|
"ok": true,
|
|
288
288
|
"op": "comment_on",
|
|
289
289
|
"planned_texts": ["datanotes/metastore.yaml"],
|
|
290
|
-
"migration_id": "
|
|
290
|
+
"migration_id": "20261020T173845-comment_on-remove-the-comment-on-schema-d"
|
|
291
291
|
}
|
|
292
292
|
```
|
|
293
293
|
|
|
@@ -309,7 +309,7 @@ Answer:
|
|
|
309
309
|
"commits": [
|
|
310
310
|
{ "table": "diary.classics.film", "version": 5, "operation": "ALTER TABLE" }
|
|
311
311
|
],
|
|
312
|
-
"migration_id": "
|
|
312
|
+
"migration_id": "20261020T173845-alter_table-alter-table-diary-classics-fil-2"
|
|
313
313
|
}
|
|
314
314
|
```
|
|
315
315
|
|
|
@@ -593,7 +593,7 @@ This is the database of this page as the engine wrote it. `metastore.yaml` holds
|
|
|
593
593
|
|
|
594
594
|
```yaml
|
|
595
595
|
# Metastore (Datanotes): catalogs, schemas, tables, columns, views.
|
|
596
|
-
id:
|
|
596
|
+
id: 01a15a64-e851-7907-b148-bbd50adcd745
|
|
597
597
|
config:
|
|
598
598
|
history: true
|
|
599
599
|
default_catalog: diary
|
|
@@ -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": "20261020T173828-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": "20261020T173828-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": "20261020T173828-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": "20261020T173829-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": "20261020T173829-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": "20261020T173829-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": "20261020T173829-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": "20261020T173829-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: 01a15a64-a9b8-7915-a254-0fe1e6803cc4
|
|
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": "20261020T173829-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: 01a15a64-a9b8-7915-a254-0fe1e6803cc4
|
|
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": "20261020T173829-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": "20261020T173829-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": "20261020T173829-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": "20261020T173829-drop_column-drop-column-loved_it-from-film",
|
|
623
|
+
"migration_id": "20261020T173829-undo_migration-undo-20261020t173829-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": "20261020T173829-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": "20261020T173829-insert_row-insert-into-film"
|
|
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: 01a15a64-aafa-7905-b16b-b382b98a16e5
|
|
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-20
|
|
731
|
+
added_at: 2026-10-20T17:38:29Z
|
|
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": "20261020T173829-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": "20261020T173829-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": "20261020T173829-update_row-update-film"
|
|
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: 01a15a64-a9b8-7915-a254-0fe1e6803cc4
|
|
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": "20261020T173829-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": "20261020T173829-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: 01a15a64-ab35-73d2-a276-9c24d3c889dd
|
|
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": "20261020T173829-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": "20261020T173829-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": "20261020T173829-insert_row-insert-into-film-2"
|
|
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: 01a15a64-ab59-7e58-8f19-67a926899a7b
|
|
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-20
|
|
1094
|
+
added_at: 2026-10-20T17:38:29Z
|
|
1095
1095
|
note_name: Charade
|
|
1096
|
-
created: 2026-10-
|
|
1096
|
+
created: 2026-10-20T17:38:29Z
|
|
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": "20261020T173830-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": "20261020T173830-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: 01a15a64-a9a7-7fa2-aad0-cd9800af63c7
|
|
1194
1194
|
config:
|
|
1195
1195
|
history: true
|
|
1196
1196
|
|
|
@@ -56,7 +56,7 @@ Answer:
|
|
|
56
56
|
"op": "create_table",
|
|
57
57
|
"planned_texts": ["datanotes/metastore.yaml"],
|
|
58
58
|
"commits": [{ "table": "main.public.watch", "version": 0, "operation": "CREATE TABLE" }],
|
|
59
|
-
"migration_id": "
|
|
59
|
+
"migration_id": "20261020T173830-create_table-create-table-main-public-watch"
|
|
60
60
|
}
|
|
61
61
|
```
|
|
62
62
|
|
|
@@ -85,7 +85,7 @@ Answer:
|
|
|
85
85
|
"files_created": 1,
|
|
86
86
|
"planned_creates": ["datanotes/main/public/watch/2026-03-14T2030.md"],
|
|
87
87
|
"commits": [{ "table": "main.public.watch", "version": 1, "operation": "WRITE" }],
|
|
88
|
-
"migration_id": "
|
|
88
|
+
"migration_id": "20261020T173830-insert_row-insert-into-watch"
|
|
89
89
|
}
|
|
90
90
|
```
|
|
91
91
|
|
|
@@ -94,7 +94,7 @@ Answer:
|
|
|
94
94
|
```markdown
|
|
95
95
|
---
|
|
96
96
|
table: main.public.watch
|
|
97
|
-
id:
|
|
97
|
+
id: 01a15a64-b1c0-7d12-a17c-84d874242764
|
|
98
98
|
film: "[[His Girl Friday]]"
|
|
99
99
|
where: cinema
|
|
100
100
|
place: the film club downtown
|
|
@@ -189,7 +189,7 @@ Answer:
|
|
|
189
189
|
"op": "add_column",
|
|
190
190
|
"planned_texts": ["datanotes/metastore.yaml"],
|
|
191
191
|
"commits": [{ "table": "main.public.actor", "version": 4, "operation": "ADD COLUMNS" }],
|
|
192
|
-
"migration_id": "
|
|
192
|
+
"migration_id": "20261020T173831-add_column-add-column-films-to-actor"
|
|
193
193
|
}
|
|
194
194
|
```
|
|
195
195
|
|
|
@@ -217,7 +217,7 @@ Answer:
|
|
|
217
217
|
"op": "add_column",
|
|
218
218
|
"planned_texts": ["datanotes/metastore.yaml"],
|
|
219
219
|
"commits": [{ "table": "main.public.film", "version": 4, "operation": "ADD COLUMNS" }],
|
|
220
|
-
"migration_id": "
|
|
220
|
+
"migration_id": "20261020T173831-add_column-add-column-cast-to-film"
|
|
221
221
|
}
|
|
222
222
|
```
|
|
223
223
|
|
|
@@ -259,7 +259,7 @@ Answer:
|
|
|
259
259
|
{ "table": "main.public.actor", "version": 5, "operation": "UPDATE" },
|
|
260
260
|
{ "table": "main.public.film", "version": 5, "operation": "UPDATE" }
|
|
261
261
|
],
|
|
262
|
-
"migration_id": "
|
|
262
|
+
"migration_id": "20261020T173831-update_row-update-film"
|
|
263
263
|
}
|
|
264
264
|
```
|
|
265
265
|
|
|
@@ -268,7 +268,7 @@ Answer:
|
|
|
268
268
|
```markdown
|
|
269
269
|
---
|
|
270
270
|
table: main.public.film
|
|
271
|
-
id:
|
|
271
|
+
id: 01a15a64-b1a7-7d34-a0dc-aa55e47859af
|
|
272
272
|
title: Charade
|
|
273
273
|
year: 1963
|
|
274
274
|
minutes: 113
|
|
@@ -291,7 +291,7 @@ Answer:
|
|
|
291
291
|
```markdown
|
|
292
292
|
---
|
|
293
293
|
table: main.public.actor
|
|
294
|
-
id:
|
|
294
|
+
id: 01a15a64-b185-745b-8061-07cff446109d
|
|
295
295
|
name: Cary Grant
|
|
296
296
|
born: 1904-01-18
|
|
297
297
|
films:
|
|
@@ -359,7 +359,7 @@ Answer:
|
|
|
359
359
|
{
|
|
360
360
|
"path": "datanotes/main/public/actor/Cary Grant.md",
|
|
361
361
|
"table": "main.public.actor",
|
|
362
|
-
"id": "
|
|
362
|
+
"id": "01a15a64-b185-745b-8061-07cff446109d",
|
|
363
363
|
"name": "Cary Grant",
|
|
364
364
|
"born": "1904-01-18",
|
|
365
365
|
"films": ["[[Charade]]", "[[His Girl Friday]]"]
|
|
@@ -367,7 +367,7 @@ Answer:
|
|
|
367
367
|
{
|
|
368
368
|
"path": "datanotes/main/public/actor/Audrey Hepburn.md",
|
|
369
369
|
"table": "main.public.actor",
|
|
370
|
-
"id": "
|
|
370
|
+
"id": "01a15a64-b192-78fb-b963-b173dfcdc402",
|
|
371
371
|
"name": "Audrey Hepburn",
|
|
372
372
|
"born": "1929-05-04",
|
|
373
373
|
"films": ["[[Charade]]"]
|
|
@@ -423,7 +423,7 @@ Answer:
|
|
|
423
423
|
"op": "alter_column",
|
|
424
424
|
"planned_texts": ["datanotes/metastore.yaml"],
|
|
425
425
|
"commits": [{ "table": "main.public.film", "version": 9, "operation": "CHANGE COLUMN" }],
|
|
426
|
-
"migration_id": "
|
|
426
|
+
"migration_id": "20261020T173831-alter_column-alter-column-see_also-in-film"
|
|
427
427
|
}
|
|
428
428
|
```
|
|
429
429
|
|
|
@@ -479,7 +479,7 @@ Answer:
|
|
|
479
479
|
"commits": [
|
|
480
480
|
{ "table": "main.public.film", "version": 10, "operation": "ALIGN RELATIONS" }
|
|
481
481
|
],
|
|
482
|
-
"migration_id": "
|
|
482
|
+
"migration_id": "20261020T173831-align_relations-align-inverse-links-of-main-pu"
|
|
483
483
|
}
|
|
484
484
|
```
|
|
485
485
|
|
|
@@ -573,7 +573,7 @@ Answer:
|
|
|
573
573
|
"op": "add_column",
|
|
574
574
|
"planned_texts": ["datanotes/metastore.yaml"],
|
|
575
575
|
"commits": [{ "table": "main.public.film", "version": 11, "operation": "ADD COLUMNS" }],
|
|
576
|
-
"migration_id": "
|
|
576
|
+
"migration_id": "20261020T173831-add_column-add-column-tags-to-film"
|
|
577
577
|
}
|
|
578
578
|
```
|
|
579
579
|
|
|
@@ -629,7 +629,7 @@ Answer:
|
|
|
629
629
|
}
|
|
630
630
|
],
|
|
631
631
|
"commits": [{ "table": "main.public.film", "version": 12, "operation": "UPDATE" }],
|
|
632
|
-
"migration_id": "
|
|
632
|
+
"migration_id": "20261020T173831-update_row-update-film-4"
|
|
633
633
|
}
|
|
634
634
|
```
|
|
635
635
|
|
|
@@ -677,7 +677,7 @@ Answer:
|
|
|
677
677
|
"op": "create_table",
|
|
678
678
|
"planned_texts": ["datanotes/metastore.yaml"],
|
|
679
679
|
"commits": [{ "table": "main.public.genre", "version": 0, "operation": "CREATE TABLE" }],
|
|
680
|
-
"migration_id": "
|
|
680
|
+
"migration_id": "20261020T173831-create_table-create-table-main-public-genre"
|
|
681
681
|
}
|
|
682
682
|
```
|
|
683
683
|
|
|
@@ -793,7 +793,7 @@ Answer:
|
|
|
793
793
|
"op": "add_column",
|
|
794
794
|
"planned_texts": ["datanotes/metastore.yaml"],
|
|
795
795
|
"commits": [{ "table": "main.public.film", "version": 13, "operation": "ADD COLUMNS" }],
|
|
796
|
-
"migration_id": "
|
|
796
|
+
"migration_id": "20261020T173831-add_column-add-column-watch_after-to-film"
|
|
797
797
|
}
|
|
798
798
|
```
|
|
799
799
|
|
|
@@ -907,7 +907,7 @@ Answer:
|
|
|
907
907
|
"commits": [
|
|
908
908
|
{ "table": "main.public.genre", "version": 10, "operation": "CHANGE COLUMN" }
|
|
909
909
|
],
|
|
910
|
-
"migration_id": "
|
|
910
|
+
"migration_id": "20261020T173832-alter_column-alter-column-parent-in-genre"
|
|
911
911
|
}
|
|
912
912
|
```
|
|
913
913
|
|
|
@@ -1065,7 +1065,7 @@ Answer:
|
|
|
1065
1065
|
"op": "add_column",
|
|
1066
1066
|
"planned_texts": ["datanotes/metastore.yaml"],
|
|
1067
1067
|
"commits": [{ "table": "main.public.film", "version": 17, "operation": "ADD COLUMNS" }],
|
|
1068
|
-
"migration_id": "
|
|
1068
|
+
"migration_id": "20261020T173832-add_column-add-column-genre-to-film"
|
|
1069
1069
|
}
|
|
1070
1070
|
```
|
|
1071
1071
|
|
|
@@ -1147,7 +1147,7 @@ Answer:
|
|
|
1147
1147
|
"op": "add_column",
|
|
1148
1148
|
"planned_texts": ["datanotes/metastore.yaml"],
|
|
1149
1149
|
"commits": [{ "table": "main.public.watch", "version": 3, "operation": "ADD COLUMNS" }],
|
|
1150
|
-
"migration_id": "
|
|
1150
|
+
"migration_id": "20261020T173832-add_column-add-column-on_day-to-watch"
|
|
1151
1151
|
}
|
|
1152
1152
|
```
|
|
1153
1153
|
|
|
@@ -1176,7 +1176,7 @@ Answer:
|
|
|
1176
1176
|
"files_created": 1,
|
|
1177
1177
|
"planned_creates": ["datanotes/main/public/watch/2026-10-31T2300.md"],
|
|
1178
1178
|
"commits": [{ "table": "main.public.watch", "version": 4, "operation": "WRITE" }],
|
|
1179
|
-
"migration_id": "
|
|
1179
|
+
"migration_id": "20261020T173832-insert_row-insert-into-watch"
|
|
1180
1180
|
}
|
|
1181
1181
|
```
|
|
1182
1182
|
|
|
@@ -1185,7 +1185,7 @@ Answer:
|
|
|
1185
1185
|
```markdown
|
|
1186
1186
|
---
|
|
1187
1187
|
table: main.public.watch
|
|
1188
|
-
id:
|
|
1188
|
+
id: 01a15a64-b92d-7a2d-b57f-e57d0d43a1c9
|
|
1189
1189
|
film: "[[Night of the Living Dead]]"
|
|
1190
1190
|
where: cinema
|
|
1191
1191
|
place: the film club downtown
|
|
@@ -1262,13 +1262,13 @@ Answer (77 lines)
|
|
|
1262
1262
|
"ok": true,
|
|
1263
1263
|
"op": "batch",
|
|
1264
1264
|
"dry_run": false,
|
|
1265
|
-
"migration_id": "
|
|
1265
|
+
"migration_id": "20261020T173832-batch-remove-charade-and-its-viewing",
|
|
1266
1266
|
"steps": [
|
|
1267
1267
|
{
|
|
1268
1268
|
"index": 0,
|
|
1269
1269
|
"op": "delete_rows",
|
|
1270
1270
|
"ok": true,
|
|
1271
|
-
"migration_id": "
|
|
1271
|
+
"migration_id": "20261020T173832-delete_rows-archive-1-rows-of-watch",
|
|
1272
1272
|
"result": {
|
|
1273
1273
|
"ok": true,
|
|
1274
1274
|
"op": "delete_rows",
|
|
@@ -1280,14 +1280,14 @@ Answer (77 lines)
|
|
|
1280
1280
|
}
|
|
1281
1281
|
],
|
|
1282
1282
|
"commits": [{ "table": "main.public.watch", "version": 5, "operation": "DELETE" }],
|
|
1283
|
-
"migration_id": "
|
|
1283
|
+
"migration_id": "20261020T173832-delete_rows-archive-1-rows-of-watch"
|
|
1284
1284
|
}
|
|
1285
1285
|
},
|
|
1286
1286
|
{
|
|
1287
1287
|
"index": 1,
|
|
1288
1288
|
"op": "delete_rows",
|
|
1289
1289
|
"ok": true,
|
|
1290
|
-
"migration_id": "
|
|
1290
|
+
"migration_id": "20261020T173832-delete_rows-archive-1-rows-of-film",
|
|
1291
1291
|
"result": {
|
|
1292
1292
|
"ok": true,
|
|
1293
1293
|
"op": "delete_rows",
|
|
@@ -1330,7 +1330,7 @@ Answer (77 lines)
|
|
|
1330
1330
|
{ "table": "main.public.actor", "version": 7, "operation": "DELETE" },
|
|
1331
1331
|
{ "table": "main.public.film", "version": 18, "operation": "DELETE" }
|
|
1332
1332
|
],
|
|
1333
|
-
"migration_id": "
|
|
1333
|
+
"migration_id": "20261020T173832-delete_rows-archive-1-rows-of-film"
|
|
1334
1334
|
}
|
|
1335
1335
|
}
|
|
1336
1336
|
]
|
|
@@ -1348,7 +1348,7 @@ Answer:
|
|
|
1348
1348
|
```markdown
|
|
1349
1349
|
---
|
|
1350
1350
|
table: main.public.actor
|
|
1351
|
-
id:
|
|
1351
|
+
id: 01a15a64-b185-745b-8061-07cff446109d
|
|
1352
1352
|
name: Cary Grant
|
|
1353
1353
|
born: 1904-01-18
|
|
1354
1354
|
films:
|
|
@@ -1370,7 +1370,7 @@ The engine wrote this file with the relations from this page:
|
|
|
1370
1370
|
|
|
1371
1371
|
```yaml
|
|
1372
1372
|
# Metastore (Datanotes): catalogs, schemas, tables, columns, views.
|
|
1373
|
-
id:
|
|
1373
|
+
id: 01a15a64-b174-7561-bafb-b0a99c2b8276
|
|
1374
1374
|
config:
|
|
1375
1375
|
history: true
|
|
1376
1376
|
|