private void ExecuteImportTxtStmt(Ast.ImportTxtStmt stmt, ScriptEnv env) { try { ImportTxtStmtRunner.Run(_notebook, env, this, stmt); } catch (Exception ex) { Throw(env, -1, ex.Message, -1); } }
private readonly Encoding _fileEncoding; // or null for automatic // must be run from the SQLite thread public static void Run(INotebook notebook, ScriptEnv env, ScriptRunner runner, Ast.ImportTxtStmt stmt) { var importer = new ImportTxtStmtRunner(notebook, env, runner, stmt); SqlUtil.WithTransaction(notebook, importer.Import); }