Skip to content

Commit

Permalink
Add MySQLi Database driver (refs #3898)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeelot committed Aug 17, 2013
1 parent 0d7fe2f commit 22eb34d
Show file tree
Hide file tree
Showing 4 changed files with 483 additions and 0 deletions.
3 changes: 3 additions & 0 deletions classes/Database/MySQLi.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?php defined('SYSPATH') OR die('No direct script access.');

class Database_MySQLi extends Kohana_Database_MySQL {}

This comment has been minimized.

Copy link
@sergeyklay

sergeyklay Aug 19, 2013

why Kohana_Database_MySQL instead Kohana_Database_MySQLi?

This comment has been minimized.

Copy link
@zeelot

zeelot Aug 19, 2013

Author Member

These typos were fixed in the next commit

3 changes: 3 additions & 0 deletions classes/Database/MySQLi/Result.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?php defined('SYSPATH') OR die('No direct script access.');

class Database_MySQLi_Result extends Kohana_Database_MySQL_Result {}

This comment has been minimized.

Copy link
@sergeyklay

sergeyklay Aug 19, 2013

Kohana_Database_MySQLi_Result instead Kohana_Database_MySQL_Result

1 comment on commit 22eb34d

@sergeyklay
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, if it possible, use $this->_config['persistent'] variable (available with PHP 5.3+)
See http://www.php.net/manual/en/mysqli.persistconns.php

Please sign in to comment.