snelg/cakephp-3-oracle
Composer 安装命令:
composer require snelg/cakephp-3-oracle
包简介
Oracle datasource for CakePHP 3
README 文档
README
This is an alpha version of an Oracle Datasource for CakePHP 3.0. Currently the only functionality is basic data reading; Inserting, deleting, and updating have only been tested minimally.
Installing via composer
Install into your project using composer. For existing applications you can add the following to your composer.json file:
"require": {
"snelg/cakephp-3-oracle": "~1.0"
}
And run php composer.phar update
Defining a connection
Sample connection info:
// in config/app.php 'Datasources' => [ // other datasources 'my_oracle_db' => [ 'className' => 'Cake\Database\Connection', 'driver' => 'Cake\Oracle\Driver\Oracle', /* 'host' => '', //Usually unused for Oracle connections */ 'username' => 'you know what goes here', 'password' => 'and here', 'database' => 'TNS entry name or full conn string, e.g. (DESCRIPTION=(ADDRESS_LIST=( [...] )))', 'schema' => 'SCHEMA_NAME', //The schema that owns the tables, not necessarily your login schema ], ]
If your data tables are owned by a different schema than your login user, then make sure you put the table-owning schema name in the "schema" field instead of your login schema.
If you want to access data from multiple schemas, then you do not need multiple datasources. Instead, you can specify the schema in a Table's "initialize" function:
class UsersTable extends Table { public function initialize(array $config) { $this->table('some_other_schema.users'); } }
snelg/cakephp-3-oracle 适用场景与选型建议
snelg/cakephp-3-oracle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.48k 次下载、GitHub Stars 达 11, 最近一次更新时间为 2015 年 07 月 14 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 snelg/cakephp-3-oracle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 snelg/cakephp-3-oracle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 1.48k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 12
- 点击次数: 16
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-07-14