1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-25 15:01:29 +02:00

98 Commits

Author SHA1 Message Date
David Grudl
6589519419 - DibiTranslator: empty arrays generate NULL (it may cause an BC break!)
- Dibi: disables magic_quotes_runtime
2009-04-16 02:15:20 +00:00
David Grudl
5946b7e1f6 - removed 'FIELD_' from dibi data types 2009-03-16 06:48:27 +00:00
David Grudl
97969edace - smarter handling of substitutions :subst: outside of brackets [] 2009-03-08 23:27:31 +00:00
David Grudl
7969289aaa - DibiDataSource: fixed empty ORDER BY
- DibiTranslator: removed empty %by handling 
- DibiTranslator: better NULL values handling
2009-03-08 17:36:11 +00:00
David Grudl
d2f1beba57 - added connection directive 'substitutes'
- better ArrayObject handling in DibiTranslator
2009-02-25 20:10:17 +00:00
David Grudl
b958e37fdf - supported substitutions :subst: outside of brackets [] 2009-02-22 18:58:29 +00:00
David Grudl
a26744388d - substitution is performed by DibiTranslator
- fixed bug in DibiTranslator
2009-02-22 18:35:18 +00:00
David Grudl
8df67d0de2 - fixed bug in DibiDataSource
- added DibiDataSource::getTotalCount()
- PostgreSql compatibility
2009-02-08 21:15:54 +00:00
David Grudl
dd6ffc3d0e - DibiTranslator: modifiers %ex, %by, %n improved, %SQL added
- DibiDataSource: allows select columns, sorting and conditions
2009-02-05 21:10:50 +00:00
David Grudl
46d79fc305 - DibiConnection & DibiTranslator refactoring
- DibiException accepts SQL parameter
- undeprecated IDataSource
2009-02-05 21:08:00 +00:00
David Grudl
bf6dc1cbd1 - DibiFluent implements Countable, IteratorAggregate
- DibiDataSource is deprecated
- DibiTranslator - fixed DateTime class support
2009-02-05 01:26:08 +00:00
David Grudl
a5a1da19a7 - DibiPostgreDriver: schema is case-sensitive
- DibiTranslator: %n modifier can construct [table] AS t statements
2009-02-02 17:50:02 +00:00
David Grudl
84172591d5 - added %ex modifier for keys in arrays 2009-01-07 17:30:01 +00:00
David Grudl
c5f8a260c7 - improved %and & %or modifiers behavior
- added %sql modifier for arrays (sub-translating)
2009-01-07 13:38:29 +00:00
David Grudl
e5a1877ed9 - year 2008 -> 2009 2008-12-31 00:13:40 +00:00
David Grudl
4b189b93d6 - class DateTime support
- DibiProfiler checks whether headers was sent
2008-12-28 19:27:16 +00:00
David Grudl
9244a1b1b5 - supported UNIX timestamp in datetime column 2008-11-25 20:33:52 +00:00
David Grudl
a2d0d66d0f - phpDoc simplified 2008-10-28 15:24:47 +00:00
David Grudl
ab892255d3 improved reflection skills 2008-10-28 01:03:50 +00:00
David Grudl
3e04378375 - returns result-set rows as DibiRow objects!
- removed option 'resultObjects'
- SQlite driver removes quotes from result-set column names
- this revision may cause compatibility break
2008-10-10 17:39:33 +00:00
David Grudl
fc69f8f47b - fixed float numbers decimal separator vs. setlocale 2008-10-02 09:01:38 +00:00
David Grudl
44f281de27 fixed %by 2008-10-01 16:23:44 +00:00
David Grudl
9eddba204f - BC change: DibiResult::fetchAll() returns always multidimensional arrays (for single columns use fetchPairs() instead)
- added DibiTable::insertOrUpdate()
- new modifier %by
2008-10-01 16:04:16 +00:00
David Grudl
8c4211d5be - added fluent SQL builders support in DibiConnection and DibiTable 2008-09-13 16:38:59 +00:00
David Grudl
e5af8a8c67 - Object renamed to DibiObject
- DibiTranslator: improved %and and %or handling
- DibiTable::findAll allows to add conditions
2008-09-05 05:35:15 +00:00
David Grudl
c0bd3761de modified SVN properties 2008-07-17 03:51:29 +00:00
David Grudl
4e41f1641e - added dibi::setSubstFallBack()
- added DibiFluent::fetch()
2008-06-08 12:44:44 +00:00
David Grudl
c23bf15a3d - DibiDriver::format splitted into escape() & unescape()
- added DibiConnection::unescape
- DibiPostgreDriver support escaping & unescaping BYTEA type
2008-05-25 18:44:43 +00:00
David Grudl
3728b16a21 - added DibiFluent
- bugfix in dibi::dump()
2008-05-21 11:20:46 +00:00
David Grudl
a8acce6d59 - removed DibiPostgreDriver workaround (there is no bug in pg_affected_rows)
- added IDibiConnection::isConnected()
2008-05-16 17:56:24 +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
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
1459c6c95d updated headers 2008-02-15 04:51:35 +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
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
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
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