Download the PHP package slywalker/mysql_util without Composer
On this page you can find all versions of the php package slywalker/mysql_util. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download slywalker/mysql_util
More information about slywalker/mysql_util
Files in slywalker/mysql_util
Download slywalker/mysql_util
More information about slywalker/mysql_util
Files in slywalker/mysql_util
Vendor slywalker
Package mysql_util
Short Description CakePHP MySQL Util Plugin
License MIT
Homepage https://github.com/slywalker/cakephp-plugin-mysql_util
Package mysql_util
Short Description CakePHP MySQL Util Plugin
License MIT
Homepage https://github.com/slywalker/cakephp-plugin-mysql_util
Please rate this library. Is it a good library?
Informations about the package mysql_util
MySQL Util Plugin for CakePHP2
Using Replication
If action use writing model method, use master.
Using UUID in Innodb
CakePHP ignore dammy primary. using dammy primary for mysql writhing performance
How to use
database.php
<?php
class DATABASE_CONFIG {
/**
* Slave DB Config as defult
*
* driver => The name of a supported driver; valid options are as follows:
* MysqlUtil.Database/Innodb - MySQL Innodb,
*
* master =>
* the name that master's config
*
* dammy =>
* the dammy primary field name when it uses uuid primary in innodb
*
* @var array
*/
public $default = array(
'datasource' => 'MysqlUtil.Database/Innodb',
'persistent' => false,
'host' => 'localhost',
'login' => 'user',
'password' => 'password',
'database' => 'database_name',
'prefix' => '',
'encoding' => 'utf8',
'master' => 'master',
'dammy' => 'added_id',
);
/**
* Master DB Config
*
* master =>
* the name that master's config
*
* @var array
*/
public $master = array(
'datasource' => 'MysqlUtil.Database/Innodb',
'persistent' => false,
'host' => 'localhost',
'login' => 'user',
'password' => 'password',
'database' => 'database_name',
'prefix' => '',
'encoding' => 'utf8',
'dammy' => 'added_id',
);
}
AppModel.php
<?php
App::uses('ReplicationBaseModel', 'MysqlUtil.Model');
class AppModel extends ReplicationBaseModel {
}
Use SQL_NO_CACHE (in SomeModel)
$this->getDataSource()->setNoCache(true);
Revert
$this->getDataSource()->setNoCache(false);All versions of mysql_util with dependencies
PHP Build Version
Package Version
The package slywalker/mysql_util contains the following files
Loading the files please wait ...