Re: using TCL with sqlite database...
- From: "Earl Greida" <eGREGIOUSgrieda@xxxxxxxxxxxxxxxx>
- Date: Tue, 28 Nov 2006 18:58:42 GMT
"Jan Van Belle" <janvanbelle@xxxxxxxxx> wrote in message
news:ekhrcm$kjj$1@xxxxxxxxxxx
Hello all,
I'm trying to access an SQLite database via TCL.
Creating/opening/create tables etc. succeeds when doing it in 1 procedure,
but fails when I open the db in proc open_sqlite_db {} and try to write
to it in proc write_sql_db {}
You might need to commit the transaction for it to take effect if you keep
the DB open. Make a seperate proc to close the DB and then see if your data
is in the DB. I open the DB, run the query, and close the DB, each time so
I have never had this problem of data not being in the DB.
catch {
sqlite dbCmd $dataBase
dbCmd timeout 20000
set qryResult [dbCmd eval $query]
set errorCode [dbCmd errorcode]
dbCmd close
} catchResult
This is a useful link for Sqlite info.
http://www.sqlite.org/docs.html
.
- Follow-Ups:
- Re: using TCL with sqlite database...
- From: Jan Van Belle
- Re: using TCL with sqlite database...
- References:
- using TCL with sqlite database...
- From: Jan Van Belle
- using TCL with sqlite database...
- Prev by Date: Re: proc needs to always calculate the following Saturday but fails Nov - Apr
- Next by Date: Re: using TCL with sqlite database...
- Previous by thread: Re: using TCL with sqlite database...
- Next by thread: Re: using TCL with sqlite database...
- Index(es):
Relevant Pages
|