Commit Graph

12 Commits

Author SHA1 Message Date
Jan Jakes
ab16f5be10 Remove ignores of WordPressDotOrg sniffs
[MAILPOET-6150]
2024-08-29 17:23:34 +02:00
Jan Jakes
b7b62f5fbc Remove confusing comments in WPDB driver
On the low lever of the WPDB driver, we're indeed executing an unknown query,
and we can't say that they are by themeselves fully safe. It's higher levels of
abstraction in Doctrine that aim to prevent us from generating unsafe querires.

[MAILPOET-6150]
2024-08-29 17:23:34 +02:00
Jan Lysý
15e109e763 Add comments in WPDB Doctrine driver
[MAILPOET-6150]
2024-08-29 17:23:34 +02:00
Jan Jakes
53919dd71b Add helper for detecting SQLite database engine
[MAILPOET-6185]
2024-08-22 13:28:09 +02:00
Jan Jakes
ad46417ee8 Add error handling logic for SQLite
[MAILPOET-6185]
2024-08-22 13:28:09 +02:00
Rostislav Wolny
9f32c59e49 Use DBAL Driver middleware to handle the correct connection timezone
I looked into using DBAL events for this but found that DBAL events
are deprecated so I went with middleware as they are recommended
as a replacement for the DBAL events.
[MAILPOET-6142]
2024-08-19 15:29:42 +02:00
Rostislav Wolny
f814624e0e Set GMT timezone to WPDB
[MAILPOET-6142]
2024-08-19 15:29:42 +02:00
Jan Jakes
3b3ebb1cbd Pass SQLSTATE and code to query exceptions so they are converted to DBAL exceptions properly
The conversion is done by MailPoetVendor\Doctrine\DBAL\Driver\API\MySQL\ExceptionConverter
that is returned from MailPoetVendor\Doctrine\DBAL\Driver\AbstractMySQLDriver.

[MAILPOET-6142]
2024-08-19 15:29:42 +02:00
Jan Jakes
53cad38099 Implement Statement and Connection::prepare()
[MAILPOET-6142]
2024-08-19 15:29:42 +02:00
Jan Jakes
dc66a6a349 Implement Result and Connection::query()
[MAILPOET-6142]
2024-08-19 15:29:42 +02:00
Jan Jakes
2047f0b694 Implement Connection::exec() and other simple connection methods
[MAILPOET-6142]
2024-08-19 15:29:42 +02:00
Jan Jakes
c17d8feaa4 Implement basic WPDB Doctrine driver with connection, statement, and result stubs
[MAILPOET-6142]
2024-08-19 15:29:42 +02:00