private void ExecuteImportCsvStmt(Ast.ImportCsvStmt stmt, ScriptEnv env) { try { ImportCsvStmtRunner.Run(_notebook, env, this, stmt); } catch (Exception ex) { Throw(env, -1, ex.Message, -1); } }
// must be run from the SQLite thread public static void Run(INotebook notebook, ScriptEnv env, ScriptRunner runner, Ast.ImportCsvStmt stmt) { var importer = new ImportCsvStmtRunner(notebook, env, runner, stmt); SqlUtil.WithTransaction(notebook, importer.Import); }