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

152 Commits

Author SHA1 Message Date
David Grudl
a0f2ca2fca typo 2023-08-09 16:15:04 +02:00
Marek Štípek
7fa05f381b Event: detecting source without filesystem check (#428)
Co-authored-by: Marek Stipek <stipek@shoptet.cz>
2022-11-18 04:40:51 +01:00
David Grudl
3a962de553 cs 2022-10-13 03:58:51 +02:00
Miloslav Hůla
04bb5ede3d Translator: convert BackedEnum to scalar
also closes (#412)
2022-01-18 16:15:30 +01:00
Andrej Rypo
7d82ce2ff6 MySqliDriver::getResource() fixed access to resource being closed prior to the call in PHP 8 (#410) 2021-12-12 18:00:04 +01:00
David Grudl
0f045c0986 cs whitespace 2021-12-12 03:52:44 +01:00
David Grudl
5646884899 cs 2021-12-12 03:52:44 +01:00
David Grudl
8270b7c1c3 support for PHP 8.1 2021-11-24 18:34:20 +01:00
David Grudl
df3edee70b removed travis 2021-04-23 20:54:50 +02:00
David Grudl
245da39a9f added github workflows 2021-04-23 20:53:38 +02:00
David Grudl
3df64fc3b3 fixed tests 2021-04-23 20:48:29 +02:00
David Grudl
d71caf0c75 Row: fixed ?? usage 2021-04-21 13:54:59 +02:00
Miloslav Hůla
3066fea2aa Connection: begin(), commit() & rollback() calls are forbidden in transaction() 2021-04-05 16:50:15 +02:00
Miloslav Hůla
b00e556289 Connection::transtaction() call can be nested 2021-04-05 16:50:15 +02:00
Miloslav Hůla
877dffd460 tests: use test() helper 2021-04-05 13:37:16 +02:00
Miloslav Hůla
7049949b14 Connection::transaction(): pass self as a callback argument 2021-04-05 13:37:16 +02:00
Miloslav Hůla
771e846a62 tests: Sqlite3 driver fix 2021-04-05 13:37:16 +02:00
David Grudl
4e056c52dd updated appveyor.yml 2021-03-10 16:53:34 +01:00
David Grudl
07f994a0b5 added Connection::transaction() 2020-11-25 20:59:58 +01:00
David Grudl
c464960239 Connection, Result: added format 'native' 2020-11-02 15:28:28 +01:00
David Grudl
34a1665915 coding style 2020-11-02 15:05:55 +01:00
David Grudl
212dd1ae55 updated phpstan 2020-11-02 15:05:55 +01:00
David Grudl
b9683f8a3c updated nette/coding-standard 2020-11-02 15:05:55 +01:00
David Grudl
177a800bff PdoDriver: changes error mode do ERRMODE_SILENT (for PHP 8.0) 2020-11-02 15:05:55 +01:00
David Grudl
fa6a1203a9 fixed compatibility with PHP 8 [Closes #379] 2020-11-02 15:05:55 +01:00
David Grudl
6e41c4223b tests: test() with description 2020-10-08 15:55:11 +02:00
David Grudl
34e16031f7 added phpstan.neon 2020-02-23 19:15:59 +01:00
Milan Pála
0bd222b3f1 tests: added reconnect test (#352) 2020-02-23 18:50:27 +01:00
Ashus
294787a26e Add support for escapeLike without % on any side (#346) (BC break) 2019-11-25 14:01:24 +01:00
David Grudl
faab306418 Translator: trims spaces from SQL [Closes #326] 2019-10-22 19:30:46 +02:00
David Grudl
0535d57e6b implemented MySqliDriver::escapeDateInterval() 2019-08-30 18:55:20 +02:00
Jan Pecha
369768a62a added Driver::escapeDateInterval() (BC break) (#334) 2019-08-30 18:55:20 +02:00
Tomáš Kuthan
7f22279333 SqlsrvDriver: Correct escaping of special characters (N prefix) (#332)
In case nvarchar type is used and e.g. chinese have to be saved, there have to be N in front of the value, this escaping works fine for varchar columns as well.
2019-08-30 18:54:06 +02:00
Chrudos Vorlicek
dd2fd654be Result::normalize() Fix select float in format of e-notation (#317) master (#321) 2018-10-25 22:33:09 +02:00
David Grudl
7a49609468 test: fix for PHP 7.3 2018-09-17 13:45:50 +02:00
Jan Kuchař
89987f0cee PdoDriver: check for misconfigured PDO connections resource (#294) 2018-09-17 13:45:50 +02:00
Miloslav Hůla
eaf2494d90 Connection: added config option onConnect (#303)
onConnect option is an array of SQL queries run by Connection::query() right after a database connection is established.
2018-09-17 13:45:50 +02:00
Dalibor Korpar
168971292d Connection::update() Support updating multiple tables at once (#316) 2018-09-17 13:45:49 +02:00
David Grudl
4b85f0a973 travis: uses NCS 2 2018-09-13 03:28:02 +02:00
David Grudl
0ad2dd70bc tests: added complex test for %like 2018-08-22 13:45:39 +02:00
David Grudl
3930dafe3f Sqlite3Driver becomes alias for SqliteDriver 2018-05-23 17:14:32 +02:00
David Grudl
a6392db67d improved phpDoc, capitalized Dibi 2018-05-10 22:34:04 +02:00
David Grudl
bd8ce38320 MySqliDriver: refactoring, uses OOP style 2018-05-09 13:33:54 +02:00
David Grudl
8dff5b5b3c Connection::query() and Fluent::execute() always return Result, not the number of affected rows (BC break) 2018-05-09 13:26:13 +02:00
David Grudl
06a487532d Result: added getColumnCount() 2018-05-09 13:26:13 +02:00
David Grudl
7d704d7edd drivers divided into Driver and ResultDriver (BC break) 2018-05-09 11:44:43 +02:00
David Grudl
bea524a621 removed MsSqlDriver (is not available in PHP7) 2018-05-09 11:43:09 +02:00
David Grudl
030554e1ae added dibi::stripMicroseconds 2018-04-19 13:03:38 +02:00
David Grudl
d7270e1f4d Strict: extension methods are deprecated 2018-04-19 13:03:38 +02:00
David Grudl
fbdd22de35 Connection::__construct() parameter config should be array (BC break) 2018-04-19 13:03:38 +02:00