mirror of
https://github.com/dg/dibi.git
synced 2025-08-05 05:37:39 +02:00
This commit is contained in:
@@ -232,7 +232,7 @@ class dibi
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generates and executes SQL query
|
* Generates and executes SQL query - Monostate for DibiDriver::query()
|
||||||
*
|
*
|
||||||
* @param array|mixed one or more arguments
|
* @param array|mixed one or more arguments
|
||||||
* @return int|DibiResult
|
* @return int|DibiResult
|
||||||
@@ -276,9 +276,10 @@ class dibi
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Retrieves the ID generated for an AUTO_INCREMENT column by the previous INSERT query
|
||||||
* Monostate for DibiDriver::insertId()
|
* Monostate for DibiDriver::insertId()
|
||||||
*
|
*
|
||||||
* @return int
|
* @return int|bool int on success or FALSE on failure
|
||||||
*/
|
*/
|
||||||
static public function insertId()
|
static public function insertId()
|
||||||
{
|
{
|
||||||
@@ -288,9 +289,10 @@ class dibi
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Gets the number of affected rows
|
||||||
* Monostate for DibiDriver::affectedRows()
|
* Monostate for DibiDriver::affectedRows()
|
||||||
*
|
*
|
||||||
* @return int
|
* @return int number of rows or FALSE on error
|
||||||
*/
|
*/
|
||||||
static public function affectedRows()
|
static public function affectedRows()
|
||||||
{
|
{
|
||||||
@@ -299,6 +301,19 @@ class dibi
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Executes the SQL query - Monostate for DibiDriver::nativeQuery()
|
||||||
|
*
|
||||||
|
* @param string SQL statement.
|
||||||
|
* @return object|bool Result set object or TRUE on success, FALSE on failure
|
||||||
|
*/
|
||||||
|
static public function nativeQuery($sql);
|
||||||
|
{
|
||||||
|
return self::getConnection()->nativeQuery($sql);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
static private function dumpHighlight($matches)
|
static private function dumpHighlight($matches)
|
||||||
{
|
{
|
||||||
if (!empty($matches[1])) // comment
|
if (!empty($matches[1])) // comment
|
||||||
|
@@ -157,7 +157,6 @@ abstract class DibiDriver
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Executes the SQL query
|
* Executes the SQL query
|
||||||
*
|
|
||||||
* @param string SQL statement.
|
* @param string SQL statement.
|
||||||
* @return object|bool Result set object or TRUE on success, FALSE on failure
|
* @return object|bool Result set object or TRUE on success, FALSE on failure
|
||||||
*/
|
*/
|
||||||
@@ -167,7 +166,6 @@ abstract class DibiDriver
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the number of affected rows by the last INSERT, UPDATE or DELETE query
|
* Gets the number of affected rows by the last INSERT, UPDATE or DELETE query
|
||||||
*
|
|
||||||
* @return int number of rows or FALSE on error
|
* @return int number of rows or FALSE on error
|
||||||
*/
|
*/
|
||||||
abstract public function affectedRows();
|
abstract public function affectedRows();
|
||||||
|
Reference in New Issue
Block a user