maxlcoder/laravel-dm8

1.0.12 2024-04-09 10:20 UTC

This package is auto-updated.

Last update: 2024-05-09 10:31:48 UTC


README

修改部分适配 Laravel

  1. 适配 InsertGetId
  2. 修复 DmBuilder 中 DmAutoIncrementHelper 引用
  3. 适配 withCount, 主要是 x_table as y 情况 前缀补充,原包,没有在 y 前面追加前缀,和 Laravel 不兼容
  4. 适配 cast json ,数组参数转 json 入库
  5. 兼容 mysql group_concat 函数,内部转化为 wm_concat 函数

Laravel-DM8

Laravel-DM8 is an Dm Database Driver package for Laravel. Laravel-DM8 is an extension of Illuminate/Database that uses DM8 extension to communicate with Dm. Thanks to @yajra.

Documentations

Laravel Version Compatibility

Laravel Package
5.1.x 5.1.x
5.2.x 5.2.x
5.3.x 5.3.x
5.4.x 5.4.x
5.5.x 5.5.x
5.6.x 5.6.x
5.7.x 5.7.x
5.8.x 5.8.x
6.x.x 6.x.x
7.x.x 7.x.x
8.x.x 8.x.x
9.x.x 9.x.x

Quick Installation

composer require maxlcoder/laravel-dm8

Service Provider (Optional on Laravel 5.5+)

Once Composer has installed or updated your packages you need to register Laravel-DM8. Open up config/app.php and find the providers key and add:

LaravelDm8\\Dm8\\Dm8ServiceProvider::class,

Configuration (OPTIONAL)

Finally you can optionally publish a configuration file by running the following Artisan command. If config file is not publish, the package will automatically use what is declared on your .env file database configuration.

php artisan vendor:publish --tag=dm

This will copy the configuration file to config/dm.php.

Then, you can set connection data in your .env files:

DB_CONNECTION=dm
DB_HOST=dm.host
DB_PORT=5236
DB_DATABASE=xe
DB_USERNAME=hr
DB_PASSWORD=hr
DB_CHARSET=UTF8

Then run your laravel installation...

License

The MIT License (MIT). Please see License File for more information.