This laravel extension adds support for doris and starrocks to the query builder and eloquent.
ptx/laravel-doris is a Laravel package for this laravel extension adds support for doris and starrocks to the query builder and eloquent..
It currently has 0 GitHub stars and 433 downloads on Packagist (latest version 3.0.7).
Install it with composer require ptx/laravel-doris.
Discover more Laravel packages by ptx
or browse all Laravel packages to compare alternatives.
Last updated
让drois和starrocks直接使用查询构造器和ORM
This laravel extension adds support for doris and starrocks to the query builder and eloquent.
另外有支持cte的版本请查看wukongdontskipschool/laravel-doris 暂未实现
There are also versions that support cte
mysqli
PDO
composer require "Ptx/laravel-doris":"3.0.2"
// config/database.php
// connections inside add
'doris' => [
'driver' => 'doris',
'url' => env('DORIS_DATABASE_URL'),
'host' => env('DORIS_DB_HOST', '127.0.0.1'),
'port' => env('DORIS_DB_PORT', '9030'),
'database' => env('DORIS_DB_DATABASE', 'forge'),
'username' => env('DORIS_DB_USERNAME', 'forge'),
'password' => env('DORIS_DB_PASSWORD', ''),
'charset' => env('DB_CHARSET', 'utf8mb4'),
'collation' => env('DB_COLLATION', 'utf8mb4_unicode_ci'),
'prefix' => env('DB_PREFIX', ''),
'strict' => env('DB_STRICT_MODE', true),
'options' => [
// 连接超时时间秒 Connection timeout time Second
PDO::ATTR_TIMEOUT => 3,
// 是否数值类型转字符串 Whether numeric type is converted to string
PDO::ATTR_EMULATE_PREPARES => false
]
],
// bootstrap/app.php
// add
$app->register(\Ptx\LaravelDoris\DatabaseServiceProvider::class);
insert() 是不会返回id,需要自己获取
It will not return the id, you need to get your own
delete() 影响的行数始终返回0
The number of rows affected always returns 0
cursor() 不是真的游标,doris还是会一次性全部返回
It's not a real cursor. doris will still return all at once
| Laravel | Package | |:--------|:--------| | 12.x | 3.0.x | | 11.x | unknown | | 10.x | 2.0.x | | 9.x | 2.0.x | | 8.x | 2.0.x | | 7.x | unknown | | 6.x | unknown | | 5.8 | unknown | | 5.5–5.7 | unknown |