From bc7d7704330c2209de4d726a834df115a021451f Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Mon, 2 May 2016 02:05:48 +0100 Subject: [PATCH] sqlite csv --- lib/php/db/types/sqlite.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/php/db/types/sqlite.php b/lib/php/db/types/sqlite.php index f6d566a7..4c4762f0 100644 --- a/lib/php/db/types/sqlite.php +++ b/lib/php/db/types/sqlite.php @@ -1,4 +1,8 @@ 'PRAGMA encoding = "'.strtoupper(Db::$encoding).'"', 'use_path' => true, @@ -9,6 +13,7 @@ $DB_TYPES['sqlite'] = array ( 'table.sql' => 'SELECT sql FROM sqlite_master WHERE name=\'\'', 'table.truncate' => 'DELETE FROM \'\'', +'table.csv.load' => ['.mode csv','.sep \\t','.import '], 'sqliteCreateFunction' => array ( 'ip2int' => function ($value) { return ip2long($value); }, -- 2.47.3