SQL notebooks with Markdown cells and saved results
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- Swift
- Star
- 6.2k
- Fork
- 412
- Merge trung bình
- 3 giờ 56 phút
- Pull request đã merge (30 ngày)
- 669
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của TableProApp/TablePro
-
Linux: Remember Password fails silently when there is no default keyringCó thể đã có người làm @datlechin đã nhận hôm nay. Đang mởbug platform-linux
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
TableProApp/TablePro#4098 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug platform-linux
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
TableProApp/TablePro#4101 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug platform-linux
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
TableProApp/TablePro#4099 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement platform-macos
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
TableProApp/TablePro#4071 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement platform-macos
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 66/100
TableProApp/TablePro#4070 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của TableProApp/TablePro
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
OneBusAway/vehicle-positions#260 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
eliasstravik/herdr-projects#789 · 1 bình luận ·
-
follow-up needs-triage S3: minor
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 85/100
manaflow-ai/cmux#38032 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
arkavo-org/ArkavoKit#70 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
vorssaint/vorssaint-utils#3933 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày