Add settings array to connection parameters that executes SET statements once connected

This commit is contained in:
Rémi Dewitte 2013-03-07 23:45:42 +01:00
parent b105318bcc
commit ab510d1700
5 changed files with 36 additions and 0 deletions

View file

@ -52,6 +52,12 @@
*
* unix_socket =>
* For MySQL to connect via socket specify the `unix_socket` parameter instead of `host` and `port`
*
* settings =>
* Array of key/value pairs, on connection it executes SET statements for each pair
* For MySQL : http://dev.mysql.com/doc/refman/5.6/en/set-statement.html
* For Postgres : http://www.postgresql.org/docs/9.2/static/sql-set.html
* For Sql Server : http://msdn.microsoft.com/en-us/library/ms190356.aspx
*/
class DATABASE_CONFIG {