Repository navigation
feat: Go + Wails backend, phase 1 (SQLite, PostgreSQL) - #42
Merged
Merged
Conversation
Start replacing the Rust/Tauri backend with Go on Wails v3, keeping the Svelte interface. src-tauri stays until the Go build reaches parity. - main.go: Wails app with a frameless window, embedded dist/ and the version from package.json. - internal/app: one bound method, Service.Invoke, answers the same command names and arguments as the Tauri commands, so api.ts and the dev mock are unchanged. - internal/profiles: reads and writes connections.json in the same folder, and saved passwords in the same credential store entries. - internal/drivers: SQLite (ncruces/go-sqlite3) and PostgreSQL (pgx, binary values decoded as in pg_value.rs), checked against the shared view and DDL fixtures. - src/lib/host.ts replaces the @tauri-apps imports: dialogs, window frame, events, opener. - Update checks only notify for now; the macOS menu is stubbed. - CI: Go tests against PostgreSQL 13 and 17, and a Windows app build. Refs #41
FabioHAraujo
marked this pull request as ready for review
December 4, 2026 23:51
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Phase 1 of the Go + Wails rewrite. The backend moves from Rust/Tauri to Go on Wails v3; the Svelte interface stays.
src-tauriis untouched and stays until the Go build reaches parity, so this PR stays a draft through the next phases.What's in
main.go): frameless Wails window,dist/embedded, version frompackage.json. The window starts hidden and is shown once the page paints, as today.internal/app): one bound method,Service.Invoke(command, args), answers the Tauri command names and named arguments, soapi.tsand the dev mock stay as they are. Errors keep the same{kind, message, code, position, detail, hint}shape.internal/profiles): sameconnections.jsonfolder, and same credential store entries (Windows Credential Manager target<id>.dev.lowbloat.lowquery, UTF-16 blob), so existing profiles and saved passwords keep working.ncruces/go-sqlite3, no cgo) and PostgreSQL (pgx/pgconn, binary values decoded as inpg_value.rs), both checked against the sharedview.fixtures.jsonandddl.fixtures.json.src/lib/host.ts) replaces every@tauri-appsimport: dialogs, window frame, events, opener, exit.gojob (gofmt, vet, tests against PostgreSQL 13 and 17) and ago-appjob that builds the Windows executable.Commands not ported yet (other engines, export/import, importers, MCP, AI setup) answer "not available in this build". Update checks only notify and open the releases page; the macOS native menu is stubbed.
Build times (Windows dev machine)
Testing
go test ./internal/...: SQLite (29 tests) and PostgreSQL (32 tests against a PostgreSQL 18 server; skipped withoutLQ_PG_*).svelte-check: 0 errors, 0 warnings.bun run build:app, 19.3 MB) starts and renders from embedded assets.Next phases
src-tauri.Closes #41