1
0
mirror of https://github.com/dg/dibi.git synced 2025-02-24 19:02:36 +01:00

188 Commits

Author SHA1 Message Date
David Grudl
b27b0193f1 fixed compatibility with Nette::Config 2008-05-13 13:02:26 +00:00
David Grudl
40e9f313c3 - DibiPostgreDriver - workaround for bug in pg_affected_rows
- added DibiResult::setObjects([TRUE | FALSE | class name])
2008-05-12 22:55:51 +00:00
David Grudl
7bb5684d71 code formatting: 4 spaces -> tabs 2008-05-12 00:30:59 +00:00
David Grudl
62f8c47410 compatibility with Nette::Config 2008-04-21 11:32:58 +00:00
David Grudl
11a314ca96 minor: updated phpDoc headers 2008-04-19 14:13:48 +00:00
David Grudl
c8febb8322 /*Nette::*/Object 2008-04-16 10:18:02 +00:00
David Grudl
24bf999cd9 * better datetime converting in DibiResult (see http://forum.dibiphp.com/viewtopic.php?pid=2331)
* added support for Nette_Debug
* renamed NObject -> Nette_Object (Nette::Object in PHP 5.3)
2008-04-03 12:40:04 +00:00
David Grudl
2632953541 - removed NException, ability of catching PHP error moved to DibiDriverException 2008-03-04 14:01:22 +00:00
David Grudl
1459c6c95d updated headers 2008-02-15 04:51:35 +00:00
David Grudl
2f9704bca2 - DibiPostgreDriver: added support for "schema"
- DibiTable::fetch($conditions) (experimental)
- DibiConnection no longer invokes autoloading
2008-02-14 02:02:27 +00:00
David Grudl
8da9e778a6 added new Nette exceptions 2008-02-01 02:12:36 +00:00
David Grudl
89dfa9f772 fixed bug in conditional SQL 2008-01-20 01:50:30 +00:00
David Grudl
18e02de80c - REWRITTEN DibiTranslar
- allows modifiers inside SQL -> modifiers become placeholders
- new modifier %ex - expand array
- new modifiers %or and %and
- changed interface IDibiVariable and implementation DibiVariable
2008-01-18 07:35:45 +00:00
David Grudl
f6b781f12d - added DibiDataSource as default implementation of IDataSource
- new modifiers %lmt %ofs
- removed old modifier %p (alias for %sql)
2008-01-18 02:57:43 +00:00
David Grudl
5c045e58dc * added DibiTable
* new connection options: "result:objects" & "result:withtables"
* renamed DibiDriverInterface -> IDibiDriver, DibiVariableInterface -> IDibiVariable
2008-01-15 03:43:03 +00:00
David Grudl
da0a239d6d * dibi::loadFile() extreme fast SQL dump loading 2008-01-12 01:20:23 +00:00
David Grudl
de4a882788 - DibiResult: meta type Dibi::FIELD_BOOL resolves 'f' and 'F' as FALSE 2008-01-02 05:25:21 +00:00
David Grudl
041f059408 removed NClass 2007-12-11 07:28:55 +00:00
David Grudl
dfacb48449 * fixed DibiPostgreDriver::insertId
* changed URL to http://dibiphp.com
2007-12-05 09:27:55 +00:00
David Grudl
7d964e054b * fixed identifier delimitation in DibiPostgreDriver (table.col -> table."col")
* better SQL syntax highlighting
* removed addslashes from DibiPostgreDriver
2007-12-01 17:24:49 +00:00
David Grudl
1aad1c8da9 * better syntax highlighting
* all drivers checks for extension in constructor
* DibiMySqlDriver - charset is set by mysql_set_charset
* DibiMySqliDriver - charset is set by mysqli_set_charset
2007-11-28 15:56:57 +00:00
David Grudl
1a9abfb326 NClass moved to separate file 2007-11-26 01:44:07 +00:00
David Grudl
7c6947a019 * added dibi::date & dibi::datetime
* DibiConnection::insertId && affectedRows throws exception on failure
* added protected throwException() to drivers
* DibiPostgreDriver - can build connection string
* DibiSqliteDriver - support for parameters 'format:date' & 'format:datetime'
* fixed query errors in DibiSqliteDriver
* DibiConnection prevents serialization and multiple transactions
2007-11-23 23:27:14 +00:00
David Grudl
3f42b2cf55 - added DibiVariable (experimental)
- fixed bug in DibiPostgreDriver::insertId()
2007-11-22 10:35:23 +00:00
David Grudl
c174e20135 2007-11-15 00:19:41 +00:00
David Grudl
6bfa40f594 added NException 2007-11-14 23:05:57 +00:00
David Grudl
0eeff53fe8 * DibiConnection::getConfig('name') returns name of connection
* seek() returns boolean again
* DibiDriver throws exception when is used after free()
2007-11-13 01:51:44 +00:00
David Grudl
40444c1341 * added dibi::fetch, dibi::fetchAll, dibi::fetchSingle
* some bugs fixed
2007-11-12 16:20:44 +00:00
David Grudl
46850aa588 * update DibiVariableInterface
* some bugs fixed
2007-11-12 07:33:23 +00:00
David Grudl
22c27f678a BIG REFACTORING!
* DibiDriver -> DibiConnection
2007-11-12 06:41:59 +00:00
David Grudl
5ee6a19f93 * added support for unbuffered queries (MySQL, MySQLi, SQLite)
* doc-comments changed to be compatible with phpDocumentor
* DibiDriver::config() renamed to alias()
2007-11-12 00:08:29 +00:00
David Grudl
fd1d2b86ff added NClass 2007-11-11 04:59:39 +00:00
David Grudl
9ff43d0ac3 added DibiDriver::disconnect() 2007-11-10 07:37:44 +00:00
David Grudl
8a6d664876 * renamed some files libs
* added doc comments to drivers
* DibiDriver::prepare() renamed to config()
* fixed connection error handling in Postgre driver
2007-11-09 02:28:27 +00:00
David Grudl
6492fe10b6 * added NObject 2007-11-08 21:35:30 +00:00
David Grudl
25fa4293fc * new exceptions: BadMethodCallException, InvalidArgumentException
* DibiMySqlDriver, DibiMySqliDriver, DibiSqliteDriver, DibiOracleDriver: error checking instead of FALSE checking in doQuery
2007-11-08 03:32:37 +00:00
David Grudl
453cc9be13 2007-11-01 05:52:13 +00:00
David Grudl
6856ace01e Changed New BSD License to "dibi license" 2007-10-30 00:58:15 +00:00
David Grudl
39c62c1cd5 * added configuration aliases (user -> username, pass -> password)
* dibi::$defaultDriver
2007-10-26 17:44:24 +00:00
David Grudl
879bbeba1f changed website to http://php7.org/dibi/ 2007-10-13 22:50:29 +00:00
David Grudl
ccea418c34 DibiDriver::doQuery returns TRUE or DibiResult 2007-10-01 05:34:50 +00:00
David Grudl
d35a850311 * removed $throwExceptions (always throws)
* added DibiLogger, dibi::notify(), dibi::startLogger()
* miniprofiler dibi::$numOfQueries, $totalTime, $elapsedTime
* simplified DibiException, added DibiDatabaseException
* Dibi::nativeQuery splitted into DibiDriver::doQuery & nativeQuery()
* moved dibi::dumpResult -> DibiResult::dump()
* moved dibi::test() -> DibiDriver::test()
* DibiTranslator generates $mask
2007-09-29 07:53:25 +00:00
David Grudl
0d8478d1d3 - dibi::substitute -> dibi::getSubst
- dibi:removeSubst(TRUE) removes all substitutes
2007-09-27 07:56:43 +00:00
David Grudl
281cdb65e0 * added dibi::addHandler & dibi::invokeEvent
* logging moved from DibiDriver -> Dibi::afterQuery()
2007-08-29 08:17:45 +00:00
David Grudl
53874f22d4 * support for sequence name in dibi::insertId() & DibiPostgreDriver::insertId()
* implemented DibiPostgreDriver::insertId()
* implemented DibiPostgreDriver::delimite()
2007-08-28 23:17:34 +00:00
David Grudl
5243122e6a * support for big int & big floats 2007-08-27 22:38:14 +00:00
David Grudl
7f995a558b * fixed odbc_num_rows and pg_affected_rows 2007-08-23 17:12:58 +00:00
David Grudl
05b8c0ad43 2007-08-23 00:57:28 +00:00
David Grudl
2c6608f817 IDibiVariable -> DibiVariableInterface 2007-08-20 22:17:52 +00:00
David Grudl
8b89eb3bd0 * vetsina method/trid oznacena jako final 2007-08-09 03:31:34 +00:00