yii2-extension yii2-oci-sequence-behavior
use Oracle sequence on insert when there is no trigger
panwenbin/yii2-oci-sequence-behavior
use Oracle sequence on insert when there is no trigger
- Friday, November 3, 2017
- by panwenbin
- Repository
- 1 Watchers
- 0 Stars
- 21 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 2 Versions
- 600 % Grown
OciSequenceBehavior
This is usefull when an Oracle sequence not set with a trigger. Add the behavior, the primary key will be set to SEQUENCE.NEXTVAL., (*1)
Usage
Add this behavior to oci ActiveRecord model, (*2)
public function behaviors()
{
return [
[
'class' => OciSequenceBehavior::className(),
'sequenceName' => 'SOME_SEQ',
],
];
}
dev-master
9999999-dev
use Oracle sequence on insert when there is no trigger
Sources
Download
MIT
The Requires
by
Pan Wenbin
yii2
sequence
oracle
oci
1.0.0
1.0.0.0
use Oracle sequence on insert when there is no trigger
Sources
Download
MIT
The Requires
by
Pan Wenbin
yii2
sequence
oracle
oci