quarto-dev / quarto-dev/quarto

sql code cells feature

Open
#26 11 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

future vscode
Dominant language
TypeScript
Stars
645
Forks
62
Avg merge
17h 42m
Merged PRs (30d)
13

Description

Hello,
I am trying to reproduce some of my reports and one feature I fail to spot is the ability to create SQL code cells like in RMarkdown.
I thought that if quarto used knitr to produce views (and knitr supports creation of sql cells), then sql chunk would be an option, yet I struggle to recreate this kind of behavior. Is there a possibility to create sql scripts in this fashion?

{sql}
#| connection = con
SELECT 1 FROM test

Thanks!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing how Quarto handles code cells and how its knitr integration relates to the SQL chunk support mentioned in the issue. Determine whether a SQL cell can use a named connection such as con to execute a query like SELECT 1 FROM test, and document the supported behavior or the remaining implementation scope.

Written by the indexing model from the issue text.

Assessment

Tech stack
sql
Domain
databases
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.