mirror of
https://github.com/dg/dibi.git
synced 2025-09-02 18:42:36 +02:00
- fixed bug in DibiDataSource
- added DibiDataSource::getTotalCount() - PostgreSql compatibility
This commit is contained in:
@@ -300,6 +300,19 @@ class dibi
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Generates and returns SQL query as DibiDataSource - Monostate for DibiConnection::test().
|
||||
* @param array|mixed one or more arguments
|
||||
* @return DibiDataSource
|
||||
*/
|
||||
public static function dataSource($args)
|
||||
{
|
||||
$args = func_get_args();
|
||||
return self::getConnection()->dataSource($args);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Executes SQL query and fetch result - Monostate for DibiConnection::query() & fetch().
|
||||
* @param array|mixed one or more arguments
|
||||
|
Reference in New Issue
Block a user