PHP Class Yajra\Oci8\Schema\Sequence

Exibir arquivo Open project: yajra/laravel-oci8 Class Usage Examples

Protected Properties

Property Type Description
$connection Illuminate\Database\Connection | yajra\Oci8\Oci8Connection

Public Methods

Method Description
__construct ( Connection $connection )
create ( string $name, integer $start = 1, boolean $nocache = false ) : boolean function to create oracle sequence
currentValue ( string $name ) : integer same function as lastInsertId. added for clarity with oracle sql statement.
drop ( string $name ) : boolean function to safely drop sequence db object
exists ( string $name ) : boolean function to check if sequence exists
lastInsertId ( string $name ) : integer function to get oracle sequence last inserted id
nextValue ( string $name ) : integer get sequence next value

Method Details

__construct() public method

public __construct ( Connection $connection )
$connection Illuminate\Database\Connection

create() public method

function to create oracle sequence
public create ( string $name, integer $start = 1, boolean $nocache = false ) : boolean
$name string
$start integer
$nocache boolean
return boolean

currentValue() public method

same function as lastInsertId. added for clarity with oracle sql statement.
public currentValue ( string $name ) : integer
$name string
return integer

drop() public method

function to safely drop sequence db object
public drop ( string $name ) : boolean
$name string
return boolean

exists() public method

function to check if sequence exists
public exists ( string $name ) : boolean
$name string
return boolean

lastInsertId() public method

function to get oracle sequence last inserted id
public lastInsertId ( string $name ) : integer
$name string
return integer

nextValue() public method

get sequence next value
public nextValue ( string $name ) : integer
$name string
return integer

Property Details

$connection protected_oe property

protected Connection,Illuminate\Database|Oci8Connection,Yajra\Oci8 $connection
return Illuminate\Database\Connection | yajra\Oci8\Oci8Connection