https://github.com/imarc/devour
SQL database synchronizer
https://github.com/imarc/devour
Last synced: 5 months ago
JSON representation
SQL database synchronizer
- Host: GitHub
- URL: https://github.com/imarc/devour
- Owner: imarc
- Created: 2019-06-01T06:22:36.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2025-12-10T21:16:22.000Z (7 months ago)
- Last Synced: 2025-12-11T08:38:54.415Z (7 months ago)
- Language: PHP
- Homepage:
- Size: 96.7 KB
- Stars: 0
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
```php
$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')
```