Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

DM DB driver for Hyperf 3 via DM

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

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 .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.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages