@culpritsql/plan-viewer 0.6.0 → 0.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@culpritsql/plan-viewer",
3
- "version": "0.6.0",
3
+ "version": "0.6.4",
4
4
  "description": "Interactive React execution plan diagram, structural plan diff, deadlock cycle graph, and Extended Events (.xel) components for SQL Server, PostgreSQL, MySQL, MariaDB, YugabyteDB, and SQLite.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -8,8 +8,8 @@
8
8
  "embedded_catalog": {
9
9
  "language": "en",
10
10
  "message_count": 481,
11
- "source_en_sha256": "8cbf6743599aa9fd05095128e1d11c4558482ec397ae3074bb94282bc3c12aad",
12
- "engines_sha256": "248786d554da4879147ab3aabb6ca4cbeb33f113cc1554afd5a43a5371aa7844"
11
+ "source_en_sha256": "87823efbe2f92c1b7b401fc35f188e9538cbe7db95c1073875f0ae2ee5b0e555",
12
+ "engines_sha256": "67a1627ba1601914edecb948858b79e9c795026c26216cc4d283af6a59ffaaf8"
13
13
  },
14
14
  "models": [
15
15
  {
@@ -69,8 +69,8 @@
69
69
  },
70
70
  {
71
71
  "name": "Connect",
72
- "source_sha256": "1eaf8bd56f38fd48276e8f242a0f4ea0844f90b8cfd9aed2f07da112be1e0750",
73
- "package_sha256": "1eaf8bd56f38fd48276e8f242a0f4ea0844f90b8cfd9aed2f07da112be1e0750"
72
+ "source_sha256": "6922ae32a8de112e0057584451b5b3802cb38b5d2461efde1d61cc2dbfe9b3ae",
73
+ "package_sha256": "6922ae32a8de112e0057584451b5b3802cb38b5d2461efde1d61cc2dbfe9b3ae"
74
74
  },
75
75
  {
76
76
  "name": "ConnectionSecurityMode",
@@ -99,8 +99,8 @@
99
99
  },
100
100
  {
101
101
  "name": "DatabaseProduct",
102
- "source_sha256": "961af8a253cb89c3b1071de5fd19446dfe0d92e1de8cde5cfa4015d6c9e6158a",
103
- "package_sha256": "961af8a253cb89c3b1071de5fd19446dfe0d92e1de8cde5cfa4015d6c9e6158a"
102
+ "source_sha256": "4ec38056c2002bfec79c643dc81a487ad6beb29e00f405295bd42c5fcabaa461",
103
+ "package_sha256": "4ec38056c2002bfec79c643dc81a487ad6beb29e00f405295bd42c5fcabaa461"
104
104
  },
105
105
  {
106
106
  "name": "Deadlock",
@@ -149,8 +149,8 @@
149
149
  },
150
150
  {
151
151
  "name": "Engine",
152
- "source_sha256": "9c46ff74ded0233bf4ff11474ff9b9ea3176913d0657fc0de6363fe324883acd",
153
- "package_sha256": "9c46ff74ded0233bf4ff11474ff9b9ea3176913d0657fc0de6363fe324883acd"
152
+ "source_sha256": "7d42df5cb7823c4e31de9ab87312406656c244c0618bb8b54ad0fe1626087276",
153
+ "package_sha256": "7d42df5cb7823c4e31de9ab87312406656c244c0618bb8b54ad0fe1626087276"
154
154
  },
155
155
  {
156
156
  "name": "EngineAbilities",
@@ -634,8 +634,8 @@
634
634
  },
635
635
  {
636
636
  "name": "ReadUnit",
637
- "source_sha256": "662b23ac6bd9066fe4e076eaad3d4c4bb24f5d0b9714f585bf8dcbdfc88a866b",
638
- "package_sha256": "662b23ac6bd9066fe4e076eaad3d4c4bb24f5d0b9714f585bf8dcbdfc88a866b"
637
+ "source_sha256": "7870f00753904cf7b5eddcaeaa4e060615656b79eceae329cf0a9c25224c1230",
638
+ "package_sha256": "7870f00753904cf7b5eddcaeaa4e060615656b79eceae329cf0a9c25224c1230"
639
639
  },
640
640
  {
641
641
  "name": "Refusal",
@@ -744,8 +744,8 @@
744
744
  },
745
745
  {
746
746
  "name": "SqlSyntax",
747
- "source_sha256": "a950a055ef15a20a55e8558270f58fb03df04c8876c5e0f61c84fed1886e47d1",
748
- "package_sha256": "a950a055ef15a20a55e8558270f58fb03df04c8876c5e0f61c84fed1886e47d1"
747
+ "source_sha256": "01ee060eb32ebaed676188c1aa201f4938791332df7df3a345f366339107e7c7",
748
+ "package_sha256": "01ee060eb32ebaed676188c1aa201f4938791332df7df3a345f366339107e7c7"
749
749
  },
750
750
  {
751
751
  "name": "StatementMetrics",
@@ -804,8 +804,8 @@
804
804
  },
805
805
  {
806
806
  "name": "WriteLog",
807
- "source_sha256": "bcd69238414755a7104dadb5ac4a15671456eff85b693d53781700f010e206b8",
808
- "package_sha256": "bcd69238414755a7104dadb5ac4a15671456eff85b693d53781700f010e206b8"
807
+ "source_sha256": "9a2b2eee3f6ca345c091e16b9afb9a327f4cd076ea118d9190af040f520c08ca",
808
+ "package_sha256": "9a2b2eee3f6ca345c091e16b9afb9a327f4cd076ea118d9190af040f520c08ca"
809
809
  },
810
810
  {
811
811
  "name": "WriteRows",
@@ -945,10 +945,10 @@
945
945
  "sha256": "7bc35279db095a55830a0a0f917917442f024fe451907a8fce64f438584d464d"
946
946
  },
947
947
  "defaults.js": {
948
- "bytes": 42275,
949
- "gzip_bytes": 9547,
950
- "brotli_bytes": 8169,
951
- "sha256": "f55c6e48b9a3e407dd89bc582274706c180da58bcaf758d07f29d0980bbc9740"
948
+ "bytes": 42524,
949
+ "gzip_bytes": 9574,
950
+ "brotli_bytes": 8155,
951
+ "sha256": "f1f51cb154fed6290f129e57bcc2f30769aab97c89ba425e6ce9f4d8b8225b84"
952
952
  },
953
953
  "host.js": {
954
954
  "bytes": 24174,
package/pkg/defaults.js CHANGED
@@ -1,4 +1,4 @@
1
- export const DEFAULT_ENGINES = { "mssql": { "label": "SQL Server", "abilities": { "plan_estimates": true }, "products": [{ "id": "mssql", "label": "SQL Server", "prefix": null }], "evidence_presentation": { "generic_plan_context": "ui.plan_surface.generic_settings" } }, "mysql": { "label": "MySQL", "abilities": { "plan_estimates": true }, "products": [{ "id": "mysql", "label": "MySQL", "prefix": null }, { "id": "mariadb", "label": "MariaDB", "prefix": "MariaDB" }], "evidence_presentation": { "generic_plan_context": "ui.plan_surface.generic_settings" } }, "postgres": { "label": "PostgreSQL", "abilities": { "plan_estimates": true }, "products": [{ "id": "postgres", "label": "PostgreSQL", "prefix": null }, { "id": "timescale", "label": "TimescaleDB", "prefix": "TimescaleDB" }], "evidence_presentation": { "generic_plan_context": "ui.plan_surface.generic_settings" } }, "sqlite": { "label": "SQLite", "abilities": { "plan_estimates": false }, "products": [{ "id": "sqlite", "label": "SQLite", "prefix": null }], "evidence_presentation": { "generic_plan_context": "ui.plan_surface.generic_sqlite" } }, "yugabyte": { "label": "YugabyteDB", "abilities": { "plan_estimates": true }, "products": [{ "id": "yugabyte", "label": "YugabyteDB", "prefix": null }], "evidence_presentation": { "generic_plan_context": "ui.plan_surface.generic_settings" } } };
1
+ export const DEFAULT_ENGINES = { "clickhouse": { "label": "ClickHouse", "abilities": { "plan_estimates": false }, "products": [{ "id": "clickhouse", "label": "ClickHouse", "prefix": null }], "evidence_presentation": { "generic_plan_context": "ui.plan_surface.generic_settings" } }, "mssql": { "label": "SQL Server", "abilities": { "plan_estimates": true }, "products": [{ "id": "mssql", "label": "SQL Server", "prefix": null }], "evidence_presentation": { "generic_plan_context": "ui.plan_surface.generic_settings" } }, "mysql": { "label": "MySQL", "abilities": { "plan_estimates": true }, "products": [{ "id": "mysql", "label": "MySQL", "prefix": null }, { "id": "mariadb", "label": "MariaDB", "prefix": "MariaDB" }], "evidence_presentation": { "generic_plan_context": "ui.plan_surface.generic_settings" } }, "postgres": { "label": "PostgreSQL", "abilities": { "plan_estimates": true }, "products": [{ "id": "postgres", "label": "PostgreSQL", "prefix": null }, { "id": "timescale", "label": "TimescaleDB", "prefix": "TimescaleDB" }], "evidence_presentation": { "generic_plan_context": "ui.plan_surface.generic_settings" } }, "sqlite": { "label": "SQLite", "abilities": { "plan_estimates": false }, "products": [{ "id": "sqlite", "label": "SQLite", "prefix": null }], "evidence_presentation": { "generic_plan_context": "ui.plan_surface.generic_sqlite" } }, "yugabyte": { "label": "YugabyteDB", "abilities": { "plan_estimates": true }, "products": [{ "id": "yugabyte", "label": "YugabyteDB", "prefix": null }], "evidence_presentation": { "generic_plan_context": "ui.plan_surface.generic_settings" } } };
2
2
  export const DEFAULT_LOCALE = { "plural": "en", "decimal": ".", "group": ",", "direction": "ltr" };
3
3
  export const DEFAULT_MESSAGES = {
4
4
  "common.metric.runs": "Runs",
@@ -12,6 +12,10 @@ choice: string,
12
12
  * The database is a file on this computer (SQLite), chosen rather than pasted.
13
13
  */
14
14
  file: boolean,
15
+ /**
16
+ * Whether Culprit can forward this connection over an SSH jump host.
17
+ */
18
+ ssh: boolean,
15
19
  /**
16
20
  * What to paste, or the path to type, as an example.
17
21
  */
@@ -3,4 +3,4 @@
3
3
  /**
4
4
  * The database product a provider identified. Product branding does not select an execution provider.
5
5
  */
6
- export type DatabaseProduct = "mssql" | "postgres" | "timescale" | "yugabyte" | "mysql" | "mariadb" | "sqlite";
6
+ export type DatabaseProduct = "clickhouse" | "mssql" | "postgres" | "timescale" | "yugabyte" | "mysql" | "mariadb" | "sqlite";
@@ -1,3 +1,3 @@
1
1
  // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
2
 
3
- export type Engine = "mssql" | "postgres" | "yugabyte" | "mysql" | "sqlite";
3
+ export type Engine = "clickhouse" | "mssql" | "postgres" | "yugabyte" | "mysql" | "sqlite";
@@ -4,4 +4,4 @@
4
4
  * What a statement's reads are counted in: pages on most engines, rows examined on MySQL and MariaDB (the rows the
5
5
  * storage engine handed to the server). Messages `select` on it.
6
6
  */
7
- export type ReadUnit = "pages" | "rows_examined";
7
+ export type ReadUnit = "rows_read" | "pages" | "rows_examined";
@@ -3,4 +3,4 @@
3
3
  /**
4
4
  * The SQL grammar a server speaks, independently of its storage engine and measurements.
5
5
  */
6
- export type SqlSyntax = "mssql" | "postgres" | "mysql" | "sqlite";
6
+ export type SqlSyntax = "clickhouse" | "mssql" | "postgres" | "mysql" | "sqlite";
@@ -4,4 +4,4 @@
4
4
  * The log a statement's changes are written to before they reach the data files: PostgreSQL's WAL, the others'
5
5
  * transaction log. Messages `select` on it (`{log, select, wal {..} other {..}}`).
6
6
  */
7
- export type WriteLog = "wal" | "transaction_log";
7
+ export type WriteLog = "unavailable" | "wal" | "transaction_log";