PHP 클래스 Yajra\Oci8\Schema\Sequence

파일 보기 프로젝트 열기: yajra/laravel-oci8 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$connection Illuminate\Database\Connection | yajra\Oci8\Oci8Connection

공개 메소드들

메소드 설명
__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

메소드 상세

__construct() 공개 메소드

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

create() 공개 메소드

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

currentValue() 공개 메소드

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

drop() 공개 메소드

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

exists() 공개 메소드

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

lastInsertId() 공개 메소드

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

nextValue() 공개 메소드

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

프로퍼티 상세

$connection 보호되어 있는 프로퍼티

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