jacquestvanzuydam / laravel-firebird

Firebird Illuminate package for Laravel 5
63 stars 93 forks source link

add compileInsertGetId and processInsertGetId method #15

Open donnykurnia opened 8 years ago

donnykurnia commented 8 years ago

taken from PostgresGrammar and PostgresProcessor classes as-is

I've check it in my project using php artisan tinker and it's working well PS: this library need tests to make sure all methods working well

Signed-off-by: Donny Kurnia donnykurnia@gmail.com

donnykurnia commented 8 years ago

PS: This approach assume that the tables already have generator and trigger set for the id column.

cedamorim commented 8 years ago

nice approach, assuming that the tables that are using generator / sequence will be with trigger, I think this solves our problems

jessesantos commented 8 years ago

It works for Laravel 5.2?

donnykurnia commented 8 years ago

@jessesantos my fork only tested for laravel 5.1, because my project still use it for now.

johanWP commented 7 years ago

Does it work with PHP7?