Skip to content

docs: adding documentation about sql-blocks - #84

Merged
jamesbhobbs merged 8 commits into
filipzitny/mar-344-write-new-oss-docs-vscode-extensionfrom
filipzitny/mar-344-write-new-oss-docs-sql-blocks
Oct 31, 2025
Merged

jamesbhobbs merged 8 commits into
filipzitny/mar-344-write-new-oss-docs-vscode-extensionfrom
filipzitny/mar-344-write-new-oss-docs-sql-blocks

Conversation

@Yggdrasill501

@Yggdrasill501 Yggdrasill501 commented Oct 31, 2025 •

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • Documentation
    • Added comprehensive documentation for SQL blocks: concepts, block structure and metadata, Python code generation patterns, DataFrame vs QueryPreview behaviors, integration with code blocks, parameterized queries, result handling, environment variable conventions, and local execution prerequisites.
  • Chores
    • Expanded spell-check dictionary with common SQL/Python terms (e.g., groupby, tolist).

@linear

linear Bot commented Oct 31, 2025

Copy link
Copy Markdown

@Yggdrasill501 Yggdrasill501 self-assigned this Oct 31, 2025
@coderabbitai

coderabbitai Bot commented Oct 31, 2025 •

Copy link
Copy Markdown
Contributor

Warning

Rate limit exceeded

@jamesbhobbs has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 0 minutes and 3 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between e548394 and 18e25b9.

📒 Files selected for processing (1)
  • cspell.json (1 hunks)
📝 Walkthrough

Walkthrough

Adds docs/sql-blocks.md documenting SQL blocks: concepts, structure, required and optional metadata fields, generated Python code for variable-assigned and non-assigned SQL blocks, DataFrame vs QueryPreview behaviors, common use cases, result handling, integration with code blocks, environment variable conventions, and local execution prerequisites. Also updates cspell.json word list with "groupby" and "tolist". No code or public API changes.

Possibly related PRs

Suggested reviewers

  • saltenasl
  • Artmann

Pre-merge checks

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed The PR title "docs: adding documentation about sql-blocks" directly and clearly reflects the primary change: the addition of a comprehensive documentation file for SQL blocks. The title is specific, uses conventional commit formatting with the "docs:" prefix, and accurately summarizes the main changeset objective without vagueness. The secondary change to cspell.json serves as a supporting modification to the documentation effort rather than a separate concern, so the title appropriately focuses on the primary deliverable.

Comment @coderabbitai help to get the list of available commands and usage tips.

@codecov

codecov Bot commented Oct 31, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.11%. Comparing base (18ccff9) to head (18e25b9).
⚠️ Report is 1 commits behind head on filipzitny/mar-344-write-new-oss-docs-vscode-extension.

Additional details and impacted files
@@                                   Coverage Diff                                   @@
##           filipzitny/mar-344-write-new-oss-docs-vscode-extension      #84   +/-   ##
=======================================================================================
  Coverage                                                   92.11%   92.11%           
=======================================================================================
  Files                                                          20       20           
  Lines                                                         431      431           
  Branches                                                      116      119    +3     
=======================================================================================
  Hits                                                          397      397           
  Misses                                                         34       34           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 2

📜 Review details

Configuration used: CodeRabbit UI

Review profile: ASSERTIVE

Plan: Pro

Disabled knowledge base sources:

  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 932652e and 0b40156.

📒 Files selected for processing (1)
  • docs/sql-blocks.md (1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
**/*.{md,yml,yaml}

📄 CodeRabbit inference engine (CLAUDE.md)

Use Prettier formatting for Markdown and YAML files

Files:

  • docs/sql-blocks.md
🪛 markdownlint-cli2 (0.18.1)
docs/sql-blocks.md

316-316: Fenced code blocks should have a language specified

(MD040, fenced-code-language)


364-364: Fenced code blocks should be surrounded by blank lines

(MD031, blanks-around-fences)

Comment thread docs/sql-blocks.md Resolved
Comment thread docs/sql-blocks.md Resolved
@Yggdrasill501
Yggdrasill501 force-pushed the filipzitny/mar-344-write-new-oss-docs-sql-blocks branch from 0b40156 to 7c678ef Compare October 31, 2025 16:58
@Yggdrasill501
Yggdrasill501 force-pushed the filipzitny/mar-344-write-new-oss-docs-sql-blocks branch from 7c678ef to 7649f04 Compare October 31, 2025 18:19
@jamesbhobbs
jamesbhobbs changed the base branch from main to docs-updates October 31, 2025 19:58

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI

Review profile: ASSERTIVE

Plan: Pro

Disabled knowledge base sources:

  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 0b40156 and e548394.

📒 Files selected for processing (2)
  • cspell.json (1 hunks)
  • docs/sql-blocks.md (1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
**/*.{md,yml,yaml}

📄 CodeRabbit inference engine (CLAUDE.md)

Use Prettier formatting for Markdown and YAML files

Files:

  • docs/sql-blocks.md
🪛 markdownlint-cli2 (0.18.1)
docs/sql-blocks.md

364-364: Fenced code blocks should be surrounded by blank lines

(MD031, blanks-around-fences)

🔇 Additional comments (2)
cspell.json (1)

75-77: Spellcheck additions support new documentation terms.

Adding groupby and tolist to the dictionary aligns with pandas method usage in the SQL blocks documentation.

docs/sql-blocks.md (1)

1-366: Comprehensive and well-structured SQL blocks documentation.

Excellent coverage of concepts, metadata fields, code generation, use cases, result handling, and local execution. Technical accuracy is solid, examples are realistic, and the content flows logically. Table comparison of DataFrame vs QueryPreview is particularly helpful.

Comment thread docs/sql-blocks.md
Comment on lines +363 to +366
3. **Environment variables** set with connection details:
```bash
export SQL_POSTGRES_PROD='{"host":"localhost","port":5432,...}'
```

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Add blank line before code block to comply with Markdown formatting.

Line 364 list item requires a blank line before the code block fence at line 365 per MD031 (blanks-around-fences) and Prettier standards, even when the block is indented within a list.

 3. **Environment variables** set with connection details:
+
    ```bash
    export SQL_POSTGRES_PROD='{"host":"localhost","port":5432,...}'
    ```
🧰 Tools
🪛 markdownlint-cli2 (0.18.1)

364-364: Fenced code blocks should be surrounded by blank lines

(MD031, blanks-around-fences)

🤖 Prompt for AI Agents
In docs/sql-blocks.md around lines 363 to 366, the fenced code block inside the
list item needs a blank line before the opening ``` to comply with MD031 and
Prettier; insert a single blank line between the list text ("3. **Environment
variables** set with connection details:") and the indented code fence so the
block remains indented within the list but is separated by one empty line.

Comment thread cspell.json Resolved
@jamesbhobbs
jamesbhobbs changed the base branch from docs-updates to filipzitny/mar-344-write-new-oss-docs-vscode-extension October 31, 2025 21:28
… into filipzitny/mar-344-write-new-oss-docs-sql-blocks
@jamesbhobbs

Copy link
Copy Markdown
Member

AFAIK this is only relevant in the VSCode docs, so merging into that PR for consideration together.

@jamesbhobbs
jamesbhobbs marked this pull request as ready for review October 31, 2025 21:29
@jamesbhobbs
jamesbhobbs requested a review from a team as a code owner October 31, 2025 21:29
@jamesbhobbs
jamesbhobbs merged commit c923b30 into filipzitny/mar-344-write-new-oss-docs-vscode-extension Oct 31, 2025
@jamesbhobbs
jamesbhobbs deleted the filipzitny/mar-344-write-new-oss-docs-sql-blocks branch October 31, 2025 21:29
jamesbhobbs added a commit that referenced this pull request Nov 3, 2025
* docs: wiriting docs about vscode extension

* chore: adding venv and reexecuted to cspell

* docs: conent update

* chore: fix checks

* docs: adding documentation about sql-blocks (#84)

* docs: adding documentation about sql-blocks

* chore: adding groupby and tolist into cspell

* docs: adding code block type into md

* chore: fix checks

---------

Co-authored-by: James Hobbs <15235276+jamesbhobbs@users.noreply.github.com>

* chore: rm dupe line

* docs: cut blocks add curosr and windsurf

* docs: del docs on sql blocks, more suitable for general comparison table than oss docs

* docs: fix links to extensions

* docs: fix all issues raised in cr

* docs: shortcuts that are validated to fully work

---------

Co-authored-by: James Hobbs <15235276+jamesbhobbs@users.noreply.github.com>
Co-authored-by: James Hobbs <bjhobbs06@gmail.com>
jamesbhobbs added a commit that referenced this pull request Nov 3, 2025
* docs: fix punctuation

* docs: adding documentation about converting notebook (#78)

* docs: adding doc about converting notebook

* docs: adding doc about converting notebook

* docs: update

* docs: update of content and add example of programatic usage

* docs: update conversion

* Rename convert-programaticaly.md to convert-programmatically.md

* Fix typo in link to converter examples

* docs: update after converting

* docs: update

* docs: clarify sentence's scope ambiguity

* docs: add link to the package

* docs: fix links

* docs: call docs docs, examples would be runnable code

* docs: correct new link

---------

Co-authored-by: James Hobbs <15235276+jamesbhobbs@users.noreply.github.com>
Co-authored-by: James Hobbs <bjhobbs06@gmail.com>

* docs: adding documentation about migrating to ipynb (#82)

* docs: adding documentation about migrating to ipynb

* chore: adding kernelspec nbconvert papermill and Jupytext

* docs: replace link with documentation link

* docs: .d 2 .i

---------

Co-authored-by: James Hobbs <15235276+jamesbhobbs@users.noreply.github.com>
Co-authored-by: James Hobbs <bjhobbs06@gmail.com>

* docs: adding documentation about local set-up (#81)

* docs: adding documentation about local set-up

* docs: fix duplicate links

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* chore: adding words into cspell

* docs: fix with prittier

* docs: update table with comparison features

* chore: fix checks

* docs: update vsc v

* docs: add cursor

* docs: we do way more than initially claimed here

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: James Hobbs <15235276+jamesbhobbs@users.noreply.github.com>
Co-authored-by: James Hobbs <bjhobbs06@gmail.com>

* docs: adding documentation about deepnote format (#79)

* docs: adding documentation about deepnote format

* chore: adding kernelspec to cspell

* docs: adding documentation about organizing notebook into projects (#83)

* docs: adding documentation about organizing notebook into projects

* chore: adding isnull dropna and pyplot to cspell

---------

Co-authored-by: James Hobbs <15235276+jamesbhobbs@users.noreply.github.com>

* chore: fix checks

* docs: rm duplicative content

---------

Co-authored-by: James Hobbs <15235276+jamesbhobbs@users.noreply.github.com>
Co-authored-by: James Hobbs <bjhobbs06@gmail.com>

* docs: fix typo

Co-authored-by: Dino Hamzić <dino@subtlebits.com>

* docs: delete redundant line

Co-authored-by: Dino Hamzić <dino@subtlebits.com>

* docs: simplify toolkit inst

* docs: clarify loc of export

Co-authored-by: Dino Hamzić <dino@subtlebits.com>

* docs: clarify conversion

Co-authored-by: Dino Hamzić <dino@subtlebits.com>

* docs: rm add sec

* docs: fix heading heirarchy

* docs: fix heading heirarchy 2

* chore: lint fix

* docs: how to open deepnote file instructions

* docs: colon

* docs: point to other doc rather than repeat

* docs: adding documentation about running deepnote in jupyterlab (#80)

* docs: adding documentation about deepnote format

* docs: adding documentation about running deepnote in jupyterlab

* chore: adding kernelspec to cspell

* chore: adding ipywidgets into cspell

* docs: fix grammar

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* docs: adding link about migrating to ipynb

* docs: adding documentation about organizing notebook into projects (#83)

* docs: adding documentation about organizing notebook into projects

* chore: adding isnull dropna and pyplot to cspell

---------

Co-authored-by: James Hobbs <15235276+jamesbhobbs@users.noreply.github.com>

* chore: fix checks

* docs: updates

* chore: lint

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: James Hobbs <15235276+jamesbhobbs@users.noreply.github.com>
Co-authored-by: James Hobbs <bjhobbs06@gmail.com>
Co-authored-by: dinohamzic <dino@subtlebits.com>

* docs: writing docs about vs-code extension (#85)

* docs: wiriting docs about vscode extension

* chore: adding venv and reexecuted to cspell

* docs: conent update

* chore: fix checks

* docs: adding documentation about sql-blocks (#84)

* docs: adding documentation about sql-blocks

* chore: adding groupby and tolist into cspell

* docs: adding code block type into md

* chore: fix checks

---------

Co-authored-by: James Hobbs <15235276+jamesbhobbs@users.noreply.github.com>

* chore: rm dupe line

* docs: cut blocks add curosr and windsurf

* docs: del docs on sql blocks, more suitable for general comparison table than oss docs

* docs: fix links to extensions

* docs: fix all issues raised in cr

* docs: shortcuts that are validated to fully work

---------

Co-authored-by: James Hobbs <15235276+jamesbhobbs@users.noreply.github.com>
Co-authored-by: James Hobbs <bjhobbs06@gmail.com>

* docs: fix link

Co-authored-by: Dino Hamzić <dino@subtlebits.com>

* docs: fix link 2

Co-authored-by: Dino Hamzić <dino@subtlebits.com>

* docs: fix link 3

Co-authored-by: Dino Hamzić <dino@subtlebits.com>

* docs: fix link 4

Co-authored-by: Dino Hamzić <dino@subtlebits.com>

* docs: venv through ui only

---------

Co-authored-by: Filip Zitny <88278380+Yggdrasill501@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Dino Hamzić <dino@subtlebits.com>
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.

2 participants