in reply to create SQLite database problems
I copied your code, changed the path to the database file (your home directory doesn't exist on my machine) and it ran just fine. I then connected to the database via sqlite3 and both the .tables and .schema commands returned what I would expect (namely the list of tables and their definitions).
What command are you using to connect to the database? If you're not targeting the specific database you created, sqlite3 will create a new database and it would indeed be empty. Do you still find a lack of tables & schema when connecting as such: sqlite3 /home/user/bmcclintock/code_review.db?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: create SQLite database problems
by fionbarr (Friar) on Mar 06, 2012 at 19:51 UTC | |
by chilledham (Friar) on Mar 06, 2012 at 19:55 UTC | |
by fionbarr (Friar) on Mar 06, 2012 at 20:03 UTC | |
by chilledham (Friar) on Mar 06, 2012 at 20:10 UTC |