Use [Composer] to install the package:
composer require tris/php-odbc-impala
Cloudera ODBC Driver for Impala
Laravel根目录下,config/app.php文件中providers添加Odbc\Impala\ImpalaServiceProvider::class
然后配置项aliases添加'Impala' => Odbc\Impala\Facades\Impala::class,
执行php artisan vendor:publish --provider="Odbc\Impala\ImpalaServiceProvider"
修改自己的配置文件config/impala.php中的DSN,USER等
use Odbc\Impala\Facades\Impala;
$sql = "show databases";
$res = Impala::execute($sql);
Please contact me if you have any questions
Email: [email protected]
All contents of this package are licensed under the [MIT license].