auraphp/Aura.Sql
auraphp/Aura.Sql has 567 GitHub stars and 103 forks. GitHot measured 0 stars in 24 hours and +1 in 7 days. Last checked 2026-11-12 23:14 UTC. Last push 2026-09-29.
实测星标增长
- 24小时
- 0
- 7天
- +1
- 15天
- 更新延迟
- 1个月
- 更新延迟
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
关于
SQL database access through PDO.
数据README.md
原文Aura.Sql
Provides an extension to the native PDO along with a profiler and connection locator. Because ExtendedPdo is an extension of the native PDO, code already using the native PDO or typehinted to the native PDO can use ExtendedPdo without any changes.
Added functionality in Aura.Sql over the native PDO includes:
Lazy connection. ExtendedPdo connects to the database only on method calls that require a connection. This means you can create an instance and not incur the cost of a connection if you never make a query.
Decoration. DecoratedPdo can be used to decorate an existing PDO instance. This means that a PDO instance can be "extended" at runtime to provide the ExtendedPdo behaviors.
Array quoting. The
quote()method will accept an array as input, and return a string of comma-separated quoted values.New
perform()method. Theperform()method acts just likequery(), but binds values to a prepared statement as part of the call. In addition, placeholders that represent array values will be replaced with comma- separated quoted values. This means you can bind an array of values to a placeholder used with anIN (...)condition when usingperform().New
fetch*()methods. The newfetch*()methods provide for commonly-used fetch actions. For example, you can callfetchAll()directly on the instance instead of having to prepare a statement, bind values, execute, and then fetch from the prepared statement. All of thefetch*()methods take an array of values to bind to to the query statement, and use the newperform()method internally.New
yield*()methods. These are complements to thefetch*()methods thatyieldresults instead ofreturning them.Exceptions by default. ExtendedPdo starts in the
ERRMODE_EXCEPTIONmode for error reporting instead of theERRMODE_SILENTmode.Profiler. An optional query profiler is provided, along with an interface for other implementations, that logs to any PSR-3 interface.
Connection locator. A optional lazy-loading service locator is provided for picking different database connections (default, read, and write).
Installation and Autoloading
This package is installable and PSR-4 autoloadable via Composer as aura/sql.
Alternatively, download a release, or clone this repository, then map the
Aura\Sql\ namespace to the package src/ directory.
Dependencies
Version 6.x is compatible with PHP 8.4 and above. If you're running PHP 8.1-8.3, please use version 5.x. We recommend using the latest available version of PHP as a matter of principle.
Aura library packages may sometimes depend on external interfaces, but never on external implementations. This allows compliance with community standards without compromising flexibility. For specifics, please examine the package composer.json file.
Quality
This project adheres to Semantic Versioning.
To run the unit tests at the command line, issue composer install and then
./vendor/bin/phpunit at the package root. (This requires Composer to be
available as composer.)
This package attempts to comply with PSR-1, PSR-2, and PSR-4. If you notice compliance oversights, please send a patch via pull request.
Community
To ask questions, provide feedback, or otherwise communicate with other Aura users, please join our Google Group, follow @auraphp, or chat with us on Freenode in the #auraphp channel.
Documentation
This package is fully documented here.
探索相关项目
Asabeneh/30-Days-Of-Python
30 Days of Python 编程挑战是一份循序渐进的指南,用于在 30 天内学习 Python 编程语言。这项挑战可能需要超过 100 天。请按自己的节奏进行。这些视频或许也有帮助:https://www.youtube.com/channel/UC7PNRuno1rzYPb1xLa4yktw
78,673 星标grafana/grafana
开放且可组合的可观测性与数据可视化平台。可对来自 Prometheus、Loki、Elasticsearch、InfluxDB、Postgres 等众多数据源的指标、日志和追踪进行可视化。
77,876 星标redis/redis
对于正在构建实时数据驱动应用的开发者而言,Redis 是首选、速度最快且功能最丰富的缓存、数据结构服务器和文档与向量查询引擎。
77,485 星标apache/superset
Apache Superset 是一个数据可视化与数据探索平台
75,509 星标