winkbrace/oracle
Composer 安装命令:
composer require winkbrace/oracle
包简介
Complete library for interacting with Oracle databases
README 文档
README
Installation
download this repository or install via composer. Put this line in your composer.json file.
require {
"winkbrace/oracle": "master-dev"
}
After running composer install -o edit the config.php file located in the root of this library with your database connection information.
Logging
You can enable the option to log each query in config.php. The QueryLogger implementation is currently defined in the bootstrap file.
Testing
If you want to run the test suite, first execute the sql script located at
tests/prepare_test_schema.sql
Make sure you create a _log folder inside the tests folder if that is missing. I keep the logs outside version control. The coverage report will be created in this folder at tests/_log/coverage/index.html
If you are running these tests on windows, make sure you have ansicon installed to see colored output.
To run all unit tests, there are two convenient helper batch files (on Windows only)
- unit.bat: run all tests and create html coverage report. (slow (4 secs))
- t.bat: run all tests except those in the @group database and without the coverage report (fast)
To run only 1 test set type for example:
t StatementTest.php
统计信息
- 总下载量: 19
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-03-19