1
0
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:
David Grudl
2009-02-08 21:15:54 +00:00
parent 60662bdae1
commit 8df67d0de2
3 changed files with 41 additions and 7 deletions

View File

@@ -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