Page 1 of 1
OpenDatabase: SQLite Database Creation if file not found
Posted: Mon Feb 04, 2008 7:22 pm
by netmaestro
Srod wonders whether the PB team could add functionality to create an empty database for OpenDatabase() in cases where the file is not found and UseSQLiteDatabase() is called first.
Re: OpenDatabase: SQLite Database Creation if file not found
Posted: Mon Feb 04, 2008 9:16 pm
by srod
netmaestro wrote:Srod wonders whether the PB team could add functionality to create an empty database for OpenDatabase() in cases where the file is not found and UseSQLiteDatabase() is called first.
Uhm, must be a different srod!

Posted: Mon Feb 04, 2008 11:17 pm
by akj
The following highly complex code will successfully create an empty SQLite database:
Code: Select all
CreateFile(#file, DbPath$)
CloseFile(#file)
Posted: Mon Feb 04, 2008 11:39 pm
by srod
I think we are already aware of that.
Posted: Tue Feb 05, 2008 3:36 am
by Dare
Um .. what about cases where you don't actually want the db created willy-nilly? Are we talking flag options or just do it?
Flagged Option +1
Willy-nilly -1

Posted: Tue Feb 05, 2008 3:59 am
by netmaestro
#PB_Database_Willy_Nilly

Posted: Tue Feb 05, 2008 4:11 am
by Dare