jackfinal/hyperf-database-dm 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

Hyperf Version Compatibility

HyperfPackage
3.1.x3.1.x

Quick Installation

composer require jackfinal/hyperf-database-dm

Configuration (OPTIONAL)

You can set connection data in your .env files:

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-06-21