1
0
mirror of https://github.com/dg/dibi.git synced 2025-02-22 01:48:05 +01:00

60 Commits

Author SHA1 Message Date
David Grudl
c0bd3761de modified SVN properties 2008-07-17 03:51:29 +00:00
David Grudl
7f0fa2e75e - added config alias 'hostname' for 'host' 2008-07-15 09:34:05 +00:00
David Grudl
4e41f1641e - added dibi::setSubstFallBack()
- added DibiFluent::fetch()
2008-06-08 12:44:44 +00:00
David Grudl
3728b16a21 - added DibiFluent
- bugfix in dibi::dump()
2008-05-21 11:20:46 +00:00
David Grudl
7bb5684d71 code formatting: 4 spaces -> tabs 2008-05-12 00:30:59 +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
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
c41167d49f bug fixed 2008-01-15 05:40:08 +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
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
cbd37021f2 * new: qualifiy each column name with the table name using DibiResult::setWithTables
* removed DibiResult::setType(TRUE) with autodetection
* removed DibiResult::getFields() & getMetaData() in favour of new method getColumnsMeta()
* MySQLi and MySQL transaction implementation are the same
* better escaping in DibiPostgreDriver (new pg_escape_string and addslashes)
2007-11-30 10:12:45 +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
a0febd3d50 * added support for affectedRows in DibiPdoDriver 2007-11-24 08:23:26 +00:00
David Grudl
c8fedf7692 optimizations 2007-11-23 23:50:57 +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
981a1adaad Changed symbols for fetchAssoc: # means index, = means record field 2007-11-18 09:16:54 +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
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
ea00d5d37d * seek() or rowCount() in unbuffered mode throws exceptions
* out of range seek() throws exception
* deprecated DibiDriver::errorInfo
* fixed seek(0) on first iteration
* added DibiDatabaseException::catchError() & restore() for converting errors to exceptions
2007-11-12 01:39:26 +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
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
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
6f4d2c545d * removed variables $insertId & $affectedRows 2007-08-28 22:13:53 +00:00
David Grudl
5243122e6a * support for big int & big floats 2007-08-27 22:38:14 +00:00
David Grudl
2c6608f817 IDibiVariable -> DibiVariableInterface 2007-08-20 22:17:52 +00:00
David Grudl
5f4dbbbcfd * some variables renamed 2007-06-25 17:02:12 +00:00
David Grudl
e33689a5a1 multi INSERT or REPLACE command 2007-05-30 00:01:10 +00:00
David Grudl
7452065de0 * new MS SQL driver
* removed constant DIBI
2007-05-13 18:32:03 +00:00
David Grudl
f766827219 bugfix, enhanced error reporting, better examples 2007-05-11 22:25:32 +00:00
David Grudl
53178717ad * DibiPdoDriver bugs fixed 2007-03-27 23:38:09 +00:00
David Grudl
48ea525b04 * DibiDriver::query -> DibiDriver::nativeQuery
* Dibi::query moved to DibiDriver::query
* methods getFields(), detectTypes(), getMetaData() moved to base class DibiDriver
* added PDO driver (not tested)
2007-03-27 23:12:36 +00:00
David Grudl
f64a5d5251 * fixed affectedRows & insertId bug 2007-03-26 06:22:53 +00:00
David Grudl
0c86515076 * modified DibiException (getDbError, ...)
* fix dibi::dumpResult()
2007-02-02 03:51:43 +00:00
David Grudl
6536dfb7dd + rewritten support for logging & error handling
+ modifier %sn
* modifier %sql
* changed modifier behaviour: NULL is always 'NULL'
2007-01-29 05:08:52 +00:00
David Grudl
ac980fe8c9 + DibiResult::fetchAll()
* changed year in headers (2007)
2007-01-08 00:55:11 +00:00
David Grudl
3b8766d376 * throwing exception in DibiTranslator and DibiDriver
+ added dibi::$errorMode
2006-11-22 12:55:24 +00:00
David Grudl
f447a03c96 throwing exception on connect 2006-11-13 06:32:16 +00:00
David Grudl
da608c2db2 substitutes moved from DibiDriver to Dibi
changed "comments" behavior in DibiParser
2006-09-23 06:34:44 +00:00
David Grudl
da70be27a8 2006-09-13 12:02:38 +00:00