Skip to content

v0.40.0 — Exports that load back

Latest

Choose a tag to compare

@github-actions github-actions released this 01 Dec 07:07
· 1 commit to main since this release
b12b1d0

This release makes exports and copies give back what your database stores, mostly through community fixes, and makes the Ask/SQL switch easy to find.

🙌 Thank you

  • @jayhemnani9910: four fixes to SQL exports. Mixed-case Postgres names and per-database quoting (#368), dates without quotes in CSV and Markdown (#373), MySQL backslashes (#378), and MySQL datetimes (#380). #368 was their first contribution.
  • @mateuscmtropical: DATE columns now show the stored day (#377), and Copy Selection As writes dates without quotes (#376). These were their first contributions.

Thank you both. More good first issues are open.

📤 Exports that load back

  • Prisma-style Postgres schemas export and restore (#368). Export database stopped with relation "public.post" does not exist on any table with capitals in its name, and the partial file would have restored with lowercased names. Names with capitals are now quoted. SQL exports also quote for the connection's database: backticks on MySQL, brackets on SQL Server.
  • MySQL SQL exports import cleanly. Backslashes are escaped, so C:\new\table, a trailing \, and JSON with quotes come back exactly (#378). DATETIME and TIMESTAMP values are written as 2024-01-15 10:00:00, the time the database stores. They used to be written in an ISO form that MySQL rejects, and outside UTC that time was shifted too (#380). A zero date (0000-00-00 00:00:00) is written as NULL.
  • Dates in CSV and Markdown exports have no quotes (#373). A timestamp used to land in a spreadsheet as """2026-01-15T10:30:00.000Z""".

📅 Dates show the stored day

  • DATE columns on Postgres and MySQL come back as YYYY-MM-DD (#377). They were turned into a timestamp at local midnight, so east of UTC the grid, exports, and copy showed the previous day, and west of UTC they showed a time the column doesn't have. Chart axes label the right day too.
  • Copy Selection As and single-cell copy write dates without quotes (#376), and find in results matches the same text.

💬 Ask or SQL, at a glance

  • The composer has an Ask / SQL switch (#379). Tab switches modes even when the input is empty, the placeholder and send button follow the mode, and when the mode was picked for you it says "Looks like SQL" or "Looks like a question". Escape leaves the composer. Tab no longer moves focus out of the composer; Shift+Tab still does.
  • Light mode is easier to read. Hints, key caps, placeholders, timestamps, and grid row numbers use full-strength muted text instead of faded greys. In Add Connection, the ClickHouse and SQLite icons show on a light background, and the selected database stands out.
  • Native scrollbars follow dark mode.

⚠️ Worth knowing

  • On Postgres, a cross-tab @ref to a result column with capitals now needs quotes, for example "authorId", the same as when you query the real table.
  • Time Machine snapshots taken before this release show DATE cells as changed once when compared with a new snapshot. New snapshots compare normally.

Free for personal use · MIT source · macOS / Windows / Linux · https://datapeek.dev

What's Changed

New Contributors

Full Changelog: v0.39.1...v0.40.0