datanotes 3.3.0 → 3.3.1

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 (34) hide show
  1. package/dist/api/extensions.cjs +1190 -2
  2. package/dist/api/extensions.js +1190 -2
  3. package/dist/api/index.cjs +1190 -2
  4. package/dist/api/index.js +1190 -2
  5. package/dist/api/mcp.cjs +1190 -2
  6. package/dist/api/mcp.js +1190 -2
  7. package/dist/datanotes.cjs +1257 -11
  8. package/dist/docs/api/operations/alter_table.md +4 -3
  9. package/dist/docs/api.md +1 -1
  10. package/dist/docs/guides/data-quality/check-constraints.md +10 -10
  11. package/dist/docs/guides/data-quality/hand-edits.md +8 -8
  12. package/dist/docs/guides/database-objects/bases.md +11 -11
  13. package/dist/docs/guides/database-objects/catalogs-and-schemas.md +30 -10
  14. package/dist/docs/guides/database-objects/columns.md +38 -38
  15. package/dist/docs/guides/database-objects/relations.md +28 -28
  16. package/dist/docs/guides/database-objects/tables.md +167 -43
  17. package/dist/docs/guides/database-objects/views.md +44 -44
  18. package/dist/docs/guides/history/change-data-feed.md +34 -34
  19. package/dist/docs/guides/history/journal-and-undo.md +12 -12
  20. package/dist/docs/guides/history/restore.md +20 -20
  21. package/dist/docs/guides/history/table-history.md +31 -31
  22. package/dist/docs/guides/read-and-write/automatic-links.md +15 -15
  23. package/dist/docs/guides/read-and-write/import-notes.md +20 -20
  24. package/dist/docs/guides/read-and-write/joins-and-aggregates.md +7 -7
  25. package/dist/docs/guides/read-and-write/read-and-filter.md +10 -10
  26. package/dist/docs/guides/read-and-write/write-rows.md +10 -10
  27. package/dist/docs/guides/search/text.md +1 -1
  28. package/dist/docs/reference/cli.md +1 -1
  29. package/dist/docs/reference/operations/auxiliary.md +1 -1
  30. package/dist/docs/reference/operations/rows.md +1 -1
  31. package/dist/docs/reference/operations/schema.md +3 -3
  32. package/dist/docs/reference/operations.md +4 -4
  33. package/dist/docs/release-notes.md +16 -0
  34. package/package.json +1 -1
@@ -1219,6 +1219,50 @@ var init_catalog = __esm({
1219
1219
  ]
1220
1220
  },
1221
1221
  "description": "Mentions left as text because the engine is not sure which note they name. Present when there is one: read the candidates and the context, then link the right one with update_row and autolink: false, or leave the text."
1222
+ },
1223
+ "schema_references": {
1224
+ "type": "array",
1225
+ "items": {
1226
+ "title": "SchemaReference",
1227
+ "type": "object",
1228
+ "description": "A name of the moved table in another definition, rewritten to the new name.",
1229
+ "properties": {
1230
+ "table": {
1231
+ "type": "string",
1232
+ "description": "The table whose column names it (full name)."
1233
+ },
1234
+ "base": {
1235
+ "type": "string",
1236
+ "description": "The base whose column names it."
1237
+ },
1238
+ "view": {
1239
+ "type": "string",
1240
+ "description": "The view whose query names it (full name)."
1241
+ },
1242
+ "column": {
1243
+ "type": "string",
1244
+ "description": "The column of the table or base."
1245
+ },
1246
+ "key": {
1247
+ "type": "string",
1248
+ "description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
1249
+ },
1250
+ "from": {
1251
+ "type": "string",
1252
+ "description": "The name as written before."
1253
+ },
1254
+ "to": {
1255
+ "type": "string",
1256
+ "description": "The name written in its place."
1257
+ }
1258
+ },
1259
+ "required": [
1260
+ "key",
1261
+ "from",
1262
+ "to"
1263
+ ]
1264
+ },
1265
+ "description": "alter_table that moves or renames a table: the references to it in other definitions that it rewrites (on a dry run, would rewrite): the ref and vocabulary of the columns of other tables and of bases, and the tables the views' queries read. Present when there is one."
1222
1266
  }
1223
1267
  },
1224
1268
  "required": [
@@ -1632,6 +1676,50 @@ var init_catalog = __esm({
1632
1676
  ]
1633
1677
  },
1634
1678
  "description": "Mentions left as text because the engine is not sure which note they name. Present when there is one: read the candidates and the context, then link the right one with update_row and autolink: false, or leave the text."
1679
+ },
1680
+ "schema_references": {
1681
+ "type": "array",
1682
+ "items": {
1683
+ "title": "SchemaReference",
1684
+ "type": "object",
1685
+ "description": "A name of the moved table in another definition, rewritten to the new name.",
1686
+ "properties": {
1687
+ "table": {
1688
+ "type": "string",
1689
+ "description": "The table whose column names it (full name)."
1690
+ },
1691
+ "base": {
1692
+ "type": "string",
1693
+ "description": "The base whose column names it."
1694
+ },
1695
+ "view": {
1696
+ "type": "string",
1697
+ "description": "The view whose query names it (full name)."
1698
+ },
1699
+ "column": {
1700
+ "type": "string",
1701
+ "description": "The column of the table or base."
1702
+ },
1703
+ "key": {
1704
+ "type": "string",
1705
+ "description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
1706
+ },
1707
+ "from": {
1708
+ "type": "string",
1709
+ "description": "The name as written before."
1710
+ },
1711
+ "to": {
1712
+ "type": "string",
1713
+ "description": "The name written in its place."
1714
+ }
1715
+ },
1716
+ "required": [
1717
+ "key",
1718
+ "from",
1719
+ "to"
1720
+ ]
1721
+ },
1722
+ "description": "alter_table that moves or renames a table: the references to it in other definitions that it rewrites (on a dry run, would rewrite): the ref and vocabulary of the columns of other tables and of bases, and the tables the views' queries read. Present when there is one."
1635
1723
  }
1636
1724
  },
1637
1725
  "required": [
@@ -2036,6 +2124,50 @@ var init_catalog = __esm({
2036
2124
  ]
2037
2125
  },
2038
2126
  "description": "Mentions left as text because the engine is not sure which note they name. Present when there is one: read the candidates and the context, then link the right one with update_row and autolink: false, or leave the text."
2127
+ },
2128
+ "schema_references": {
2129
+ "type": "array",
2130
+ "items": {
2131
+ "title": "SchemaReference",
2132
+ "type": "object",
2133
+ "description": "A name of the moved table in another definition, rewritten to the new name.",
2134
+ "properties": {
2135
+ "table": {
2136
+ "type": "string",
2137
+ "description": "The table whose column names it (full name)."
2138
+ },
2139
+ "base": {
2140
+ "type": "string",
2141
+ "description": "The base whose column names it."
2142
+ },
2143
+ "view": {
2144
+ "type": "string",
2145
+ "description": "The view whose query names it (full name)."
2146
+ },
2147
+ "column": {
2148
+ "type": "string",
2149
+ "description": "The column of the table or base."
2150
+ },
2151
+ "key": {
2152
+ "type": "string",
2153
+ "description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
2154
+ },
2155
+ "from": {
2156
+ "type": "string",
2157
+ "description": "The name as written before."
2158
+ },
2159
+ "to": {
2160
+ "type": "string",
2161
+ "description": "The name written in its place."
2162
+ }
2163
+ },
2164
+ "required": [
2165
+ "key",
2166
+ "from",
2167
+ "to"
2168
+ ]
2169
+ },
2170
+ "description": "alter_table that moves or renames a table: the references to it in other definitions that it rewrites (on a dry run, would rewrite): the ref and vocabulary of the columns of other tables and of bases, and the tables the views' queries read. Present when there is one."
2039
2171
  }
2040
2172
  },
2041
2173
  "required": [
@@ -2442,6 +2574,50 @@ var init_catalog = __esm({
2442
2574
  ]
2443
2575
  },
2444
2576
  "description": "Mentions left as text because the engine is not sure which note they name. Present when there is one: read the candidates and the context, then link the right one with update_row and autolink: false, or leave the text."
2577
+ },
2578
+ "schema_references": {
2579
+ "type": "array",
2580
+ "items": {
2581
+ "title": "SchemaReference",
2582
+ "type": "object",
2583
+ "description": "A name of the moved table in another definition, rewritten to the new name.",
2584
+ "properties": {
2585
+ "table": {
2586
+ "type": "string",
2587
+ "description": "The table whose column names it (full name)."
2588
+ },
2589
+ "base": {
2590
+ "type": "string",
2591
+ "description": "The base whose column names it."
2592
+ },
2593
+ "view": {
2594
+ "type": "string",
2595
+ "description": "The view whose query names it (full name)."
2596
+ },
2597
+ "column": {
2598
+ "type": "string",
2599
+ "description": "The column of the table or base."
2600
+ },
2601
+ "key": {
2602
+ "type": "string",
2603
+ "description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
2604
+ },
2605
+ "from": {
2606
+ "type": "string",
2607
+ "description": "The name as written before."
2608
+ },
2609
+ "to": {
2610
+ "type": "string",
2611
+ "description": "The name written in its place."
2612
+ }
2613
+ },
2614
+ "required": [
2615
+ "key",
2616
+ "from",
2617
+ "to"
2618
+ ]
2619
+ },
2620
+ "description": "alter_table that moves or renames a table: the references to it in other definitions that it rewrites (on a dry run, would rewrite): the ref and vocabulary of the columns of other tables and of bases, and the tables the views' queries read. Present when there is one."
2445
2621
  }
2446
2622
  },
2447
2623
  "required": [
@@ -2845,6 +3021,50 @@ var init_catalog = __esm({
2845
3021
  ]
2846
3022
  },
2847
3023
  "description": "Mentions left as text because the engine is not sure which note they name. Present when there is one: read the candidates and the context, then link the right one with update_row and autolink: false, or leave the text."
3024
+ },
3025
+ "schema_references": {
3026
+ "type": "array",
3027
+ "items": {
3028
+ "title": "SchemaReference",
3029
+ "type": "object",
3030
+ "description": "A name of the moved table in another definition, rewritten to the new name.",
3031
+ "properties": {
3032
+ "table": {
3033
+ "type": "string",
3034
+ "description": "The table whose column names it (full name)."
3035
+ },
3036
+ "base": {
3037
+ "type": "string",
3038
+ "description": "The base whose column names it."
3039
+ },
3040
+ "view": {
3041
+ "type": "string",
3042
+ "description": "The view whose query names it (full name)."
3043
+ },
3044
+ "column": {
3045
+ "type": "string",
3046
+ "description": "The column of the table or base."
3047
+ },
3048
+ "key": {
3049
+ "type": "string",
3050
+ "description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
3051
+ },
3052
+ "from": {
3053
+ "type": "string",
3054
+ "description": "The name as written before."
3055
+ },
3056
+ "to": {
3057
+ "type": "string",
3058
+ "description": "The name written in its place."
3059
+ }
3060
+ },
3061
+ "required": [
3062
+ "key",
3063
+ "from",
3064
+ "to"
3065
+ ]
3066
+ },
3067
+ "description": "alter_table that moves or renames a table: the references to it in other definitions that it rewrites (on a dry run, would rewrite): the ref and vocabulary of the columns of other tables and of bases, and the tables the views' queries read. Present when there is one."
2848
3068
  }
2849
3069
  },
2850
3070
  "required": [
@@ -3253,6 +3473,50 @@ var init_catalog = __esm({
3253
3473
  ]
3254
3474
  },
3255
3475
  "description": "Mentions left as text because the engine is not sure which note they name. Present when there is one: read the candidates and the context, then link the right one with update_row and autolink: false, or leave the text."
3476
+ },
3477
+ "schema_references": {
3478
+ "type": "array",
3479
+ "items": {
3480
+ "title": "SchemaReference",
3481
+ "type": "object",
3482
+ "description": "A name of the moved table in another definition, rewritten to the new name.",
3483
+ "properties": {
3484
+ "table": {
3485
+ "type": "string",
3486
+ "description": "The table whose column names it (full name)."
3487
+ },
3488
+ "base": {
3489
+ "type": "string",
3490
+ "description": "The base whose column names it."
3491
+ },
3492
+ "view": {
3493
+ "type": "string",
3494
+ "description": "The view whose query names it (full name)."
3495
+ },
3496
+ "column": {
3497
+ "type": "string",
3498
+ "description": "The column of the table or base."
3499
+ },
3500
+ "key": {
3501
+ "type": "string",
3502
+ "description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
3503
+ },
3504
+ "from": {
3505
+ "type": "string",
3506
+ "description": "The name as written before."
3507
+ },
3508
+ "to": {
3509
+ "type": "string",
3510
+ "description": "The name written in its place."
3511
+ }
3512
+ },
3513
+ "required": [
3514
+ "key",
3515
+ "from",
3516
+ "to"
3517
+ ]
3518
+ },
3519
+ "description": "alter_table that moves or renames a table: the references to it in other definitions that it rewrites (on a dry run, would rewrite): the ref and vocabulary of the columns of other tables and of bases, and the tables the views' queries read. Present when there is one."
3256
3520
  }
3257
3521
  },
3258
3522
  "required": [
@@ -3277,7 +3541,7 @@ var init_catalog = __esm({
3277
3541
  },
3278
3542
  {
3279
3543
  "name": "alter_table",
3280
- "description": 'Alter a table: move it (`catalog`, `schema`), rename it (`name`), change\n`partition` / `filename` patterns, `description` (changes, never goes: "" is refused), `aliases`,\n`exclude` folders, `row_template`\n("" removes it), `instructions` (how to fill a row, for agents; "" removes them), `history` (true | false | "default"), `autolink_target`\n(true | false | "default": may automatic links link its rows? default: yes, unless its rows are named by\na date or a time) or `tags` (key/value\nlabels merged into the table\'s, e.g. `{"domain": "health"}`; a `null` value removes that tag;\n`clear_tags: true` removes every tag first, so with `tags` the table keeps exactly those),\n`archive` (folder name inside the table folder) or `fields` (untyped fields, name \u2192 default; a\n`null` value removes one). Rows, archive and transaction log follow; links are updated; renamed\nrows keep their old name in `aliases`. A change of metadata only (tags, description, aliases,\nhistory, autolink_target, row_template, instructions, fields) rewrites the table entry alone: no row is moved or rewritten. Refused\nwhen a row cannot fill a pattern. Renaming or moving the table is refused while a CHECK that follows\nlinks, or a `ref_where` / `ref_by`, of another table reads it through a link (link targets are not\nrewritten): the conflicts name them. Use `dry_run` to see `planned_moves`; undo with undo_migration.\n\nThe schema changes only through operations like this one: never edit metastore.yaml by hand (no validation, no undo).',
3544
+ "description": 'Alter a table: move it (`catalog`, `schema`), rename it (`name`), change\n`partition` / `filename` patterns, `description` (changes, never goes: "" is refused), `aliases`,\n`exclude` folders, `row_template`\n("" removes it), `instructions` (how to fill a row, for agents; "" removes them), `history` (true | false | "default"), `autolink_target`\n(true | false | "default": may automatic links link its rows? default: yes, unless its rows are named by\na date or a time) or `tags` (key/value\nlabels merged into the table\'s, e.g. `{"domain": "health"}`; a `null` value removes that tag;\n`clear_tags: true` removes every tag first, so with `tags` the table keeps exactly those),\n`archive` (folder name inside the table folder) or `fields` (untyped fields, name \u2192 default; a\n`null` value removes one). Rows, archive and transaction log follow; links are updated; renamed\nrows keep their old name in `aliases`. A change of metadata only (tags, description, aliases,\nhistory, autolink_target, row_template, instructions, fields) rewrites the table entry alone: no row is moved or rewritten. Refused\nwhen a row cannot fill a pattern. Renaming or moving the table rewrites what names it in other\ndefinitions: the `ref` and `vocabulary` of the columns of other tables and bases (lists of links\nincluded) and the tables of views (`table`, `union[].table`, `join.table`); `schema_references`\nlists them. CHECKs and `ref_where` / `ref_by` that read it through a link follow the new `ref`. Use `dry_run` to see `planned_moves`; undo with undo_migration.\n\nThe schema changes only through operations like this one: never edit metastore.yaml by hand (no validation, no undo).',
3281
3545
  "inputSchema": {
3282
3546
  "additionalProperties": false,
3283
3547
  "properties": {
@@ -3858,6 +4122,50 @@ var init_catalog = __esm({
3858
4122
  ]
3859
4123
  },
3860
4124
  "description": "Mentions left as text because the engine is not sure which note they name. Present when there is one: read the candidates and the context, then link the right one with update_row and autolink: false, or leave the text."
4125
+ },
4126
+ "schema_references": {
4127
+ "type": "array",
4128
+ "items": {
4129
+ "title": "SchemaReference",
4130
+ "type": "object",
4131
+ "description": "A name of the moved table in another definition, rewritten to the new name.",
4132
+ "properties": {
4133
+ "table": {
4134
+ "type": "string",
4135
+ "description": "The table whose column names it (full name)."
4136
+ },
4137
+ "base": {
4138
+ "type": "string",
4139
+ "description": "The base whose column names it."
4140
+ },
4141
+ "view": {
4142
+ "type": "string",
4143
+ "description": "The view whose query names it (full name)."
4144
+ },
4145
+ "column": {
4146
+ "type": "string",
4147
+ "description": "The column of the table or base."
4148
+ },
4149
+ "key": {
4150
+ "type": "string",
4151
+ "description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
4152
+ },
4153
+ "from": {
4154
+ "type": "string",
4155
+ "description": "The name as written before."
4156
+ },
4157
+ "to": {
4158
+ "type": "string",
4159
+ "description": "The name written in its place."
4160
+ }
4161
+ },
4162
+ "required": [
4163
+ "key",
4164
+ "from",
4165
+ "to"
4166
+ ]
4167
+ },
4168
+ "description": "alter_table that moves or renames a table: the references to it in other definitions that it rewrites (on a dry run, would rewrite): the ref and vocabulary of the columns of other tables and of bases, and the tables the views' queries read. Present when there is one."
3861
4169
  }
3862
4170
  },
3863
4171
  "required": [
@@ -4318,6 +4626,50 @@ var init_catalog = __esm({
4318
4626
  ]
4319
4627
  },
4320
4628
  "description": "Mentions left as text because the engine is not sure which note they name. Present when there is one: read the candidates and the context, then link the right one with update_row and autolink: false, or leave the text."
4629
+ },
4630
+ "schema_references": {
4631
+ "type": "array",
4632
+ "items": {
4633
+ "title": "SchemaReference",
4634
+ "type": "object",
4635
+ "description": "A name of the moved table in another definition, rewritten to the new name.",
4636
+ "properties": {
4637
+ "table": {
4638
+ "type": "string",
4639
+ "description": "The table whose column names it (full name)."
4640
+ },
4641
+ "base": {
4642
+ "type": "string",
4643
+ "description": "The base whose column names it."
4644
+ },
4645
+ "view": {
4646
+ "type": "string",
4647
+ "description": "The view whose query names it (full name)."
4648
+ },
4649
+ "column": {
4650
+ "type": "string",
4651
+ "description": "The column of the table or base."
4652
+ },
4653
+ "key": {
4654
+ "type": "string",
4655
+ "description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
4656
+ },
4657
+ "from": {
4658
+ "type": "string",
4659
+ "description": "The name as written before."
4660
+ },
4661
+ "to": {
4662
+ "type": "string",
4663
+ "description": "The name written in its place."
4664
+ }
4665
+ },
4666
+ "required": [
4667
+ "key",
4668
+ "from",
4669
+ "to"
4670
+ ]
4671
+ },
4672
+ "description": "alter_table that moves or renames a table: the references to it in other definitions that it rewrites (on a dry run, would rewrite): the ref and vocabulary of the columns of other tables and of bases, and the tables the views' queries read. Present when there is one."
4321
4673
  }
4322
4674
  },
4323
4675
  "required": [
@@ -4723,6 +5075,50 @@ var init_catalog = __esm({
4723
5075
  ]
4724
5076
  },
4725
5077
  "description": "Mentions left as text because the engine is not sure which note they name. Present when there is one: read the candidates and the context, then link the right one with update_row and autolink: false, or leave the text."
5078
+ },
5079
+ "schema_references": {
5080
+ "type": "array",
5081
+ "items": {
5082
+ "title": "SchemaReference",
5083
+ "type": "object",
5084
+ "description": "A name of the moved table in another definition, rewritten to the new name.",
5085
+ "properties": {
5086
+ "table": {
5087
+ "type": "string",
5088
+ "description": "The table whose column names it (full name)."
5089
+ },
5090
+ "base": {
5091
+ "type": "string",
5092
+ "description": "The base whose column names it."
5093
+ },
5094
+ "view": {
5095
+ "type": "string",
5096
+ "description": "The view whose query names it (full name)."
5097
+ },
5098
+ "column": {
5099
+ "type": "string",
5100
+ "description": "The column of the table or base."
5101
+ },
5102
+ "key": {
5103
+ "type": "string",
5104
+ "description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
5105
+ },
5106
+ "from": {
5107
+ "type": "string",
5108
+ "description": "The name as written before."
5109
+ },
5110
+ "to": {
5111
+ "type": "string",
5112
+ "description": "The name written in its place."
5113
+ }
5114
+ },
5115
+ "required": [
5116
+ "key",
5117
+ "from",
5118
+ "to"
5119
+ ]
5120
+ },
5121
+ "description": "alter_table that moves or renames a table: the references to it in other definitions that it rewrites (on a dry run, would rewrite): the ref and vocabulary of the columns of other tables and of bases, and the tables the views' queries read. Present when there is one."
4726
5122
  }
4727
5123
  },
4728
5124
  "required": [
@@ -5789,6 +6185,50 @@ var init_catalog = __esm({
5789
6185
  ]
5790
6186
  },
5791
6187
  "description": "Mentions left as text because the engine is not sure which note they name. Present when there is one: read the candidates and the context, then link the right one with update_row and autolink: false, or leave the text."
6188
+ },
6189
+ "schema_references": {
6190
+ "type": "array",
6191
+ "items": {
6192
+ "title": "SchemaReference",
6193
+ "type": "object",
6194
+ "description": "A name of the moved table in another definition, rewritten to the new name.",
6195
+ "properties": {
6196
+ "table": {
6197
+ "type": "string",
6198
+ "description": "The table whose column names it (full name)."
6199
+ },
6200
+ "base": {
6201
+ "type": "string",
6202
+ "description": "The base whose column names it."
6203
+ },
6204
+ "view": {
6205
+ "type": "string",
6206
+ "description": "The view whose query names it (full name)."
6207
+ },
6208
+ "column": {
6209
+ "type": "string",
6210
+ "description": "The column of the table or base."
6211
+ },
6212
+ "key": {
6213
+ "type": "string",
6214
+ "description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
6215
+ },
6216
+ "from": {
6217
+ "type": "string",
6218
+ "description": "The name as written before."
6219
+ },
6220
+ "to": {
6221
+ "type": "string",
6222
+ "description": "The name written in its place."
6223
+ }
6224
+ },
6225
+ "required": [
6226
+ "key",
6227
+ "from",
6228
+ "to"
6229
+ ]
6230
+ },
6231
+ "description": "alter_table that moves or renames a table: the references to it in other definitions that it rewrites (on a dry run, would rewrite): the ref and vocabulary of the columns of other tables and of bases, and the tables the views' queries read. Present when there is one."
5792
6232
  }
5793
6233
  },
5794
6234
  "required": [
@@ -6199,6 +6639,50 @@ var init_catalog = __esm({
6199
6639
  ]
6200
6640
  },
6201
6641
  "description": "Mentions left as text because the engine is not sure which note they name. Present when there is one: read the candidates and the context, then link the right one with update_row and autolink: false, or leave the text."
6642
+ },
6643
+ "schema_references": {
6644
+ "type": "array",
6645
+ "items": {
6646
+ "title": "SchemaReference",
6647
+ "type": "object",
6648
+ "description": "A name of the moved table in another definition, rewritten to the new name.",
6649
+ "properties": {
6650
+ "table": {
6651
+ "type": "string",
6652
+ "description": "The table whose column names it (full name)."
6653
+ },
6654
+ "base": {
6655
+ "type": "string",
6656
+ "description": "The base whose column names it."
6657
+ },
6658
+ "view": {
6659
+ "type": "string",
6660
+ "description": "The view whose query names it (full name)."
6661
+ },
6662
+ "column": {
6663
+ "type": "string",
6664
+ "description": "The column of the table or base."
6665
+ },
6666
+ "key": {
6667
+ "type": "string",
6668
+ "description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
6669
+ },
6670
+ "from": {
6671
+ "type": "string",
6672
+ "description": "The name as written before."
6673
+ },
6674
+ "to": {
6675
+ "type": "string",
6676
+ "description": "The name written in its place."
6677
+ }
6678
+ },
6679
+ "required": [
6680
+ "key",
6681
+ "from",
6682
+ "to"
6683
+ ]
6684
+ },
6685
+ "description": "alter_table that moves or renames a table: the references to it in other definitions that it rewrites (on a dry run, would rewrite): the ref and vocabulary of the columns of other tables and of bases, and the tables the views' queries read. Present when there is one."
6202
6686
  }
6203
6687
  },
6204
6688
  "required": [
@@ -6637,6 +7121,50 @@ var init_catalog = __esm({
6637
7121
  ]
6638
7122
  },
6639
7123
  "description": "Mentions left as text because the engine is not sure which note they name. Present when there is one: read the candidates and the context, then link the right one with update_row and autolink: false, or leave the text."
7124
+ },
7125
+ "schema_references": {
7126
+ "type": "array",
7127
+ "items": {
7128
+ "title": "SchemaReference",
7129
+ "type": "object",
7130
+ "description": "A name of the moved table in another definition, rewritten to the new name.",
7131
+ "properties": {
7132
+ "table": {
7133
+ "type": "string",
7134
+ "description": "The table whose column names it (full name)."
7135
+ },
7136
+ "base": {
7137
+ "type": "string",
7138
+ "description": "The base whose column names it."
7139
+ },
7140
+ "view": {
7141
+ "type": "string",
7142
+ "description": "The view whose query names it (full name)."
7143
+ },
7144
+ "column": {
7145
+ "type": "string",
7146
+ "description": "The column of the table or base."
7147
+ },
7148
+ "key": {
7149
+ "type": "string",
7150
+ "description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
7151
+ },
7152
+ "from": {
7153
+ "type": "string",
7154
+ "description": "The name as written before."
7155
+ },
7156
+ "to": {
7157
+ "type": "string",
7158
+ "description": "The name written in its place."
7159
+ }
7160
+ },
7161
+ "required": [
7162
+ "key",
7163
+ "from",
7164
+ "to"
7165
+ ]
7166
+ },
7167
+ "description": "alter_table that moves or renames a table: the references to it in other definitions that it rewrites (on a dry run, would rewrite): the ref and vocabulary of the columns of other tables and of bases, and the tables the views' queries read. Present when there is one."
6640
7168
  }
6641
7169
  },
6642
7170
  "required": [
@@ -7079,6 +7607,50 @@ var init_catalog = __esm({
7079
7607
  ]
7080
7608
  },
7081
7609
  "description": "Mentions left as text because the engine is not sure which note they name. Present when there is one: read the candidates and the context, then link the right one with update_row and autolink: false, or leave the text."
7610
+ },
7611
+ "schema_references": {
7612
+ "type": "array",
7613
+ "items": {
7614
+ "title": "SchemaReference",
7615
+ "type": "object",
7616
+ "description": "A name of the moved table in another definition, rewritten to the new name.",
7617
+ "properties": {
7618
+ "table": {
7619
+ "type": "string",
7620
+ "description": "The table whose column names it (full name)."
7621
+ },
7622
+ "base": {
7623
+ "type": "string",
7624
+ "description": "The base whose column names it."
7625
+ },
7626
+ "view": {
7627
+ "type": "string",
7628
+ "description": "The view whose query names it (full name)."
7629
+ },
7630
+ "column": {
7631
+ "type": "string",
7632
+ "description": "The column of the table or base."
7633
+ },
7634
+ "key": {
7635
+ "type": "string",
7636
+ "description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
7637
+ },
7638
+ "from": {
7639
+ "type": "string",
7640
+ "description": "The name as written before."
7641
+ },
7642
+ "to": {
7643
+ "type": "string",
7644
+ "description": "The name written in its place."
7645
+ }
7646
+ },
7647
+ "required": [
7648
+ "key",
7649
+ "from",
7650
+ "to"
7651
+ ]
7652
+ },
7653
+ "description": "alter_table that moves or renames a table: the references to it in other definitions that it rewrites (on a dry run, would rewrite): the ref and vocabulary of the columns of other tables and of bases, and the tables the views' queries read. Present when there is one."
7082
7654
  }
7083
7655
  },
7084
7656
  "required": [
@@ -7596,6 +8168,50 @@ var init_catalog = __esm({
7596
8168
  ]
7597
8169
  },
7598
8170
  "description": "Mentions left as text because the engine is not sure which note they name. Present when there is one: read the candidates and the context, then link the right one with update_row and autolink: false, or leave the text."
8171
+ },
8172
+ "schema_references": {
8173
+ "type": "array",
8174
+ "items": {
8175
+ "title": "SchemaReference",
8176
+ "type": "object",
8177
+ "description": "A name of the moved table in another definition, rewritten to the new name.",
8178
+ "properties": {
8179
+ "table": {
8180
+ "type": "string",
8181
+ "description": "The table whose column names it (full name)."
8182
+ },
8183
+ "base": {
8184
+ "type": "string",
8185
+ "description": "The base whose column names it."
8186
+ },
8187
+ "view": {
8188
+ "type": "string",
8189
+ "description": "The view whose query names it (full name)."
8190
+ },
8191
+ "column": {
8192
+ "type": "string",
8193
+ "description": "The column of the table or base."
8194
+ },
8195
+ "key": {
8196
+ "type": "string",
8197
+ "description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
8198
+ },
8199
+ "from": {
8200
+ "type": "string",
8201
+ "description": "The name as written before."
8202
+ },
8203
+ "to": {
8204
+ "type": "string",
8205
+ "description": "The name written in its place."
8206
+ }
8207
+ },
8208
+ "required": [
8209
+ "key",
8210
+ "from",
8211
+ "to"
8212
+ ]
8213
+ },
8214
+ "description": "alter_table that moves or renames a table: the references to it in other definitions that it rewrites (on a dry run, would rewrite): the ref and vocabulary of the columns of other tables and of bases, and the tables the views' queries read. Present when there is one."
7599
8215
  }
7600
8216
  },
7601
8217
  "required": [
@@ -8031,6 +8647,50 @@ var init_catalog = __esm({
8031
8647
  ]
8032
8648
  },
8033
8649
  "description": "Mentions left as text because the engine is not sure which note they name. Present when there is one: read the candidates and the context, then link the right one with update_row and autolink: false, or leave the text."
8650
+ },
8651
+ "schema_references": {
8652
+ "type": "array",
8653
+ "items": {
8654
+ "title": "SchemaReference",
8655
+ "type": "object",
8656
+ "description": "A name of the moved table in another definition, rewritten to the new name.",
8657
+ "properties": {
8658
+ "table": {
8659
+ "type": "string",
8660
+ "description": "The table whose column names it (full name)."
8661
+ },
8662
+ "base": {
8663
+ "type": "string",
8664
+ "description": "The base whose column names it."
8665
+ },
8666
+ "view": {
8667
+ "type": "string",
8668
+ "description": "The view whose query names it (full name)."
8669
+ },
8670
+ "column": {
8671
+ "type": "string",
8672
+ "description": "The column of the table or base."
8673
+ },
8674
+ "key": {
8675
+ "type": "string",
8676
+ "description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
8677
+ },
8678
+ "from": {
8679
+ "type": "string",
8680
+ "description": "The name as written before."
8681
+ },
8682
+ "to": {
8683
+ "type": "string",
8684
+ "description": "The name written in its place."
8685
+ }
8686
+ },
8687
+ "required": [
8688
+ "key",
8689
+ "from",
8690
+ "to"
8691
+ ]
8692
+ },
8693
+ "description": "alter_table that moves or renames a table: the references to it in other definitions that it rewrites (on a dry run, would rewrite): the ref and vocabulary of the columns of other tables and of bases, and the tables the views' queries read. Present when there is one."
8034
8694
  }
8035
8695
  },
8036
8696
  "required": [
@@ -8483,6 +9143,50 @@ var init_catalog = __esm({
8483
9143
  ]
8484
9144
  },
8485
9145
  "description": "Mentions left as text because the engine is not sure which note they name. Present when there is one: read the candidates and the context, then link the right one with update_row and autolink: false, or leave the text."
9146
+ },
9147
+ "schema_references": {
9148
+ "type": "array",
9149
+ "items": {
9150
+ "title": "SchemaReference",
9151
+ "type": "object",
9152
+ "description": "A name of the moved table in another definition, rewritten to the new name.",
9153
+ "properties": {
9154
+ "table": {
9155
+ "type": "string",
9156
+ "description": "The table whose column names it (full name)."
9157
+ },
9158
+ "base": {
9159
+ "type": "string",
9160
+ "description": "The base whose column names it."
9161
+ },
9162
+ "view": {
9163
+ "type": "string",
9164
+ "description": "The view whose query names it (full name)."
9165
+ },
9166
+ "column": {
9167
+ "type": "string",
9168
+ "description": "The column of the table or base."
9169
+ },
9170
+ "key": {
9171
+ "type": "string",
9172
+ "description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
9173
+ },
9174
+ "from": {
9175
+ "type": "string",
9176
+ "description": "The name as written before."
9177
+ },
9178
+ "to": {
9179
+ "type": "string",
9180
+ "description": "The name written in its place."
9181
+ }
9182
+ },
9183
+ "required": [
9184
+ "key",
9185
+ "from",
9186
+ "to"
9187
+ ]
9188
+ },
9189
+ "description": "alter_table that moves or renames a table: the references to it in other definitions that it rewrites (on a dry run, would rewrite): the ref and vocabulary of the columns of other tables and of bases, and the tables the views' queries read. Present when there is one."
8486
9190
  }
8487
9191
  },
8488
9192
  "required": [
@@ -8947,6 +9651,50 @@ var init_catalog = __esm({
8947
9651
  ]
8948
9652
  },
8949
9653
  "description": "Mentions left as text because the engine is not sure which note they name. Present when there is one: read the candidates and the context, then link the right one with update_row and autolink: false, or leave the text."
9654
+ },
9655
+ "schema_references": {
9656
+ "type": "array",
9657
+ "items": {
9658
+ "title": "SchemaReference",
9659
+ "type": "object",
9660
+ "description": "A name of the moved table in another definition, rewritten to the new name.",
9661
+ "properties": {
9662
+ "table": {
9663
+ "type": "string",
9664
+ "description": "The table whose column names it (full name)."
9665
+ },
9666
+ "base": {
9667
+ "type": "string",
9668
+ "description": "The base whose column names it."
9669
+ },
9670
+ "view": {
9671
+ "type": "string",
9672
+ "description": "The view whose query names it (full name)."
9673
+ },
9674
+ "column": {
9675
+ "type": "string",
9676
+ "description": "The column of the table or base."
9677
+ },
9678
+ "key": {
9679
+ "type": "string",
9680
+ "description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
9681
+ },
9682
+ "from": {
9683
+ "type": "string",
9684
+ "description": "The name as written before."
9685
+ },
9686
+ "to": {
9687
+ "type": "string",
9688
+ "description": "The name written in its place."
9689
+ }
9690
+ },
9691
+ "required": [
9692
+ "key",
9693
+ "from",
9694
+ "to"
9695
+ ]
9696
+ },
9697
+ "description": "alter_table that moves or renames a table: the references to it in other definitions that it rewrites (on a dry run, would rewrite): the ref and vocabulary of the columns of other tables and of bases, and the tables the views' queries read. Present when there is one."
8950
9698
  }
8951
9699
  },
8952
9700
  "required": [
@@ -10029,6 +10777,50 @@ var init_catalog = __esm({
10029
10777
  ]
10030
10778
  },
10031
10779
  "description": "Mentions left as text because the engine is not sure which note they name. Present when there is one: read the candidates and the context, then link the right one with update_row and autolink: false, or leave the text."
10780
+ },
10781
+ "schema_references": {
10782
+ "type": "array",
10783
+ "items": {
10784
+ "title": "SchemaReference",
10785
+ "type": "object",
10786
+ "description": "A name of the moved table in another definition, rewritten to the new name.",
10787
+ "properties": {
10788
+ "table": {
10789
+ "type": "string",
10790
+ "description": "The table whose column names it (full name)."
10791
+ },
10792
+ "base": {
10793
+ "type": "string",
10794
+ "description": "The base whose column names it."
10795
+ },
10796
+ "view": {
10797
+ "type": "string",
10798
+ "description": "The view whose query names it (full name)."
10799
+ },
10800
+ "column": {
10801
+ "type": "string",
10802
+ "description": "The column of the table or base."
10803
+ },
10804
+ "key": {
10805
+ "type": "string",
10806
+ "description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
10807
+ },
10808
+ "from": {
10809
+ "type": "string",
10810
+ "description": "The name as written before."
10811
+ },
10812
+ "to": {
10813
+ "type": "string",
10814
+ "description": "The name written in its place."
10815
+ }
10816
+ },
10817
+ "required": [
10818
+ "key",
10819
+ "from",
10820
+ "to"
10821
+ ]
10822
+ },
10823
+ "description": "alter_table that moves or renames a table: the references to it in other definitions that it rewrites (on a dry run, would rewrite): the ref and vocabulary of the columns of other tables and of bases, and the tables the views' queries read. Present when there is one."
10032
10824
  }
10033
10825
  },
10034
10826
  "required": [
@@ -10476,6 +11268,50 @@ var init_catalog = __esm({
10476
11268
  ]
10477
11269
  },
10478
11270
  "description": "Mentions left as text because the engine is not sure which note they name. Present when there is one: read the candidates and the context, then link the right one with update_row and autolink: false, or leave the text."
11271
+ },
11272
+ "schema_references": {
11273
+ "type": "array",
11274
+ "items": {
11275
+ "title": "SchemaReference",
11276
+ "type": "object",
11277
+ "description": "A name of the moved table in another definition, rewritten to the new name.",
11278
+ "properties": {
11279
+ "table": {
11280
+ "type": "string",
11281
+ "description": "The table whose column names it (full name)."
11282
+ },
11283
+ "base": {
11284
+ "type": "string",
11285
+ "description": "The base whose column names it."
11286
+ },
11287
+ "view": {
11288
+ "type": "string",
11289
+ "description": "The view whose query names it (full name)."
11290
+ },
11291
+ "column": {
11292
+ "type": "string",
11293
+ "description": "The column of the table or base."
11294
+ },
11295
+ "key": {
11296
+ "type": "string",
11297
+ "description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
11298
+ },
11299
+ "from": {
11300
+ "type": "string",
11301
+ "description": "The name as written before."
11302
+ },
11303
+ "to": {
11304
+ "type": "string",
11305
+ "description": "The name written in its place."
11306
+ }
11307
+ },
11308
+ "required": [
11309
+ "key",
11310
+ "from",
11311
+ "to"
11312
+ ]
11313
+ },
11314
+ "description": "alter_table that moves or renames a table: the references to it in other definitions that it rewrites (on a dry run, would rewrite): the ref and vocabulary of the columns of other tables and of bases, and the tables the views' queries read. Present when there is one."
10479
11315
  }
10480
11316
  },
10481
11317
  "required": [
@@ -11563,6 +12399,50 @@ var init_catalog = __esm({
11563
12399
  ]
11564
12400
  },
11565
12401
  "description": "Mentions left as text because the engine is not sure which note they name. Present when there is one: read the candidates and the context, then link the right one with update_row and autolink: false, or leave the text."
12402
+ },
12403
+ "schema_references": {
12404
+ "type": "array",
12405
+ "items": {
12406
+ "title": "SchemaReference",
12407
+ "type": "object",
12408
+ "description": "A name of the moved table in another definition, rewritten to the new name.",
12409
+ "properties": {
12410
+ "table": {
12411
+ "type": "string",
12412
+ "description": "The table whose column names it (full name)."
12413
+ },
12414
+ "base": {
12415
+ "type": "string",
12416
+ "description": "The base whose column names it."
12417
+ },
12418
+ "view": {
12419
+ "type": "string",
12420
+ "description": "The view whose query names it (full name)."
12421
+ },
12422
+ "column": {
12423
+ "type": "string",
12424
+ "description": "The column of the table or base."
12425
+ },
12426
+ "key": {
12427
+ "type": "string",
12428
+ "description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
12429
+ },
12430
+ "from": {
12431
+ "type": "string",
12432
+ "description": "The name as written before."
12433
+ },
12434
+ "to": {
12435
+ "type": "string",
12436
+ "description": "The name written in its place."
12437
+ }
12438
+ },
12439
+ "required": [
12440
+ "key",
12441
+ "from",
12442
+ "to"
12443
+ ]
12444
+ },
12445
+ "description": "alter_table that moves or renames a table: the references to it in other definitions that it rewrites (on a dry run, would rewrite): the ref and vocabulary of the columns of other tables and of bases, and the tables the views' queries read. Present when there is one."
11566
12446
  }
11567
12447
  },
11568
12448
  "required": [
@@ -13004,6 +13884,50 @@ var init_catalog = __esm({
13004
13884
  ]
13005
13885
  },
13006
13886
  "description": "Mentions left as text because the engine is not sure which note they name. Present when there is one: read the candidates and the context, then link the right one with update_row and autolink: false, or leave the text."
13887
+ },
13888
+ "schema_references": {
13889
+ "type": "array",
13890
+ "items": {
13891
+ "title": "SchemaReference",
13892
+ "type": "object",
13893
+ "description": "A name of the moved table in another definition, rewritten to the new name.",
13894
+ "properties": {
13895
+ "table": {
13896
+ "type": "string",
13897
+ "description": "The table whose column names it (full name)."
13898
+ },
13899
+ "base": {
13900
+ "type": "string",
13901
+ "description": "The base whose column names it."
13902
+ },
13903
+ "view": {
13904
+ "type": "string",
13905
+ "description": "The view whose query names it (full name)."
13906
+ },
13907
+ "column": {
13908
+ "type": "string",
13909
+ "description": "The column of the table or base."
13910
+ },
13911
+ "key": {
13912
+ "type": "string",
13913
+ "description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
13914
+ },
13915
+ "from": {
13916
+ "type": "string",
13917
+ "description": "The name as written before."
13918
+ },
13919
+ "to": {
13920
+ "type": "string",
13921
+ "description": "The name written in its place."
13922
+ }
13923
+ },
13924
+ "required": [
13925
+ "key",
13926
+ "from",
13927
+ "to"
13928
+ ]
13929
+ },
13930
+ "description": "alter_table that moves or renames a table: the references to it in other definitions that it rewrites (on a dry run, would rewrite): the ref and vocabulary of the columns of other tables and of bases, and the tables the views' queries read. Present when there is one."
13007
13931
  }
13008
13932
  },
13009
13933
  "required": [
@@ -14024,6 +14948,50 @@ var init_catalog = __esm({
14024
14948
  ]
14025
14949
  },
14026
14950
  "description": "Mentions left as text because the engine is not sure which note they name. Present when there is one: read the candidates and the context, then link the right one with update_row and autolink: false, or leave the text."
14951
+ },
14952
+ "schema_references": {
14953
+ "type": "array",
14954
+ "items": {
14955
+ "title": "SchemaReference",
14956
+ "type": "object",
14957
+ "description": "A name of the moved table in another definition, rewritten to the new name.",
14958
+ "properties": {
14959
+ "table": {
14960
+ "type": "string",
14961
+ "description": "The table whose column names it (full name)."
14962
+ },
14963
+ "base": {
14964
+ "type": "string",
14965
+ "description": "The base whose column names it."
14966
+ },
14967
+ "view": {
14968
+ "type": "string",
14969
+ "description": "The view whose query names it (full name)."
14970
+ },
14971
+ "column": {
14972
+ "type": "string",
14973
+ "description": "The column of the table or base."
14974
+ },
14975
+ "key": {
14976
+ "type": "string",
14977
+ "description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
14978
+ },
14979
+ "from": {
14980
+ "type": "string",
14981
+ "description": "The name as written before."
14982
+ },
14983
+ "to": {
14984
+ "type": "string",
14985
+ "description": "The name written in its place."
14986
+ }
14987
+ },
14988
+ "required": [
14989
+ "key",
14990
+ "from",
14991
+ "to"
14992
+ ]
14993
+ },
14994
+ "description": "alter_table that moves or renames a table: the references to it in other definitions that it rewrites (on a dry run, would rewrite): the ref and vocabulary of the columns of other tables and of bases, and the tables the views' queries read. Present when there is one."
14027
14995
  }
14028
14996
  },
14029
14997
  "required": [
@@ -14426,6 +15394,50 @@ var init_catalog = __esm({
14426
15394
  ]
14427
15395
  },
14428
15396
  "description": "Mentions left as text because the engine is not sure which note they name. Present when there is one: read the candidates and the context, then link the right one with update_row and autolink: false, or leave the text."
15397
+ },
15398
+ "schema_references": {
15399
+ "type": "array",
15400
+ "items": {
15401
+ "title": "SchemaReference",
15402
+ "type": "object",
15403
+ "description": "A name of the moved table in another definition, rewritten to the new name.",
15404
+ "properties": {
15405
+ "table": {
15406
+ "type": "string",
15407
+ "description": "The table whose column names it (full name)."
15408
+ },
15409
+ "base": {
15410
+ "type": "string",
15411
+ "description": "The base whose column names it."
15412
+ },
15413
+ "view": {
15414
+ "type": "string",
15415
+ "description": "The view whose query names it (full name)."
15416
+ },
15417
+ "column": {
15418
+ "type": "string",
15419
+ "description": "The column of the table or base."
15420
+ },
15421
+ "key": {
15422
+ "type": "string",
15423
+ "description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
15424
+ },
15425
+ "from": {
15426
+ "type": "string",
15427
+ "description": "The name as written before."
15428
+ },
15429
+ "to": {
15430
+ "type": "string",
15431
+ "description": "The name written in its place."
15432
+ }
15433
+ },
15434
+ "required": [
15435
+ "key",
15436
+ "from",
15437
+ "to"
15438
+ ]
15439
+ },
15440
+ "description": "alter_table that moves or renames a table: the references to it in other definitions that it rewrites (on a dry run, would rewrite): the ref and vocabulary of the columns of other tables and of bases, and the tables the views' queries read. Present when there is one."
14429
15441
  }
14430
15442
  },
14431
15443
  "required": [
@@ -14895,6 +15907,50 @@ var init_catalog = __esm({
14895
15907
  ]
14896
15908
  },
14897
15909
  "description": "Mentions left as text because the engine is not sure which note they name. Present when there is one: read the candidates and the context, then link the right one with update_row and autolink: false, or leave the text."
15910
+ },
15911
+ "schema_references": {
15912
+ "type": "array",
15913
+ "items": {
15914
+ "title": "SchemaReference",
15915
+ "type": "object",
15916
+ "description": "A name of the moved table in another definition, rewritten to the new name.",
15917
+ "properties": {
15918
+ "table": {
15919
+ "type": "string",
15920
+ "description": "The table whose column names it (full name)."
15921
+ },
15922
+ "base": {
15923
+ "type": "string",
15924
+ "description": "The base whose column names it."
15925
+ },
15926
+ "view": {
15927
+ "type": "string",
15928
+ "description": "The view whose query names it (full name)."
15929
+ },
15930
+ "column": {
15931
+ "type": "string",
15932
+ "description": "The column of the table or base."
15933
+ },
15934
+ "key": {
15935
+ "type": "string",
15936
+ "description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
15937
+ },
15938
+ "from": {
15939
+ "type": "string",
15940
+ "description": "The name as written before."
15941
+ },
15942
+ "to": {
15943
+ "type": "string",
15944
+ "description": "The name written in its place."
15945
+ }
15946
+ },
15947
+ "required": [
15948
+ "key",
15949
+ "from",
15950
+ "to"
15951
+ ]
15952
+ },
15953
+ "description": "alter_table that moves or renames a table: the references to it in other definitions that it rewrites (on a dry run, would rewrite): the ref and vocabulary of the columns of other tables and of bases, and the tables the views' queries read. Present when there is one."
14898
15954
  }
14899
15955
  },
14900
15956
  "required": [
@@ -15293,6 +16349,50 @@ var init_catalog = __esm({
15293
16349
  ]
15294
16350
  },
15295
16351
  "description": "Mentions left as text because the engine is not sure which note they name. Present when there is one: read the candidates and the context, then link the right one with update_row and autolink: false, or leave the text."
16352
+ },
16353
+ "schema_references": {
16354
+ "type": "array",
16355
+ "items": {
16356
+ "title": "SchemaReference",
16357
+ "type": "object",
16358
+ "description": "A name of the moved table in another definition, rewritten to the new name.",
16359
+ "properties": {
16360
+ "table": {
16361
+ "type": "string",
16362
+ "description": "The table whose column names it (full name)."
16363
+ },
16364
+ "base": {
16365
+ "type": "string",
16366
+ "description": "The base whose column names it."
16367
+ },
16368
+ "view": {
16369
+ "type": "string",
16370
+ "description": "The view whose query names it (full name)."
16371
+ },
16372
+ "column": {
16373
+ "type": "string",
16374
+ "description": "The column of the table or base."
16375
+ },
16376
+ "key": {
16377
+ "type": "string",
16378
+ "description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
16379
+ },
16380
+ "from": {
16381
+ "type": "string",
16382
+ "description": "The name as written before."
16383
+ },
16384
+ "to": {
16385
+ "type": "string",
16386
+ "description": "The name written in its place."
16387
+ }
16388
+ },
16389
+ "required": [
16390
+ "key",
16391
+ "from",
16392
+ "to"
16393
+ ]
16394
+ },
16395
+ "description": "alter_table that moves or renames a table: the references to it in other definitions that it rewrites (on a dry run, would rewrite): the ref and vocabulary of the columns of other tables and of bases, and the tables the views' queries read. Present when there is one."
15296
16396
  }
15297
16397
  },
15298
16398
  "required": [
@@ -15722,6 +16822,50 @@ var init_catalog = __esm({
15722
16822
  ]
15723
16823
  },
15724
16824
  "description": "Mentions left as text because the engine is not sure which note they name. Present when there is one: read the candidates and the context, then link the right one with update_row and autolink: false, or leave the text."
16825
+ },
16826
+ "schema_references": {
16827
+ "type": "array",
16828
+ "items": {
16829
+ "title": "SchemaReference",
16830
+ "type": "object",
16831
+ "description": "A name of the moved table in another definition, rewritten to the new name.",
16832
+ "properties": {
16833
+ "table": {
16834
+ "type": "string",
16835
+ "description": "The table whose column names it (full name)."
16836
+ },
16837
+ "base": {
16838
+ "type": "string",
16839
+ "description": "The base whose column names it."
16840
+ },
16841
+ "view": {
16842
+ "type": "string",
16843
+ "description": "The view whose query names it (full name)."
16844
+ },
16845
+ "column": {
16846
+ "type": "string",
16847
+ "description": "The column of the table or base."
16848
+ },
16849
+ "key": {
16850
+ "type": "string",
16851
+ "description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
16852
+ },
16853
+ "from": {
16854
+ "type": "string",
16855
+ "description": "The name as written before."
16856
+ },
16857
+ "to": {
16858
+ "type": "string",
16859
+ "description": "The name written in its place."
16860
+ }
16861
+ },
16862
+ "required": [
16863
+ "key",
16864
+ "from",
16865
+ "to"
16866
+ ]
16867
+ },
16868
+ "description": "alter_table that moves or renames a table: the references to it in other definitions that it rewrites (on a dry run, would rewrite): the ref and vocabulary of the columns of other tables and of bases, and the tables the views' queries read. Present when there is one."
15725
16869
  }
15726
16870
  },
15727
16871
  "required": [
@@ -16138,6 +17282,50 @@ var init_catalog = __esm({
16138
17282
  ]
16139
17283
  },
16140
17284
  "description": "Mentions left as text because the engine is not sure which note they name. Present when there is one: read the candidates and the context, then link the right one with update_row and autolink: false, or leave the text."
17285
+ },
17286
+ "schema_references": {
17287
+ "type": "array",
17288
+ "items": {
17289
+ "title": "SchemaReference",
17290
+ "type": "object",
17291
+ "description": "A name of the moved table in another definition, rewritten to the new name.",
17292
+ "properties": {
17293
+ "table": {
17294
+ "type": "string",
17295
+ "description": "The table whose column names it (full name)."
17296
+ },
17297
+ "base": {
17298
+ "type": "string",
17299
+ "description": "The base whose column names it."
17300
+ },
17301
+ "view": {
17302
+ "type": "string",
17303
+ "description": "The view whose query names it (full name)."
17304
+ },
17305
+ "column": {
17306
+ "type": "string",
17307
+ "description": "The column of the table or base."
17308
+ },
17309
+ "key": {
17310
+ "type": "string",
17311
+ "description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
17312
+ },
17313
+ "from": {
17314
+ "type": "string",
17315
+ "description": "The name as written before."
17316
+ },
17317
+ "to": {
17318
+ "type": "string",
17319
+ "description": "The name written in its place."
17320
+ }
17321
+ },
17322
+ "required": [
17323
+ "key",
17324
+ "from",
17325
+ "to"
17326
+ ]
17327
+ },
17328
+ "description": "alter_table that moves or renames a table: the references to it in other definitions that it rewrites (on a dry run, would rewrite): the ref and vocabulary of the columns of other tables and of bases, and the tables the views' queries read. Present when there is one."
16141
17329
  }
16142
17330
  },
16143
17331
  "required": [
@@ -62800,7 +63988,6 @@ var moveRows = instrumented("move_rows", moveRowsImpl, (i) => ({
62800
63988
  init_changeset();
62801
63989
  init_transaction_log();
62802
63990
  init_store();
62803
- init_link_paths();
62804
63991
  init_metastore();
62805
63992
  init_engine();
62806
63993
  init_frontmatter();
@@ -62828,6 +64015,59 @@ function archivedRowFiles(app, settings, t) {
62828
64015
  return rowTableFull(model, fm?.[settings.tableKey]) === full;
62829
64016
  });
62830
64017
  }
64018
+ function viewTable(model, name) {
64019
+ try {
64020
+ return resolveCatalogRef(model, name)?.full ?? null;
64021
+ } catch {
64022
+ return null;
64023
+ }
64024
+ }
64025
+ function movedReferences(text5, model, from, to) {
64026
+ const references = [];
64027
+ const moved = (c, owner) => {
64028
+ let out2 = c;
64029
+ for (const key2 of ["ref", "vocabulary"]) {
64030
+ if (c[key2] !== from) continue;
64031
+ out2 = { ...out2, [key2]: to };
64032
+ references.push({ ...owner, column: String(c.name), key: key2, from, to });
64033
+ }
64034
+ return out2;
64035
+ };
64036
+ let after = text5;
64037
+ for (const [name, base] of Object.entries(model.bases)) {
64038
+ const columns = base.columns.map((c) => moved(c, { base: name }));
64039
+ if (columns.some((c, i) => c !== base.columns[i])) after = setBaseEntry(after, name, { ...base, columns });
64040
+ }
64041
+ const tables = [];
64042
+ for (const { ref: ref2, entry } of catalogTables(model)) {
64043
+ if (ref2.full === from) continue;
64044
+ const columns = entry.columns.map((c) => moved(c, { table: ref2.full }));
64045
+ if (columns.some((c, i) => c !== entry.columns[i])) tables.push([ref2, { ...entry, columns }]);
64046
+ }
64047
+ after = setTableEntries(after, tables);
64048
+ let next;
64049
+ try {
64050
+ next = parseMetastore(after);
64051
+ } catch {
64052
+ return { text: after, references };
64053
+ }
64054
+ for (const { ref: ref2, view } of catalogViews(model)) {
64055
+ const q = view.query;
64056
+ const renamed = (name, key2) => {
64057
+ if (typeof name !== "string" || viewTable(model, name) !== from || viewTable(next, name) === to) return name;
64058
+ references.push({ view: ref2.full, key: key2, from: name, to });
64059
+ return to;
64060
+ };
64061
+ const query = { ...q };
64062
+ if (q.table !== void 0) query.table = renamed(q.table, "table");
64063
+ if (Array.isArray(q.union)) {
64064
+ query.union = q.union.map((b, i) => b && typeof b === "object" ? { ...b, table: renamed(b.table, `union[${i}].table`) } : b);
64065
+ }
64066
+ if (q.join && typeof q.join === "object" && !Array.isArray(q.join)) query.join = { ...q.join, table: renamed(q.join.table, "join.table") };
64067
+ if (JSON.stringify(query) !== JSON.stringify(q)) after = setViewEntry(after, ref2, { ...view, query });
64068
+ }
64069
+ return { text: after, references };
64070
+ }
62831
64071
  async function relocateTable(app, settings, t, dest, changes, opts, properties = {}, rowTemplate2, tags, fields = {}, instructions) {
62832
64072
  const conflicts = [];
62833
64073
  const merged = { ...serializeOptions(t.def.options)[0] };
@@ -62841,6 +64081,7 @@ async function relocateTable(app, settings, t, dest, changes, opts, properties =
62841
64081
  let member;
62842
64082
  const taken = /* @__PURE__ */ new Set();
62843
64083
  let cs;
64084
+ let references = [];
62844
64085
  {
62845
64086
  const ref2 = dest.catalogRef;
62846
64087
  options = parseTableOptions([{ ...merged, name: ref2.table }]);
@@ -62851,9 +64092,6 @@ async function relocateTable(app, settings, t, dest, changes, opts, properties =
62851
64092
  if (ref2.full !== t.catalog.ref.full && (sch?.tables[ref2.table] || sch?.views[ref2.table])) {
62852
64093
  conflicts.push({ path: catalogTablePath(settings, ref2.full), message: `${ref2.full} already exists` });
62853
64094
  }
62854
- if (ref2.full !== t.catalog.ref.full) {
62855
- for (const r of readersBlocking(model, t.catalog.ref.full, "rename")) conflicts.push({ path: catalogTablePath(settings, t.catalog.ref.full), ...r });
62856
- }
62857
64095
  let schemaOrdered = fmSet(t.ordered.filter(([k]) => !membership.has(k)), TABLE_KEY, serializeOptions(options));
62858
64096
  for (const [k, v] of Object.entries(fields)) schemaOrdered = v === null ? fmDelete(schemaOrdered, k) : fmSet(schemaOrdered, k, v);
62859
64097
  const entry = withSystemIdColumn(orderedToEntry(schemaOrdered, t.catalog.entry, settings, { model, ref: ref2, previousRef: t.catalog.ref }));
@@ -62870,8 +64108,10 @@ async function relocateTable(app, settings, t, dest, changes, opts, properties =
62870
64108
  else if (typeof rowTemplate2 === "string") entry.row_template = rowTemplate2;
62871
64109
  if (instructions === null || typeof instructions === "string" && instructions.trim() === "") delete entry.instructions;
62872
64110
  else if (typeof instructions === "string") entry.instructions = instructions;
62873
- const after = setTableEntries(text5, [...t.catalog.ref.full !== ref2.full ? [[t.catalog.ref, null]] : [], [ref2, tags === void 0 ? entry : withTableTags(entry, tags)]]);
62874
64111
  const from = t.catalog.ref.full;
64112
+ if (from !== ref2.full) entry.columns = entry.columns.map((c) => c.vocabulary === from ? { ...c, vocabulary: ref2.full } : c);
64113
+ let after = setTableEntries(text5, [...from !== ref2.full ? [[t.catalog.ref, null]] : [], [ref2, tags === void 0 ? entry : withTableTags(entry, tags)]]);
64114
+ if (from !== ref2.full) ({ text: after, references } = movedReferences(after, model, from, ref2.full));
62875
64115
  cs = emptyChangeSet("alter_table", from === ref2.full ? `alter table ${from}` : `move table ${from} to ${ref2.full}`, catalogTablePath(settings, ref2.full));
62876
64116
  if (after !== text5) cs.texts.push({ path: metastorePath(settings), before: text5, after });
62877
64117
  if (t.catalog.ref.full !== ref2.full) {
@@ -62947,7 +64187,8 @@ async function relocateTable(app, settings, t, dest, changes, opts, properties =
62947
64187
  const to = claim2(`${newArchive}/${basenameOf(f.path)}`, f.path);
62948
64188
  relink({ path: f.path, ordered }, to);
62949
64189
  }
62950
- return finish(app, settings, cs, conflicts, [], opts);
64190
+ const result = await finish(app, settings, cs, conflicts, [], opts);
64191
+ return references.length > 0 ? { ...result, schema_references: references } : result;
62951
64192
  }
62952
64193
  function fieldsInput(t, settings, value) {
62953
64194
  if (value === null || typeof value !== "object" || Array.isArray(value)) {
@@ -63834,8 +65075,13 @@ function graphView(app, idx, g, backlinksOf) {
63834
65075
  const out2 = [];
63835
65076
  const typed = [...g.into.get(node2) ?? []].sort((a, b) => g.tables.get(g.rowTable.get(a)).index - g.tables.get(g.rowTable.get(b)).index || a.localeCompare(b));
63836
65077
  for (const from of typed) for (const e of g.edges.get(from)) if (e.to === node2) out2.push({ to: from, label: e.label });
63837
- const order = (p) => idx.note(p)?.order ?? Number.MAX_SAFE_INTEGER;
63838
- const links = Object.keys(backlinksOf(node2)).filter((from) => from !== node2 && !typedTo(from, node2)).sort((a, b) => order(a) - order(b));
65078
+ const linking = Object.keys(backlinksOf(node2)).filter((from) => from !== node2 && !typedTo(from, node2));
65079
+ let order = (p) => idx.note(p)?.order ?? -1;
65080
+ if (linking.some((p) => order(p) === -1)) {
65081
+ const at = new Map(Object.keys(app.metadataCache.resolvedLinks).map((p, i) => [p, i]));
65082
+ order = (p) => at.get(p);
65083
+ }
65084
+ const links = linking.sort((a, b) => order(a) - order(b));
63839
65085
  for (const from of links) out2.push({ to: from, label: LINK_LABEL });
63840
65086
  return out2.length > 0 ? out2 : void 0;
63841
65087
  }
@@ -74899,7 +76145,7 @@ function setUp(o, vault, home, explicit, self) {
74899
76145
  // src/node/service.ts
74900
76146
  init_local();
74901
76147
  init_hints();
74902
- var VERSION = true ? "3.3.0" : "dev";
76148
+ var VERSION = true ? "3.3.1" : "dev";
74903
76149
  function parsePort(raw, from = "--port") {
74904
76150
  const n = /^\s*\d+\s*$/.test(raw) ? Number(raw) : NaN;
74905
76151
  if (n === 0 || Number.isInteger(n) && n >= 1024 && n <= 65535) return n;
@@ -75963,7 +77209,7 @@ Docs: https://datanotes.dev`;
75963
77209
 
75964
77210
  // src/node/cli.ts
75965
77211
  init_message();
75966
- var VERSION2 = true ? "3.3.0" : "dev";
77212
+ var VERSION2 = true ? "3.3.1" : "dev";
75967
77213
  var consoleError = console.error;
75968
77214
  async function main5(argv = process.argv.slice(2)) {
75969
77215
  const [command, ...rest] = argv;