mkrohn/laravel-odbc-informix
最新稳定版本:v2.4
Composer 安装命令:
composer require mkrohn/laravel-odbc-informix
包简介
ODBC informix specific integration for Laravel framework.
README 文档
README
This integration allows the use of odbc_* php function with Laravel framework instead of PDO.
It emulates PDO class used by Laravel.
This is a fork of the project abram/laravel-odbc, but customized for informix.
# How to install
composer require mkrohn/laravel-odbc-informixTo add source in your project
# Usage Instructions
It's very simple to configure:
1) Add database to database.php file
'odbc-connection-name' => [ 'driver' => 'odbc', 'dsn' => 'OdbcConnectionName', 'database' => 'DatabaseName', 'odbc' => true, 'host' => '127.0.0.1', 'username' => 'username', 'password' => 'password' 'options' => [ 'processor' => Mkrohn\Odbc\Informix\Query\Processors\InformixProcessor::class, 'grammar' => [ 'query' => Mkrohn\Odbc\Informix\Query\Grammars\InformixGrammar::class, 'schema' => Mkrohn\Odbc\Informix\Schema\Grammars\InformixGrammar::class ] ] ]
# Eloquent ORM
You can use Laravel, Eloquent ORM and other Illuminate's components as usual.
# Facade $books = DB::connection('odbc-connection-name')->table('books')->where...; # ORM $books = Book::where...->get();
统计信息
- 总下载量: 2.35k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-10-22