imarc / devour
An SQL database synchronizer
Installs: 5 742
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 5
Forks: 2
Open Issues: 0
Requires (Dev)
- dotink/jin: ^3.3
- phpstan/phpstan: ^0.11.7
- phpunit/phpunit: ^8.1
This package is auto-updated.
Last update: 2024-11-20 22:36:31 UTC
README
$sync = new Devour\Synchronizer(); $table = new Devour\Mapping('events'); $table->addKey('id') $table->setSource('evmas'); $table->setParam('tracker_limit', date('Y-m-d', strtotime('-1 year'))); $table->addJoin('vendor', 'firm', ['vendor = firm.id']); $table->addField('id', 'evmas.control'); $table->addFilter('highlights', 'evmas.majordesc'); $table->addWhere("exclude_from_catalog != 'Y'"); $table->addWhere("end_date >= '{{ tracker_limit }}'"); $sync->addTable($table); $sync->run('events')