mirror of
https://github.com/dg/dibi.git
synced 2025-02-22 09:53:11 +01:00
This commit is contained in:
parent
af7c4de14a
commit
b7834a3373
@ -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
|
||||
* @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()
|
||||
*
|
||||
* @return int
|
||||
* @return int|bool int on success or FALSE on failure
|
||||
*/
|
||||
static public function insertId()
|
||||
{
|
||||
@ -288,9 +289,10 @@ class dibi
|
||||
|
||||
|
||||
/**
|
||||
* Gets the number of affected rows
|
||||
* Monostate for DibiDriver::affectedRows()
|
||||
*
|
||||
* @return int
|
||||
* @return int number of rows or FALSE on error
|
||||
*/
|
||||
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)
|
||||
{
|
||||
if (!empty($matches[1])) // comment
|
||||
|
@ -157,7 +157,6 @@ abstract class DibiDriver
|
||||
|
||||
/**
|
||||
* Executes the SQL query
|
||||
*
|
||||
* @param string SQL statement.
|
||||
* @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
|
||||
*
|
||||
* @return int number of rows or FALSE on error
|
||||
*/
|
||||
abstract public function affectedRows();
|
||||
|
Loading…
x
Reference in New Issue
Block a user