PDO\SQLite: Add support for getting raw SQL query (same as SQLite3::getSQL)
未关闭
还没有人认领这个 Issue。
Extension: pdo_sqlite
Feature
Status: Needs Triage
- 主要语言
- C
- 星标
- 40.4k
- 派生
- 8.2k
- 平均合并
- 2 天 13 小时
- 30 天内合并 PR
- 96
描述
Description
SQLite3 class supports fetching the raw SQL query as a string from the statement:
SQLite3Stmt::getSQL(bool $expand = false)
Adding an attribute to fetch the same for PDO\SQLite would be nice, eg.:
PDOStatement::getAttribute(PDO\SQLite::ATTR_SQL_STATEMENT)
PDOStatement::getAttribute(PDO\SQLite::ATTR_SQL_EXPANDED_STATEMENT)
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先,将 SQLite3Stmt::getSQL(bool $expand = false) 与 PDO\SQLite 的语句属性处理方式以及现有的 PDOStatement API 进行比较。跟踪原始 SQL 和展开后的 SQL 将如何暴露,然后验证所请求的两个属性对于 PDO\SQLite 语句返回相应的值。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- c, php, sqlite
- 领域
- databases
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100