sqlite3_open function

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

sqlite3_open function

fred238@free.fr
hello,

Is there a way to not create a database while the db file is not found with the sqlite3_open function ?

Why don't just create a create_table function instead of ?

regards,

fred.


-----------------------------------------------------------------------------
To unsubscribe, send email to [hidden email]
-----------------------------------------------------------------------------

Reply | Threaded
Open this post in threaded view
|

RE: sqlite3_open function

Eric Pankoke
The best way is to just check if the file exists in whatever language
you're using before you call sqlite3_open.

Eric Pankoke
Founder
Point Of Light Software
http://www.polsoftware.com/
 
-----Original Message-----
From: fred238 [mailto:[hidden email]]
Sent: Friday, August 10, 2007 11:28 PM
To: [hidden email]
Subject: [sqlite] sqlite3_open function

hello,

Is there a way to not create a database while the db file is not found
with the sqlite3_open function ?

Why don't just create a create_table function instead of ?

regards,

fred.


------------------------------------------------------------------------
-----
To unsubscribe, send email to [hidden email]
------------------------------------------------------------------------
-----




-----------------------------------------------------------------------------
To unsubscribe, send email to [hidden email]
-----------------------------------------------------------------------------

Reply | Threaded
Open this post in threaded view
|

Re: sqlite3_open function

fred238@free.fr
Eric Pankoke a e'crit :

> The best way is to just check if the file exists in whatever language
> you're using before you call sqlite3_open.
>
> Eric Pankoke
> Founder
> Point Of Light Software
> http://www.polsoftware.com/
>  
> -----Original Message-----
> From: fred238 [mailto:[hidden email]]
> Sent: Friday, August 10, 2007 11:28 PM
> To: [hidden email]
> Subject: [sqlite] sqlite3_open function
>
> hello,
>
> Is there a way to not create a database while the db file is not found
> with the sqlite3_open function ?
>
> Why don't just create a create_table function instead of ?
>
> regards,
>
> fred.
>
>
> ------------------------------------------------------------------------
> -----
> To unsubscribe, send email to [hidden email]
> ------------------------------------------------------------------------
> -----
>
>
>
>
> -----------------------------------------------------------------------------
> To unsubscribe, send email to [hidden email]
> -----------------------------------------------------------------------------
>
>
>

ok, i will do that.

thank you.


-----------------------------------------------------------------------------
To unsubscribe, send email to [hidden email]
-----------------------------------------------------------------------------

Reply | Threaded
Open this post in threaded view
|

Re: sqlite3_open function

John Stanton-3
In reply to this post by fred238@free.fr
Perform an "access" or equivalent instruction before calling sqlite3_open.

fred238 wrote:

> hello,
>
> Is there a way to not create a database while the db file is not found
> with the sqlite3_open function ?
>
> Why don't just create a create_table function instead of ?
>
> regards,
>
> fred.
>
>
> -----------------------------------------------------------------------------
>
> To unsubscribe, send email to [hidden email]
> -----------------------------------------------------------------------------
>
>


-----------------------------------------------------------------------------
To unsubscribe, send email to [hidden email]
-----------------------------------------------------------------------------