+ const char *delete_sql = "delete from filedata where filename = :filename";
+ sqlite3_stmt *ppStmt;
+
+ sqlite3_prepare( db, delete_sql, -1, &ppStmt, NULL );
+ assert( NULL != ppStmt );
+
+ for( file_set::iterator i = deleted.begin(); i != deleted.end(); ++i ) {
+ const string &name = (*i)->getFileName();
+
+ rc = sqlite3_bind_text( ppStmt, 1, name.data(), name.size(), SQLITE_TRANSIENT );
+ assert( SQLITE_OK == rc );
+
+ rc = sqlite3_step( ppStmt );
+ assert( SQLITE_OK == rc );
+ }
+ rc = sqlite3_finalize( ppStmt );
+ assert( SQLITE_OK == rc );