[f-spot] Restore FSpotDatabaseConnection.
- From: Ruben Vermeersch <rubenv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [f-spot] Restore FSpotDatabaseConnection.
- Date: Sun, 8 Aug 2010 13:35:37 +0000 (UTC)
commit 73aa1b7b02ea56062f9b170ce0012ccbb5668d61
Author: Ruben Vermeersch <ruben savanne be>
Date: Sun Aug 8 15:20:56 2010 +0200
Restore FSpotDatabaseConnection.
.../FSpot.Database/FSpotDatabaseConnection.cs | 32 ++++++++++++++++++++
src/Clients/MainApp/Makefile.am | 1 +
2 files changed, 33 insertions(+), 0 deletions(-)
---
diff --git a/src/Clients/MainApp/FSpot.Database/FSpotDatabaseConnection.cs b/src/Clients/MainApp/FSpot.Database/FSpotDatabaseConnection.cs
new file mode 100644
index 0000000..4b6aa19
--- /dev/null
+++ b/src/Clients/MainApp/FSpot.Database/FSpotDatabaseConnection.cs
@@ -0,0 +1,32 @@
+//
+// FSpotDatabaseConnection.cs
+//
+// Author:
+// Mike Gemuende <mike gemuende de>
+// Ruben Vermeersch <ruben savanne be>
+//
+// Copyright (c) 2010 Mike Gemuende <mike gemuende de>
+// Copyright (c) 2010 Ruben Vermeersch <ruben savanne be>
+//
+// This is free software. See COPYING for details.
+//
+
+using System;
+
+using Hyena.Data.Sqlite;
+
+namespace FSpot.Database
+{
+
+
+ public class FSpotDatabaseConnection : HyenaSqliteConnection
+ {
+
+ public FSpotDatabaseConnection (string dbpath) : base(dbpath)
+ {
+ //Execute ("PRAGMA synchronous = OFF");
+ //Execute ("PRAGMA temp_store = MEMORY");
+ //Execute ("PRAGMA count_changes = OFF");
+ }
+ }
+}
diff --git a/src/Clients/MainApp/Makefile.am b/src/Clients/MainApp/Makefile.am
index a3909f0..c7bd892 100644
--- a/src/Clients/MainApp/Makefile.am
+++ b/src/Clients/MainApp/Makefile.am
@@ -17,6 +17,7 @@ SOURCES = \
FSpot/ColorManagement.cs \
FSpot/ControlOverlay.cs \
FSpot.Database/Db.cs \
+ FSpot.Database/FSpotDatabaseConnection.cs \
FSpot.Database/Tests/UpdaterTests.cs \
FSpot.Database/Updater.cs \
FSpot/DragDropTargets.cs \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]