From c2f8e9a15ef2adbb33e47ad479b7b41b33b057b9 Mon Sep 17 00:00:00 2001 From: John Lewin Date: Fri, 13 Feb 2015 09:03:41 -0800 Subject: [PATCH] Expose transactions to improve sqlite write performance --- DataStorage/SQLiteCommon.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/DataStorage/SQLiteCommon.cs b/DataStorage/SQLiteCommon.cs index 597026eb0..0da689d3b 100644 --- a/DataStorage/SQLiteCommon.cs +++ b/DataStorage/SQLiteCommon.cs @@ -45,6 +45,8 @@ namespace MatterHackers.MatterControl.DataStorage List Query(string query, params object[] args) where T : new(); //SQLiteCommand CreateCommand(string cmdText, params object[] ps); T ExecuteScalar(string query, params object[] args); + int InsertAll(System.Collections.IEnumerable objects); + void RunInTransaction (Action action); void Close(); }