Support PRQL

未关闭
#1,150 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
28/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
rust, sql
领域
backend, database

调研方向

Start by reading SQLPage’s query execution and run_sql implementation to understand how SQL statements are handled. Then investigate how PRQL could fit into query execution while preserving direct SQL for database writes; the issue does not identify specific files or tests. Done would mean an agreed integration design and PRQL support for queries without losing existing write support.

由索引模型根据 Issue 内容生成。

描述

enhancement

SQLPage is awesome!
I'm currently building larger and larger (internal) applications with it, but with increasing project size SQLPage's limitations become more and more apparent.

The main pain points for me are keeping things DRY and code organization.
While the run_sql function helps somewhat it's clunky and a bit limited as the only real vehicle for factoring out code.

Therefore I'd like to propose adding support for PRQL as a layer on top of (the query side of) SQL.

PRQL looks like a great complement/addition to SQLPage!
Apart from a more modern, concise and easier to read query syntax it also provides things like custom functions, a much richer "standard library" of predefined functions and -- hopefully soon -- a module system, which will allow importing declarations from other files with proper namespacing.

The only "problem" that SQLPage would have to work around is that PRQL is currently only focused on the query side of things and doesn’t plan on supporting writing to the database. So, we'd still need support for writing SQL directly for all the "non-SELECT" parts of the language.
I haven't really thought through how this might be achieved best.

But to me it looks like PRQL is something that SQLPage could definitely benefit from!

主要语言
Rust
星标
2.6k
派生
175
平均合并
14 小时 16 分钟
30 天内合并 PR
43

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

sqlpage/SQLPage 的其他 Issue

查看 sqlpage/SQLPage 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。