-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #45 from efcor/master
Update for laravel 6
- Loading branch information
Showing
12 changed files
with
131 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,20 @@ | ||
language: php | ||
|
||
php: | ||
- 5.6 | ||
- 7.0 | ||
- 7.1 | ||
- 7.2 | ||
- 7.3 | ||
- 7.4 | ||
|
||
env: | ||
global: | ||
- setup=basic | ||
|
||
matrix: | ||
fast_finish: true | ||
include: | ||
- php: 5.6 | ||
env: setup=lowest | ||
- php: 5.6 | ||
env: setup=stable | ||
|
||
sudo: false | ||
|
||
install: | ||
- if [[ $setup = 'basic' ]]; then travis_retry composer install --no-interaction --prefer-dist --no-suggest; fi | ||
- if [[ $setup = 'stable' ]]; then travis_retry composer update --prefer-dist --no-interaction --prefer-stable --no-suggest; fi | ||
- if [[ $setup = 'lowest' ]]; then travis_retry composer update --prefer-dist --no-interaction --prefer-lowest --prefer-stable --no-suggest; fi | ||
|
||
script: vendor/bin/phpunit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,29 @@ | ||
{ | ||
"name": "jfelder/oracledb", | ||
"description": "Oracle DB driver for Laravel 5", | ||
"keywords": ["oracle", "laravel", "laravel 5", "pdo_oci", "oci8"], | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Jimmy Felder", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"require": { | ||
"php": ">=5.6.4", | ||
"illuminate/support": "5.4.*", | ||
"illuminate/database": "5.4.*", | ||
"illuminate/pagination": "5.4.*" | ||
}, | ||
"require-dev": { | ||
"fzaninotto/faker": "~1.4", | ||
"mockery/mockery": "~0.9.4", | ||
"phpunit/phpunit": "~4.0", | ||
"phpspec/phpspec": "~2.1" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Jfelder\\": "src/Jfelder" | ||
"name": "jfelder/oracledb", | ||
"description": "Oracle DB driver for Laravel", | ||
"keywords": ["oracle", "laravel", "laravel 6", "pdo_oci", "oci8"], | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Jimmy Felder", | ||
"email": "[email protected]" | ||
} | ||
}, | ||
"minimum-stability": "stable" | ||
], | ||
"require": { | ||
"php": "^7.2", | ||
"illuminate/support": "^6.0", | ||
"illuminate/database": "^6.0", | ||
"illuminate/pagination": "^6.0" | ||
}, | ||
"require-dev": { | ||
"fzaninotto/faker": "^1.9.1", | ||
"mockery/mockery": "^1.0", | ||
"phpunit/phpunit": "^8.0" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Jfelder\\": "src/Jfelder" | ||
} | ||
}, | ||
"minimum-stability": "stable" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
## Laravel Oracle Database Package | ||
|
||
### OracleDB (updated for 5.4) | ||
### OracleDB (updated for Laravel 6.x) | ||
|
||
[![Latest Stable Version](https://poser.pugx.org/jfelder/oracledb/v/stable.png)](https://packagist.org/packages/jfelder/oracledb) [![Total Downloads](https://poser.pugx.org/jfelder/oracledb/downloads.png)](https://packagist.org/packages/jfelder/oracledb) [![Build Status](https://travis-ci.org/jfelder/Laravel-OracleDB.png)](https://travis-ci.org/jfelder/Laravel-OracleDB) | ||
|
||
|
@@ -24,7 +24,7 @@ Add `jfelder/oracledb` as a requirement to composer.json: | |
```json | ||
{ | ||
"require": { | ||
"jfelder/oracledb": "5.4.*" | ||
"jfelder/oracledb": "6.*" | ||
} | ||
} | ||
``` | ||
|
@@ -56,14 +56,14 @@ Once you have configured the OracleDB database connection(s), you may run querie | |
#### NEW: The oci8 library in now the default library. If you want to use the pdo library, enter "pdo" as the driver and the code will automatically use the pdo library instead of the oci8 library. Any other value will result in the oci8 library being used. | ||
|
||
```php | ||
$results = DB::select('select * from users where id = ?', array(1)); | ||
$results = DB::select('select * from users where id = ?', [1]); | ||
``` | ||
|
||
The above statement assumes you have set the default connection to be the oracle connection you setup in | ||
config/database.php file and will always return an 'array' of results. | ||
|
||
```php | ||
$results = DB::connection('oracle')->select('select * from users where id = ?', array(1)); | ||
$results = DB::connection('oracle')->select('select * from users where id = ?', [1]); | ||
``` | ||
|
||
Just like the built-in database drivers, you can use the connection method to access the oracle database(s) you setup | ||
|
@@ -73,14 +73,14 @@ in config/oracledb.php file. | |
|
||
```php | ||
$id = DB::connection('oracle')->table('users')->insertGetId( | ||
array('email' => '[email protected]', 'votes' => 0), 'userid' | ||
['email' => '[email protected]', 'votes' => 0], 'userid' | ||
); | ||
``` | ||
|
||
> **Note:** When using the insertGetId method, you can specify the auto-incrementing column name as the second | ||
parameter in insertGetId function. It will default to "id" if not specified. | ||
|
||
See [Laravel Database Basic Docs](http://four.laravel.com/docs/database) for more information. | ||
See [Laravel Database Basic Docs](https://laravel.com/docs/6.x/database) for more information. | ||
|
||
### License | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.