Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
bb18bf2
feat: force-migrate postgres connections to postgresql plugin at launch
aesslinger Nov 18, 2026
ad7fa4d
chore: apply rustfmt formatting drift
aesslinger Nov 18, 2026
54db740
feat: remove built-in PostgreSQL driver backend
aesslinger Nov 18, 2026
0ad2cf7
chore: remove postgres Cargo dependencies
aesslinger Nov 18, 2026
b1b3fee
feat: remove built-in PostgreSQL driver from frontend
aesslinger Nov 18, 2026
1ea95cf
test: delete postgres_integration suite and pg-integration CI
aesslinger Nov 18, 2026
fbafb4b
fix: register MysqlDriver in provisioning tests that switched from po…
aesslinger Nov 18, 2026
86a1b14
fix: address all pre-handoff review findings
aesslinger Nov 18, 2026
31fae47
fix: CI failures — restore MySQL socket test, remove migration props,…
aesslinger Nov 18, 2026
bcbd5a2
chore: rebuild plugin guest runtime CSS after migration UI removal
aesslinger Nov 18, 2026
40a1919
fix: CI — install postgresql plugin for web e2e, update parity audit doc
aesslinger Nov 18, 2026
814c116
fix: correct postgresql plugin asset name for Linux CI
aesslinger Nov 18, 2026
17850ab
ci: add debug logging to postgresql plugin install step
aesslinger Nov 18, 2026
5563a3e
fix: install postgresql plugin into e2e fixture dir, not home dir
aesslinger Nov 18, 2026
d1edd63
fix: update frontend tests for removed migration UI and postgres icon
aesslinger Nov 19, 2026
d83c6a3
chore: trigger CI
aesslinger Nov 19, 2026
ede716d
fix: force-install retries after a failed first download
aesslinger Nov 19, 2026
8c04f57
test: add socket integration test for postgresql plugin
aesslinger Nov 19, 2026
7a89665
fix: SQLite transfer type classification and Bool value preservation
aesslinger Nov 19, 2026
82e8547
chore: rebase onto main, add postgres driver README
aesslinger Nov 24, 2026
d322f21
fix: log driver-id migration failures instead of swallowing them
aesslinger Nov 24, 2026
3a5908c
fix: treat SQLite table names as ASCII case-insensitive in row transf…
aesslinger Nov 24, 2026
76b417c
fix: stream the SQLite source in row transfers instead of LIMIT/OFFSE…
aesslinger Nov 24, 2026
c2f9b78
chore: drop unused rustls-pemfile and rustls-platform-verifier depend…
aesslinger Nov 24, 2026
c0a1ab4
fix: keep each BLOB-column value's SQLite storage class in row transfers
aesslinger Nov 24, 2026
65705f8
fix: decode NUMERIC source values by their SQLite storage class in ro…
aesslinger Nov 24, 2026
0c4c750
docs: correct the MySQL TLS backend comment in pool_manager
aesslinger Nov 24, 2026
cc28e36
test: keep the server port in the PostgreSQL plugin socket test
aesslinger Nov 24, 2026
64aad03
docs: scope the postgres README to driver changes, not host integration
aesslinger Nov 24, 2026
cc8b801
fix: run a modifying plugin export statement exactly once
aesslinger Nov 24, 2026
24eb869
docs: document the cross-process window in the driver-id migration write
aesslinger Nov 24, 2026
f18099f
test: drop the port override from the PostgreSQL socket test, not the…
aesslinger Nov 24, 2026
dd5062b
fix: refuse integers a REAL target column cannot hold exactly
aesslinger Nov 24, 2026
d3f9995
test: guard that a NUMERIC real copied into a TEXT column round-trips…
aesslinger Nov 24, 2026
4786e37
fix: keep a session export's write inside the open transaction
aesslinger Nov 24, 2026
ee518ec
fix: install the replacement PostgreSQL plugin from web and --mcp, no…
aesslinger Nov 26, 2026
8d845eb
Merge upstream/main into remove/postgres-builtin
aesslinger Nov 27, 2026
2adef76
feat: add the table_copy capability and the read_rows/insert_records …
aesslinger Dec 2, 2026
754e72d
feat: copy tables to and from PostgreSQL plugins through read_rows an…
aesslinger Dec 2, 2026
71c36cf
feat: move connections to the PostgreSQL plugin only once it is socke…
aesslinger Dec 2, 2026
9c6ba27
fix: reload saved connections once the replacement plugin is installed
aesslinger Dec 2, 2026
db0d548
Merge upstream/main into remove/postgres-builtin
aesslinger Dec 2, 2026
0bc9346
test: keep the two plugin copy tests from sharing one plugin process
aesslinger Dec 2, 2026
75444a5
test: copy a table keyed by a GENERATED BY DEFAULT identity column
aesslinger Dec 3, 2026
9266392
chore: pin the PostgreSQL plugin CI fixtures to v1.0.0-rc.16
aesslinger Dec 3, 2026
1a0f422
Merge remote-tracking branch 'upstream/main' into pr1625-review
aesslinger Dec 3, 2026
efdcc3b
fix: move connections to the PostgreSQL plugin only when it is regist…
aesslinger Dec 3, 2026
a52936a
fix: require PostgreSQL plugin rc.16 before moving connections
aesslinger Dec 3, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,14 @@ jobs:
- name: Install dependencies
run: pnpm install

- name: Install PostgreSQL plugin for web e2e
run: |
mkdir -p e2e/web/fixtures/plugins/postgresql
curl -sL "https://github.com/TabularisDB/tabularis-postgresql-plugin/releases/download/v1.0.0-rc.16/default.tabularium" -o e2e/web/fixtures/plugins/postgresql/.tabularium
curl -sL "https://github.com/TabularisDB/tabularis-postgresql-plugin/releases/download/v1.0.0-rc.16/postgresql-plugin-linux-x64.zip" -o /tmp/pg-plugin.zip
unzip -o /tmp/pg-plugin.zip -d e2e/web/fixtures/plugins/postgresql/
chmod +x e2e/web/fixtures/plugins/postgresql/postgresql-plugin

- name: Install browser engines
run: pnpm exec playwright install --with-deps chromium firefox webkit

Expand Down
97 changes: 0 additions & 97 deletions .github/workflows/pg-integration.yml

This file was deleted.

97 changes: 97 additions & 0 deletions .github/workflows/postgres-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
name: Integration Tests (PostgreSQL plugin)

concurrency:
group: postgres-integration-${{ github.ref }}
cancel-in-progress: true

on:
push:
branches: [main]
paths:
- 'src-tauri/**'
- '.github/workflows/postgres-integration.yml'
pull_request:
branches: [main]
paths:
- 'src-tauri/**'
- '.github/workflows/postgres-integration.yml'
workflow_dispatch:

env:
# The release the host's plugin contract is tested against: Unix sockets and
# the table-copy RPCs. Must be at least MINIMUM_PLUGIN_VERSIONS in
# src-tauri/src/plugins/force_install.rs; keep the web-e2e fixture in ci.yml
# on the same release.
PG_PLUGIN_VERSION: v1.0.0-rc.16

jobs:
test-postgres-plugin:
runs-on: blacksmith-4vcpu-ubuntu-2404

services:
postgres:
image: postgres:16
ports:
- 54320:54320
env:
POSTGRES_PASSWORD: password
POSTGRES_DB: testdb
# One port for TCP and for the socket file name (.s.PGSQL.54320).
PGPORT: "54320"
options: >-
--volume /tmp/tabularis-pg-socket:/var/run/postgresql
--health-cmd "pg_isready -U postgres -d testdb"
--health-interval 5s
--health-timeout 5s
--health-retries 20

steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable

- name: Cache cargo registry and build
uses: actions/cache@v6
with:
path: |
~/.cargo/registry
~/.cargo/git
src-tauri/target
key: ${{ runner.os }}-cargo-postgres-${{ hashFiles('src-tauri/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-postgres-

- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.1-dev libsoup-3.0-dev build-essential libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev postgresql-client

- name: Prepare Tauri frontend resource directory
run: mkdir -p packages/web-ui/dist

- name: Install the PostgreSQL plugin
run: |
plugin_dir="$RUNNER_TEMP/xdg/tabularis/plugins/drivers/postgresql"
mkdir -p "$plugin_dir"
base="https://github.com/TabularisDB/tabularis-postgresql-plugin/releases/download/${PG_PLUGIN_VERSION}"
curl -fsSL "$base/default.tabularium" -o "$plugin_dir/.tabularium"
curl -fsSL "$base/postgresql-plugin-linux-x64.zip" -o "$RUNNER_TEMP/pg-plugin.zip"
unzip -o "$RUNNER_TEMP/pg-plugin.zip" -d "$plugin_dir"
chmod +x "$plugin_dir/postgresql-plugin"
echo "XDG_DATA_HOME=$RUNNER_TEMP/xdg" >> "$GITHUB_ENV"
echo "TABULARIS_TEST_PG_PLUGIN_DIR=$plugin_dir" >> "$GITHUB_ENV"

- name: Verify PostgreSQL socket and TCP connections through the plugin
working-directory: src-tauri
env:
PG_UNIX_SOCKET: /tmp/tabularis-pg-socket
run: cargo test --test socket_integration postgresql_plugin_honors_unix_socket_path -- --ignored --exact

- name: Copy tables through the plugin
working-directory: src-tauri
env:
RUST_TEST_THREADS: "1"
TABULARIS_TEST_PSQL: psql postgresql://postgres:password@127.0.0.1:54320/testdb
run: cargo test --test postgres_plugin_table_copy -- --include-ignored
2 changes: 1 addition & 1 deletion docs/web/WEB_MANUAL_PARITY_AUDIT.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ The sign-off applies to the implementation and documented limitations at this ba
| Results/data grid | Shared grid editing, insertion, deletion, referenced records, and BLOB display/save continue through Tauri and native file selection. | The same record service is used over RPC; BLOB uploads, previews, and single-use downloads avoid exposing host paths. | Browser sandbox file semantics require opaque transfer tokens while database mutations remain identical. | Browser BLOB and result transfers retain explicit size limits and downloads depend on browser download handling. | `packages/web-ui/tests/components/ui/DataGrid.test.tsx`<br>`packages/web-ui/tests/api/contract/transportContract.ts`<br>`src-tauri/src/application/records_tests.rs` | Approved by Web UI parity reviewer on 2026-08-22 |
| Multiple result windows | Desktop keeps native secondary windows and Tauri route/event adapters for detached results and JSON views. | Browser mode opens an opaque session route in a tab and synchronizes through the shared route-session host. | A browser tab is the platform-equivalent independent surface and avoids reproducing native window management. | An in-memory detached session shows an explicit expired state after its owner is gone; popup blockers can require user action. | `packages/web-ui/tests/pages/SecondaryWindowPages.test.tsx`<br>`packages/web-ui/tests/platform/secondaryWindowSessions.test.ts`<br>`packages/web-ui/tests/platform/tauriCapabilities.test.ts` | Approved by Web UI parity reviewer on 2026-08-22 |
| ER/schema diagram | Desktop opens schema and ER diagrams in native secondary windows and saves through the native dialog. | Browser mode opens the same diagram component at an opaque route and downloads through a token or browser save. | Routes and downloads replace native window and filesystem primitives without changing diagram generation. | Browser tab and download behavior is subject to popup and download policies; no native always-on-top behavior is reproduced. | `packages/web-ui/tests/platform/secondaryWindowSessions.test.ts`<br>`packages/web-ui/tests/utils/schemaDiagram.test.ts`<br>`src-tauri/src/application/generic_exports_tests.rs` | Approved by Web UI parity reviewer on 2026-08-22 |
| Views/routines/triggers | Existing create, inspect, edit, refresh, and drop flows remain in the shared UI over Tauri commands. | Database-authorized RPC routes the same object commands to shared services. | Object DDL and metadata semantics are transport-independent. | Availability and exact DDL support remain driver-capability and database-version dependent, matching desktop behavior. | `packages/web-ui/tests/api/contract/transportContract.ts`<br>`src-tauri/src/transport/web/rpc_tests.rs`<br>`src-tauri/tests/postgres_integration/parity_tests.rs` | Approved by Web UI parity reviewer on 2026-08-22 |
| Views/routines/triggers | Existing create, inspect, edit, refresh, and drop flows remain in the shared UI over Tauri commands. | Database-authorized RPC routes the same object commands to shared services. | Object DDL and metadata semantics are transport-independent. | Availability and exact DDL support remain driver-capability and database-version dependent, matching desktop behavior. | `packages/web-ui/tests/api/contract/transportContract.ts`<br>`src-tauri/src/transport/web/rpc_tests.rs` | Approved by Web UI parity reviewer on 2026-08-22 |
| User management | Desktop user, grant, privilege, lock, password, create, and drop operations remain available for supporting drivers. | Sensitive database-authorized RPC exposes the same operations and shared validation. | There is no browser-specific workflow change, but authorization remains explicit because these operations are sensitive. | Feature availability follows driver support; current rich user-management behavior is primarily MySQL-oriented. | `packages/web-ui/tests/api/contract/transportContract.ts`<br>`src-tauri/src/transport/web/rpc_tests.rs`<br>`src-tauri/src/drivers/mysql/tests.rs` | Approved by Web UI parity reviewer on 2026-08-22 |
| Notebooks | Desktop notebook CRUD, execution, outline, charts, history, parameters, and import/export remain in the shared React implementation. | The same notebook format and services run over RPC; browser imports and exports use opaque transfers and downloads. | Browser file exchange is adapted while notebook content and execution stay identical. | Download location is browser-controlled and server-side notebook storage remains scoped to the Tabularis data directory. | `packages/web-ui/tests/api/contract/transportContract.ts`<br>`packages/web-ui/tests/utils/notebookTransfer.test.ts`<br>`src-tauri/src/application/notebooks/tests.rs` | Approved by Web UI parity reviewer on 2026-08-22 |
| Dump/import | Desktop jobs keep native file targets, cancellation, and progress through existing commands and events. | Browser uploads source SQL or archives, runs the same server-side jobs, receives scoped progress, and downloads generated dumps. | Opaque streaming transfers replace trusted native paths and preserve long-running job semantics. | Tool availability and database-specific dump fidelity depend on installed drivers or external utilities; transfer limits remain enforced. | `packages/web-ui/tests/api/contract/transportContract.ts`<br>`src-tauri/src/application/database_transfers_tests.rs`<br>`packages/web-ui/tests/utils/dumpUtils.test.ts` | Approved by Web UI parity reviewer on 2026-08-22 |
Expand Down
7 changes: 7 additions & 0 deletions docs/web/WEB_MODE_CONTAINERS.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,16 @@ The entrypoint translates these into `tabularis web` flags. Arguments after the
| `TABULARIS_PORT` | `8080` | Port inside the container. |
| `TABULARIS_HOST` | `0.0.0.0` | Bind address inside the container. |
| `TABULARIS_DEBUG` | `false` | Debug logging. |
| `TABULARIS_DISABLE_PLUGIN_AUTO_INSTALL` | `false` | Stops the server downloading the PostgreSQL plugin on start. See [PostgreSQL connections](#postgresql-connections). |

`TABULARIS_WEB_PASSWORD`, `TABULARIS_WEB_PROXY_SECRET` and `TABULARIS_SECRET_KEY` also accept a `_FILE` variant pointing at a Docker or Kubernetes secret file.

## PostgreSQL connections

PostgreSQL is provided by the standalone `postgresql` plugin, not by the server itself. When the server starts and a saved connection uses PostgreSQL (the old built-in `postgres` id, which is rewritten to `postgresql`, or `postgresql`), it installs and activates the plugin from the plugin registry in the background if it is missing. A failed download is logged and tried again on the next start, and the server starts either way.

For an air-gapped or locked-down host, set `TABULARIS_DISABLE_PLUGIN_AUTO_INSTALL=true` so the server never downloads anything on its own, and install the plugin yourself: place it under the plugins directory in `/data`, or install it from **Settings → Plugins** while the host can reach the registry. Until it is installed, PostgreSQL connections report `Unsupported driver: postgresql` with a note naming the plugin. The `--mcp` process behaves the same way, using the same environment variable.

## Stored credentials

Containers have no OS keychain. The image sets `TABULARIS_SECRET_STORE=file`, which keeps every secret the desktop app would put in the keychain (database and SSH passwords, connection URIs, plugin secrets, AI keys) in `/data/secrets.enc.json`, encrypted with AES-256-GCM under a key derived from `TABULARIS_SECRET_KEY` with Argon2id.
Expand Down
22 changes: 3 additions & 19 deletions e2e/helpers/navigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,30 +212,14 @@ export async function openMultiDbConnection(
// 1. Open the catalogue.
await clickAddConnection();

// 2. Pick the PostgreSQL card. Locally there are two (builtin "Deprecated" at
// [0] and plugin "Relational" at [1]); in CI the plugin may not be installed
// (only the builtin at [0]). Pick the non-deprecated one, or the only one.
// 2. Pick the PostgreSQL card. With the built-in driver removed, only the
// plugin card remains.
await browser.waitUntil(
async () => (await $$('button[aria-label="Connect to PostgreSQL"]')).length > 0,
{timeout: 20000, timeoutMsg: 'PostgreSQL catalogue card never rendered'},
);
const pgCards = await $$('button[aria-label="Connect to PostgreSQL"]');
// Pick the PLUGIN PostgreSQL card (not the builtin "Deprecated" one). The
// plugin supports list_databases for the multi-db nested feature. Both cards
// exist in CI (builtin "postgres" + plugin "postgresql"). Use WDIO's
// element.click() which reliably triggers React's onClick.
let targetIndex = 0;
if (pgCards.length > 1) {
// The plugin card is the one NOT containing "Deprecated" text.
const isDeprecated = await browser.execute(() =>
Array.from(document.querySelectorAll('button[aria-label="Connect to PostgreSQL"]')).map(
(c) => c.textContent?.includes('Deprecated') ?? false,
),
);
const idx = isDeprecated.findIndex((d: boolean) => !d);
targetIndex = idx >= 0 ? idx : 0;
}
await pgCards[targetIndex].click();
await pgCards[0].click();
await browser.pause(2000); // wait for the form to render

// 3. Fill the form via native input event dispatch (React controlled inputs).
Expand Down
2 changes: 1 addition & 1 deletion e2e/web/tests/web-ui-matrix.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const databaseFixtures: DatabaseFixture[] = [
{
name: 'postgres',
params: {
driver: 'postgres',
driver: 'postgresql',
host: process.env.TABULARIS_E2E_POSTGRES_HOST ?? '127.0.0.1',
port: Number.parseInt(process.env.TABULARIS_E2E_POSTGRES_PORT ?? '45432', 10),
username: process.env.TABULARIS_E2E_POSTGRES_USER ?? 'postgres',
Expand Down
Loading