Download the PHP package imarc/devour without Composer
On this page you can find all versions of the php package imarc/devour. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package devour
Devour Database Synchronization Library
CSV Source Imports
Use Devour\Importer for file workflows. It extends Synchronizer, uses a single database connection for both source and destination, and stages file data in the destination database through a pluggable file driver.
Example with explicit columns definitions:
Example .jin mapping for CSV imports (recommended persistent = true):
Custom file drivers can implement Devour\FileDriver and be passed to Devour\Importer::runWithDriver() in place of Devour\CsvDriver.
Notes:
- CSV data is materialized into a temporary staging table on the destination database before synchronization.
Importeraccepts a generic file driver at runtime viarunWithDriver(FileDriver $driver, ...);CsvDriveris the default implementation for CSV imports.Mappingis file-driver agnostic; provide file settings withsetFileConfig('<type>', [...]).- For CSV imports, you can optionally pass
columnsinsetFileConfig('csv', ...)to control temporary table column definitions. - CSV mapping joins execute on the destination database, so join targets must be destination-accessible tables.
- IMPORTANT: set CSV mappings as persistent (
setPersistent(true)in PHP orpersistent = truein.jin) if you need to preserve existing destination rows not present in the CSV.- If
persistentis not set, normal sync delete behavior can remove destination rows that do not appear in the current CSV import.
- If
All versions of devour with dependencies
PHP Build Version
Package Version
No informations.
The package imarc/devour contains the following files
Loading the files please wait ...