Skip to content

SQL-S3 — SQLite Connection Form (SqliteConnectionForm) #200

Description

@ZhuchkaTriplesix

Epic: #194
Depends on: #198 (SQL-S1)
Source: docs/planned-0.4.5.md

Goal

Create the UI form for setting up a SQLite connection, including a native OS file picker and a "Read-Only" mode toggle.

Files

  • lib/shared/widgets/connection_forms/sqlite_connection_form.dart (new)

Implementation

  • Implement SqliteConnectionForm widget.
  • Integrate the native file picker via file_selector package to select .db, .sqlite, or .sqlite3 files.
  • Add a path text field (with manual edit capability) and a "Browse" button.
  • Add a "Read-Only" switch/checkbox (defaults to true for safety).
  • Add "Test Connection" and "Save" button actions.

Acceptance Criteria

  • Clicking "Browse" opens native file dialog on Linux, macOS, and Windows.
  • File selection populates the database path.
  • Read-only flag is properly passed to connection configuration.
  • "Test Connection" verifies connection status.
  • Code is clean and passes flutter analyze.

Metadata

Metadata

Labels

sqliteSQLite database driver and workspaceuiUser interface components and widgets

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions