06/06
2017
Wallogit.com
2017 © Pedro Peláez
use mysql queries and and efficiently import thousands of records from csv
Simple data MySQL query runner and imports database records from big data CSV., (*1)
Made this library for loading layer of Data Warehousing, (*2)
Usage:, (*3)
use Doyevaristo\LiquetDatabase\CsvReader;
use Doyevaristo\LiquetDatabase\LiquetCSVImporter;
use Doyevaristo\LiquetDatabase\LiquetDatabase;
$liquetDatabase = new LiquetDatabase('db_username','db_password','db_database','db_hostname');
$csvReader = new CsvReader();
$csvImporter = new LiquetCSVImporter($liquetDatabase,$csvReader);
$csvImporter
->table('your_table_name')
->import($file);
Notes: - CSV must have header same with table column name, (*4)
To Do: - Improve documentation - Unit testing, (*5)