scsidisk / yii2-sqlcomment
Add comment to sql
Installs: 10
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 1
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2024-12-21 20:14:01 UTC
README
Add comment to end of sql.
Requirements
- Yii2
- PHP 5.4+
Database support
- MySQL
Installation
The preferred way to install this extension is through composer.
php composer.phar require --prefer-dist scsidisk/yii2-sqlcommnet "*"
Usage
Once the extension is installed, simply use it in your code.
add follow code to your db setting.
'db' => [
'class' => 'scsidisk\yii2\sqlcomment\CMConnection',
'dsn' => '',
'password' => '',
'username' => '',
'charset' => '',
],