tracker r1707 - in branches/xesam-support: . src/libtracker-db



Author: pvanhoof
Date: Tue Jun 17 20:45:08 2008
New Revision: 1707
URL: http://svn.gnome.org/viewvc/tracker?rev=1707&view=rev

Log:
2008-06-17  Philip Van Hoof  <pvanhoof gnome org>

        * src/libtracker-db/tracker-db-manager.c: Database initialization



Modified:
   branches/xesam-support/ChangeLog
   branches/xesam-support/src/libtracker-db/tracker-db-manager.c

Modified: branches/xesam-support/src/libtracker-db/tracker-db-manager.c
==============================================================================
--- branches/xesam-support/src/libtracker-db/tracker-db-manager.c	(original)
+++ branches/xesam-support/src/libtracker-db/tracker-db-manager.c	Tue Jun 17 20:45:08 2008
@@ -2022,6 +2022,16 @@
 	TrackerDBInterface *iface;
 	gboolean            create;
 
+	iface = db_interface_get (TRACKER_DB_CACHE,
+				  attach_all, 
+				  &create);
+
+	g_object_unref (iface);
+
+	if (create) {
+		load_sql_file (iface, "sqlite-cache.sql", NULL);
+	}
+
 	iface = db_interface_get (TRACKER_DB_XESAM, 
 				  attach_all, 
 				  &create);
@@ -2040,22 +2050,6 @@
 		db_xesam_create_lookup (iface);
 	}
 
-	db_exec_no_reply (iface,
-			  "ATTACH '%s' as 'file-meta'",
-			  tracker_db_manager_get_file (TRACKER_DB_FILE_METADATA));
-
-	db_exec_no_reply (iface,
-			  "ATTACH '%s' as 'email-meta'",
-			  tracker_db_manager_get_file (TRACKER_DB_EMAIL_METADATA));
-
-	db_exec_no_reply (iface,
-			  "ATTACH '%s' as 'common'",
-			  tracker_db_manager_get_file (TRACKER_DB_COMMON));
-
-	db_exec_no_reply (iface,
-			  "ATTACH '%s' as 'cache'",
-			  tracker_db_manager_get_file (TRACKER_DB_CACHE));
-
 	/* Load static xesam data */
 	db_get_static_xesam_data (iface);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]