SQL notebooks with Markdown cells and saved results
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 5/5
- 預估耗時
- 一週以上
- 新手友好度
- 25/100
研究方向
Read features/query-results.mdx, features/sql-files.mdx, and features/query-parameters.mdx to understand the existing query, file, and parameter behavior. The issue defines the target as a Markdown notebook with three SQL cells, two Markdown cells, saved results, and ordered execution that stops at the first error. No implementation files or tests are named, so the first step is locating the notebook and query execution entry points.
由索引模型根據 Issue 內容生成。
描述
Problem
A query tab holds SQL text and a set of results. Each statement can run on its own from the gutter (#2278), every run gets its own result, and pinning keeps one while you try another (features/query-results.mdx:8-40). Two things are missing:
- Results are not kept. Saving a tab writes its SQL to the
.sqlfile and nothing else (features/sql-files.mdx:18-26), so reopening an investigation means running every query again. - Notes live in SQL comments. Nothing renders Markdown between queries.
An incident write-up, a runbook or a weekly report that mixes queries, explanations and results gets rebuilt by hand each time, or pasted cell by cell into another document with Copy as Markdown (features/data-grid.mdx:166). #2278 set real notebook cells aside as a separate document model and product decision; this issue is that decision.
Proposed solution
- A notebook is a Markdown file. Each fenced
sqlblock is a SQL cell and the text between blocks is a Markdown cell, so a notebook diffs cleanly in Git and reads on GitHub. - Each SQL cell shows its result grid, or its chart, beneath it, using the existing grid and row cap.
Cmd+Enterruns the cell; Run All and Run From Here run in order and stop at the first error. - A notebook runs on one connection, database and schema, shown in its header.
:namequery parameters set once at the top apply to every cell (features/query-parameters.mdx). - Save Results writes each cell's result below it as a Markdown table, capped at 100 rows, so a shared notebook shows what it showed. Clear Results removes them before a commit.
- Export to HTML and PDF.
- Notebooks open from Finder and
Cmd+O, and linked SQL folders list them beside.sqlfiles. - Safe Mode and the connection's policies apply to every cell as they do to a query tab.
Done when: a notebook with three SQL cells and two Markdown cells saves, reopens with its results, renders on GitHub, and Run All stops at a failing second cell without running the third.
Alternatives considered
Keep the queries in a .sql file and the notes and pasted results in a separate document.
Platform
macOS
Related database type
N/A / General
- 主要語言
- Swift
- 星號
- 6.2k
- 分支
- 412
- 平均合併
- 3 小時 56 分鐘
- 30 天內合併 PR
- 669
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
TableProApp/TablePro 的其他 Issue
-
Linux: Remember Password fails silently when there is no default keyring可能已有人在做 @datlechin 今天認領。 未關閉bug platform-linux
難度 2/5 1-3 小時 新手友好度 75/100
TableProApp/TablePro#4098 ·
維護者通常 1 天內回覆
-
bug platform-linux
難度 2/5 1-3 小時 新手友好度 35/100
TableProApp/TablePro#4101 ·
維護者通常 1 天內回覆
-
bug platform-linux
難度 4/5 3-5 天 新手友好度 48/100
TableProApp/TablePro#4099 · 3 則留言 ·
維護者通常 1 天內回覆
-
enhancement platform-macos
難度 5/5 一週以上 新手友好度 25/100
TableProApp/TablePro#4071 ·
維護者通常 1 天內回覆
-
enhancement platform-macos
難度 3/5 1-2 天 新手友好度 66/100
TableProApp/TablePro#4070 ·
維護者通常 1 天內回覆
查看 TableProApp/TablePro 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 83/100
OneBusAway/vehicle-positions#260 ·
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 85/100
eliasstravik/herdr-projects#789 · 1 則留言 ·
-
follow-up needs-triage S3: minor
難度 1/5 1-3 小時 新手友好度 85/100
manaflow-ai/cmux#38032 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 67/100
arkavo-org/ArkavoKit#70 ·
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 70/100
vorssaint/vorssaint-utils#3933 · 1 則留言 ·
維護者通常 2 天內回覆