coatless / quarto-webr

Quarto Extension to Embed webR for HTML Documents, RevealJS, Websites, Blogs, and Books.

Home Page:https://quarto-webr.thecoatlessprofessor.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature]: interactive sql code block

eitsupi opened this issue · comments

Feature Description

Thank you for working on this wonderful extension.

Since duckdb seems to work quite well, I thought it would be great if we could implement an interactive SQL code block.
It is easier to define tables (data frames) in R compared to SQL, so it would be useful to prepare data on the R side and execute the query in SQL side.

Hi @eitsupi, we're likely going to move to having some level of support for DBI-compliant packages that likely follows the usual Quarto approach:

```{webr-sql}
--| connection: db

SELECT * FROM "hello";
```

This is a longer-term feature.