panwenbin/yii2-oci-sequence-behavior
Composer 安装命令:
composer require panwenbin/yii2-oci-sequence-behavior
包简介
use Oracle sequence on insert when there is no trigger
关键字:
README 文档
README
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.
Usage
Add this behavior to oci ActiveRecord model
public function behaviors()
{
return [
[
'class' => OciSequenceBehavior::className(),
'sequenceName' => 'SOME_SEQ',
],
];
}
统计信息
- 总下载量: 143
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-11-03