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

v0.2.1 2016-01-20 08:37 UTC

This package is not auto-updated.

Last update: 2024-12-21 20:14:01 UTC


README

Join the chat at https://gitter.im/scsidisk/yii2-sqlcomment Build Status Latest Stable Version Total Downloads License

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'     => '',
],

Changelog

Changelog