SQLite export suggests the database file's full path as the file name

未关闭 适合新手
#4,388 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
68/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
sqlite, swift
领域
desktop

调研方向

从导出工作流为无表或多表情况构建保存面板建议名称的地方开始 —— 也就是服务器连接回退到其数据库名称的同一处。当前代码显然是把 SQLite 文件的完整路径(或连接的显示路径)传入了文件名,而不是不带扩展名的最后一个路径组成部分;导出对话框的行标签也来自同一个字符串。将其裁剪为 shop 并追加该格式的扩展名,检查单表路径仍然使用表名,并通过在选中零个和多个表的情况下导出进行验证。

由索引模型根据 Issue 内容生成。

描述

bug platform-macos
What happened?

Exporting tables from a SQLite connection suggests the database file's full path as the file name. With /path/to/shop.sqlite open, the save panel's name field reads /path/to/shop.sqlite.csv. The export dialog also lists the database row under its full path.

It happens whenever the export does not start from exactly one table: no table or several tables selected in the sidebar. Every format is affected.

Steps to reproduce
  1. Open a SQLite file, for example /path/to/shop.sqlite.
  2. Make sure no table is selected in the sidebar.
  3. File > Export > Export Tables…, keep CSV, click Export.
  4. The save panel suggests /path/to/shop.sqlite.csv.
Expected behavior

A short name, the way a server database gets its database name: shop.csv.

Database type

SQLite

TablePro version

0.88.0-beta.2

Platform

macOS

主要语言
Swift
星标
6.2k
派生
412
平均合并
7 小时 38 分钟
30 天内合并 PR
536

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

TableProApp/TablePro 的其他 Issue

查看 TableProApp/TablePro 的全部 Issue

相似的 Issue

更多 Swift Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。