phpfacile / zend-db-ext
A zend-db extension
1.0.1
2018-11-14 16:50 UTC
Requires
- zendframework/zend-db: ^2.5
Requires (Dev)
This package is auto-updated.
Last update: 2025-03-15 07:56:47 UTC
README
A zend-db extension.
Installation
At the root of your project type
composer require phpfacile/zend-db-ext
Or add "phpfacile/zend-db-ext": "^1.0" to the "require" part of your composer.json file
"require": {
"phpfacile/zend-db-ext": "^1.0"
}
Usage
use PHPFacile\Zend\Db\Helper\ZendDbHelper;
$expression = ZendDbHelper::getUTCTimestampExpression($adapter);
This will return
- new Expression('UTC_TIMESTAMP()'); in case of MySQL
- new Expression('datetime('now')'); in case of SQLite