> > Zhanjun You wrote:
> >> I can not find how to implement the method to deal with journal
> >> files
> >
> > What do you mean by "deal" here? What exactly are you trying to do
> > with
> > them, that you cannot achieve simply by beginning and then
> > committing a
> > transaction?
> >
> > Igor Tandetnik
> >
> > My app meet power fail,so sqlite generate a journal file, like
> > mydb.db.journal, then my app con not connect sqlite datebase, I want
> > to know
> > how to do?
>
> Why not? What happens when your app tries to open the database
> after the system is rebooted?
>
> SQLite is supposed to detect the journal file and automatically
> roll it back when you open the database. Your program doesn't have
> to do anything special to deal with the journal file.
>
> The document you posted a link to in an earlier mail describing
> the journal file format is a design document, intended for people
> working on the SQLite core (or compatible systems). If you are
> programming an application that uses SQLite, you should not need
> to worry about any of these details.
>
> Dan.

I finally understand do not need to deal with journal file.
But I do not know what circumstances led to the journal file, this time to
read the database file will fail.What may cause such a thing happen?
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to