Wallogit.com
2017 © Pedro Peláez
firebird using ibase laravel >= 5.1
This is a package for firebird laravel >=5.1 using ibase function and that not using pdo because numeric in pdo firebird return random number., (*1)
composer require dayatfadila7/firebirdclassic, (*2)
```"require": { ..... "dayatfadila7/firebirdclassic": "^1.0" ...... },, (*3)
Next, add your new provider to the providers array of config/app.php: ```'providers' => [ // ... FireBirdClassic\FirebirdClassicServiceProvider::class, // ... ],, (*4)
### How to use it, (*5)
first you must add IbaseQuery namespace use FireBirdClassic\Query\IbaseQuery; than create constructor :, (*6)
public function __construct() { $this->command = new IbaseQuery; }, (*7)
$this->command->execute($query);, (*8)
example: $query = "SELECT * FROM USER"; $this->command->execute($query);, (*9)
$this->command->create($table,$data); example : $data = ['USERNAME'=>'Sarah',['PASSWORD']=>'yourname']; $this->command->create('USER',$data);, (*10)
$this->command->update($>table, $data, $condition) example : $data = ['USERNAME'=>'Sarah',['PASSWORD']=>'yourname']; $condition = ['ID'=>1]; $this->command->update('USER',$data);, (*11)
$this->command->delete($table, $condition); example: $condition = ['ID'=>1]; $this->command->update('USER',$condition);, (*12)
$data and $codition is array. for execute sql create,update and delete you must run function execute. example : $command = $this->command->create('USER',$data); $this->command->execute($command);, (*13)