PHP Class Yajra\Oci8\Schema\Sequence

Afficher le fichier Open project: yajra/laravel-oci8 Class Usage Examples

Protected Properties

Свойство Type Description
$connection Illuminate\Database\Connection | yajra\Oci8\Oci8Connection

Méthodes publiques

Méthode 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 méthode

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

create() public méthode

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

currentValue() public méthode

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

drop() public méthode

function to safely drop sequence db object
public drop ( string $name ) : boolean
$name string
Résultat boolean

exists() public méthode

function to check if sequence exists
public exists ( string $name ) : boolean
$name string
Résultat boolean

lastInsertId() public méthode

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

nextValue() public méthode

get sequence next value
public nextValue ( string $name ) : integer
$name string
Résultat integer

Property Details

$connection protected_oe property

protected Connection,Illuminate\Database|Oci8Connection,Yajra\Oci8 $connection
Résultat Illuminate\Database\Connection | yajra\Oci8\Oci8Connection