PHP Class Yajra\Oci8\Schema\Trigger

Show file 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 )
autoIncrement ( string $table, string $column, string $triggerName, string $sequenceName ) : boolean Function to create auto increment trigger for a table.
drop ( string $name ) : boolean Function to safely drop trigger db object.

Protected Methods

Method Description
wrapValue ( string $value ) : string Wrap value if reserved word.

Method Details

__construct() public method

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

autoIncrement() public method

Function to create auto increment trigger for a table.
public autoIncrement ( string $table, string $column, string $triggerName, string $sequenceName ) : boolean
$table string
$column string
$triggerName string
$sequenceName string
return boolean

drop() public method

Function to safely drop trigger db object.
public drop ( string $name ) : boolean
$name string
return boolean

wrapValue() protected method

Wrap value if reserved word.
protected wrapValue ( string $value ) : string
$value string
return string

Property Details

$connection protected property

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