Skip to content

phpfacile/zend-db-ext

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHPFacile! Zend-db-ext

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

About

A zend-db extension

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages