nramenta / dabble

Lightweight wrapper and collection of helpers for MySQLi
MIT License
13 stars 4 forks source link

CRUD helper insert / update: support timestamp_column = NOW() #2

Closed korpa closed 10 years ago

korpa commented 10 years ago

CRUD helpers should support mysql's "NOW()"

nramenta commented 10 years ago

Added in version 0.5.0. You can now use literal helpers like so:

$db->insert('posts', array(
    'title'      => 'Hello, World',
    'created_at' => $db->literal('NOW()')
));
korpa commented 10 years ago

Thank you very much