elektro-potkan/neplus-database
Composer 安装命令:
composer require elektro-potkan/neplus-database
包简介
NePlus Database - Custom modifications on top of Nette Database
关键字:
README 文档
README
Custom modifications on top of Nette Database.
Usage
// constructor is the same as of Nette\Database\Connection
$db = ElektroPotkan\NePlus\Database\ConnectionMySQL(
'mysql:host=localhost;dbname=mydb',
'user',
'password'
);
// query LOCK TABLES `myTable1` READ, `myTable2` WRITE
$db->lockTables([
'myTable1' => false,
'myTable2' => true,
]);
// query UNLOCK TABLES
$db->unlockTables();
Nette DI
To switch all database connections registered in DI Container
from Nette\Database\Connection to ElektroPotkan\NePlus\Database\ConnectionMySQL,
just use the bundled DI extension:
extensions:
- ElektroPotkan\NePlus\Bridges\Database\DI\DatabaseExtension
Author
Elektro-potkan git@elektro-potkan.cz
Info
Versioning
This project uses Semantic Versioning 2.0.0 (semver.org).
Branching
This project uses slightly modified Git-Flow Workflow and Branching Model:
- https://www.atlassian.com/git/tutorials/comparing-workflows/gitflow-workflow
- https://nvie.com/posts/a-successful-git-branching-model/
License
You may use this program under the terms of either the BSD Zero Clause License or the GNU General Public License (GPL) version 3 or later.
See file LICENSE.
统计信息
- 总下载量: 14
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: 0BSD
- 更新时间: 2021-10-06