jackfinal/hyperf-database-dm
Composer 安装命令:
composer require jackfinal/hyperf-database-dm
包简介
A dm driver for hyperf/database.
关键字:
README 文档
README
hyperf-database-dm
Hyperf-database-dm is an Dm Database Driver package for Hyperf. Hyperf-database-dm is an extension of Hyperf/Database that uses DM extension to communicate with Dm. Thanks to @yajra.
Documentations
- You will find user-friendly and updated documentation here: Hyperf-database-dm Docs
- All about dm and php:The Underground PHP and Dm Manual
Hyperf Version Compatibility
| Hyperf | Package |
|---|---|
| 3.1.x | 3.1.x |
Quick Installation
composer require jackfinal/hyperf-database-dm
Configuration (OPTIONAL)
You can set connection data in your
.envfiles:
DB_DRIVER=dm
DB_HOST=192.168.45.132
DB_PORT=5236
DB_USERNAME=jack
DB_PASSWORD=1234
Then run your hyperf installation...
NOTICE
You can use $table->identity($column, $start = 1, $step = 1) to relace $table->bigIncrements('id'); Increment ID (primary key).
Schema::create('users', function (Blueprint $table) {
$table->identity('id', 1, 1);
$table->primary('id');
$table->datetimes();
$table->softDeletes();
$table->comment('Table Comment');
$table->mediumText('description');
$table->string('name', 100);
$table->text('content');
});
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 15
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-06-21