Skip to content

feat(inspector): show the server and its version, and keep Engine for a table's own engine - #4807

Merged
datlechin merged 2 commits into
mainfrom
feat/inspector-server-version
Dec 1, 2026
Merged

datlechin merged 2 commits into
mainfrom
feat/inspector-server-version

Conversation

@datlechin

Copy link
Copy Markdown
Member

Summary

  • Inspector: a Server section with one Version row, such as "PostgreSQL 17.2", under a table's info in Data and Structure, and alone above No Row Selected in a query tab. An engine inside the app reads Library: "SQLite 3.53.4". The full string the server sent is the tooltip.
  • Connection switcher: the footer names the current connection's server, and an open session's row tooltip does too.
  • PluginKit 49: PluginServerIdentity (product, short version, report, server or library) and serverIdentity on every first-party driver, read at connect. serverVersion keeps its raw shape for the version checks.
  • Engine row: only a table's own engine (InnoDB, MergeTree, heap from pg_am, HANA ROW/COLUMN, BigQuery table type). The 24 plugins that put their product name there stop.
  • Test Connection reads "Connected to PostgreSQL 17.2 in 42 ms", and the assistant's context "Engine: PostgreSQL 17.2". The assistant and MCP prompts get the product and the version's leading numbers only, never the server's own text.
  • Windows: the details pane's Table view shows the same Server or Library figure, through the core's ServerInfo (release, in_process) and a new ffi ServerIdentity.
  • Fixed with it: Valkey showed as Redis 7.2.4. Kafka never reported a server. Redshift, StarRocks and OceanBase showed the PostgreSQL or MySQL version they are compatible with. Oracle and Dameng cut their banner at 60 characters. Structure Compare called every SQLite vs libSQL or PostgreSQL vs CockroachDB table a storage engine change. SQL Server counted rows once per allocation unit and left nonclustered indexes out of Total. OpenSearch filters lost case-insensitive matching. Beancount read its version behind the query lock. Redis, Oracle and Dameng kept the old version after reconnecting on their own.
  • Tests updated on purpose: ConnectionWarningTests, ConnectionEditorStoreTests, ConnectionEditorStoreTransportTests, ConnectionEditorWindowTests, QueryContextRendererTests, QueryContextBuilderTests, the DuckDB core driver's server info test, and the PostgreSQL metadata SQL pins.
Light Dark
Table, before Table before light Table before dark
Table, after Table after light Table after dark
Query tab, before Query before light Query before dark
Query tab, after Query after light Query after dark
SQLite file SQLite light SQLite dark
Connection switcher Switcher light Switcher dark

Test plan

  • New: ServerIdentityPresentationTests, PluginDriverAdapterServerIdentityTests, PluginServerIdentityTests, per-engine release parsing in TableProCore, PostgreSQLServerIdentityTests, PostgreSQLTableMetadataQueryTests, MySQLServerIdentityTests, SQLiteServerIdentityTests, ClickHouseServerIdentityTests, MSSQLTableInfoQueriesTests, core server_info and ffi server() tests, Interop ASqliteFileNamesTheLibraryItRunsOn.
  • verify.sh build, plugins (AllPlugins), lint, l10n plugin strings, package TableProCore (675 passed).
  • 28 hosted suites plus the PostgreSQL, MySQL, SQLite, ClickHouse and Redis driver bundles: 3128 run, 3127 passed; SQLiteAgentCappedWriteTests/cappedReadStops failed under load and passed alone.
  • cargo clippy and tests for the touched crates, dotnet test App.Model (1512) and Interop BrowseTests (11).
  • Left to CI (the Mac ran out of disk): the iOS build, TableProOracleCoreTests, the ffi browse integration test.

Fixes #4794

@datlechin
datlechin enabled auto-merge (squash) December 1, 2026 17:13
@datlechin
datlechin disabled auto-merge December 1, 2026 17:14
@datlechin
datlechin merged commit b224520 into main Dec 1, 2026
32 of 34 checks passed
@datlechin
datlechin deleted the feat/inspector-server-version branch December 1, 2026 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

show database version in inspector

1 participant