You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** Imports CSV data to Table with possibility to update rows while import.
642
+
* @param string $file - CSV File path
643
+
* @param string $table - Table name
644
+
* @param string $delimiter - COLUMNS TERMINATED BY (Default: ',')
645
+
* @param string $enclosure - OPTIONALLY ENCLOSED BY (Default: '"')
646
+
* @param string $escape - ESCAPED BY (Defaul: '\')
647
+
* @param integer $ignore - Number of ignored rows (Default: 1)
648
+
* @param array $update - If row fields needed to be updated eg date format or increment (SQL format only @FIELD is variable with content of that field in CSV row) $update = array('SOME_DATE' => 'STR_TO_DATE(@SOME_DATE, "%d/%m/%Y")', 'SOME_INCREMENT' => '@SOME_INCREMENT + 1')
649
+
* @param string $getColumnsFrom - Get Columns Names from (file or table) - this is important if there is update while inserting (Default: file)
650
+
* @param string $newLine - New line detelimiter (Default: \n)
/** Create table from CSV file and imports CSV data to Table with possibility to update rows while import.
673
+
* @param string $file - CSV File path
674
+
* @param string $table - Table name
675
+
* @param string $delimiter - COLUMNS TERMINATED BY (Default: ',')
676
+
* @param string $enclosure - OPTIONALLY ENCLOSED BY (Default: '"')
677
+
* @param string $escape - ESCAPED BY (Default: '\')
678
+
* @param integer $ignore - Number of ignored rows (Default: 1)
679
+
* @param array $update - If row fields needed to be updated eg date format or increment (SQL format only @FIELD is variable with content of that field in CSV row) $update = array('SOME_DATE' => 'STR_TO_DATE(@SOME_DATE, "%d/%m/%Y")', 'SOME_INCREMENT' => '@SOME_INCREMENT + 1')
680
+
* @param string $getColumnsFrom - Get Columns Names from (file or generate) - this is important if there is update while inserting (Default: file)
681
+
* @param string $newLine - New line delimiter (Default: \n)
/** Imports (ON DUPLICATE KEY UPDATE) CSV data in Table with possibility to update rows while import.
704
+
* @param string $file - CSV File path
705
+
* @param string $table - Table name
706
+
* @param string $delimiter - COLUMNS TERMINATED BY (Default: ',')
707
+
* @param string $enclosure - OPTIONALLY ENCLOSED BY (Default: '"')
708
+
* @param string $escape - ESCAPED BY (Defaul: '\')
709
+
* @param integer $ignore - Number of ignored rows (Default: 1)
710
+
* @param array $update - If row fields needed to be updated eg date format or increment (SQL format only @FIELD is variable with content of that field in CSV row) $update = array('SOME_DATE' => 'STR_TO_DATE(@SOME_DATE, "%d/%m/%Y")', 'SOME_INCREMENT' => '@SOME_INCREMENT + 1')
711
+
* @param string $getColumnsFrom - Get Columns Names from (file or table) - this is important if there is update while inserting (Default: file)
712
+
* @param string $newLine - New line detelimiter (Default: \n)
0 commit comments