Skip to content

Dev#36

Merged
ZhuchkaTriplesix merged 24 commits intomainfrom
dev
Apr 24, 2026
Merged

Dev#36
ZhuchkaTriplesix merged 24 commits intomainfrom
dev

Conversation

@ZhuchkaTriplesix
Copy link
Copy Markdown
Member

Added

  • SQL result export — from the PostgreSQL / MySQL Data Output grid: Copy as CSV, Save as CSV…, Copy as JSON, Save as JSON… (native save dialog via file_selector on Linux, macOS, and Windows).
  • SQL query history — successful statements are stored in local SQLite (per saved connection and database bucket); History in the SQL toolbar opens a recall dialog; Edit → Preferences adds Query history limit (25–500 entries, oldest trimmed automatically).
  • PostgreSQLpostgres_object_workspace.dart builds object views from the sidebar tree (logic moved out of workspace_panel for clarity).
  • Documentation — contributing notes, product roadmap, macOS signing track; README structure refresh.
  • Tests — MySQL SQL workspace home, driver manager, and preferences dialog widget coverage; storage tests for query history and export encoding.

Changed

  • Connections sidebarconnections_panel split into part libraries for easier maintenance (behavior preserved).
  • CI / release — Flutter toolchain pinned to 3.41.6 for analyze, tests, and release builds.
  • PostgreSQL — workspace — a selected table, view, or other object opens full width; Server / SQL tabs show only when no object is selected for that connection. Open in SQL still seeds the editor from the current browse context; the SQL toolbar DB: line follows the tree catalog when a seed is applied.
  • PostgreSQL — shared browse query helper (postgresBrowseSelectSql) and default page size (kPostgresBrowseDefaultRowLimit) align the data grid with the SQL editor template.
  • MySQL — comparing the table browse query to the mini-editor SQL ignores trailing semicolons and normalizes whitespace; hint text clarifies that Run reloads from the server even when rows look unchanged.

Fixed

  • PostgreSQL — Open in SQL — the context menu seeds the editor from the row you right-clicked (database, schema, table/view/matview name). Previously the app used only the last left-click selection, so the query could target the wrong table.

Extract sidebar, Redis, Mongo, Postgres connection tile, MySQL, and PG tree
widgets into part libraries. Behavior unchanged; easier navigation and review.
Widget tests for tab shell and SQL chrome, built-in drivers copy, and
preferences title. Large surface size avoids driver manager layout overflow.
Aligns CI with current stable used for local development.
Add CONTRIBUTING (Flutter pin, ulimit, tags vs commits). Add roadmap and
macOS signing checklist. Update project structure table and release checklist.
Add RFC 4180-style field escaping, row padding to column count, and unit tests.
Registers desktop implementations for Linux, macOS, and Windows.
Wire ResultsTab toolbar: clipboard copy and native save dialog via file_selector.
Use Column + Expanded so the grid fills remaining height.
Add columns/rows JSON payload, save dialog, clipboard action in ResultsTab, and tests.
Introduce sql_query_history table (v6), FK cascade, record/list/trim APIs,
per-database bucket clear helper, and unit tests.
Add AppSettings key, Preferences dropdown (25–500 presets), and tests.
Add History toolbar action, modal recall dialog with clear-bucket action,
and persist successful executes using the configured cap.
Silence dangling_library_doc_comments and prefer_const_constructors.
Use bounded dialog size from MediaQuery, Expanded list area, and safer
text constraints to avoid overflow stripes.
Wrap controls in Expanded and use isExpanded on the dropdown.
Update CHANGELOG for export, query history, and tooling since 0.1.3.
Add kPostgresBrowseDefaultRowLimit and postgresBrowseSelectSql() for
consistent LIMIT/OFFSET browse queries. PostgresTableView uses the
shared constant for its default page size.
Compare browse queries ignoring trailing semicolons and whitespace so
Reset/Run matches the grid SQL. Extend PG/MySQL mini-editor hint text.
Extract buildPostgresObjectWorkspace; show table/routine views full-width
again with stats+SQL only when no tree object is selected. SQL workspace
uses tree database for session when opening from a grid object; optional
explicit seed parameters for context-menu Open in SQL (wired next).
Workspace state tracks postgresSqlEditorContext for template + history.
Add OnPostgresOpenSqlWorkspace with optional database/schema/name/kind.
Table, view, and matview rows pass their identity so SQL seeds match
the menu target without a prior left-click. MySQL tree wraps the legacy
callback to satisfy the shared _PgTreeRow signature.
Document PostgreSQL workspace/Open-in-SQL fixes, shared browse SQL helper,
and MySQL browse comparison; set pubspec to 0.2.1+1 for tagging.
Fold PostgreSQL workspace / Open-in-SQL / browse-SQL items into [0.2.0];
remove the separate 0.2.1 section. Bump build number for binaries.
@ZhuchkaTriplesix ZhuchkaTriplesix self-assigned this Apr 24, 2026
Copy link
Copy Markdown
Member Author

@ZhuchkaTriplesix ZhuchkaTriplesix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Пиво льется через край, в Querya базу подключай!

@ZhuchkaTriplesix ZhuchkaTriplesix merged commit 1aa243b into main Apr 24, 2026
6 checks passed
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.

1 participant