Lines Matching full:database
19 // database and populate it with the recovered contents of the
20 // original database. If recovery is successful, the recovered
21 // database is backed up over the original database. If recovery is
22 // not successful, the original database is razed. In either case,
31 // // database.
50 // // Commit the recovered data to the original database file.
71 // Begin the recovery process by opening a temporary database handle
72 // and attach the existing database to it at "corrupt". To prevent
86 // Mark recovery completed by replicating the recovery database over
87 // the original database, then closing the recovery database. The
88 // original database handle is poisoned, causing future calls
95 // the original database intact. Figure out which failure cases
99 // Indicate that the database is unrecoverable. The original
100 // database is razed, and the handle poisoned.
104 // database states are not well-understood without further
106 // database.
111 // Handle to the temporary recovery database.
114 // Attempt to recover the named table from the corrupt database into
115 // the recovery database using a temporary recover virtual table.
117 // in database [main]. Data is copied using INSERT OR REPLACE, so
157 // Setup the recovery database handle for Begin(). Returns false in
161 // Copy the recovered database over the original database.
164 // Close the recovery database, and poison the original handle.
165 // |raze| controls whether the original database is razed or just
173 Connection* db_; // Original database connection.