Re: SQLite3: Sample Usage

new topic     » goto parent     » topic index » view thread      » older message » newer message

For learning and testing, I created a simple app.

It does not work as expected.

There is no console output, but the "test.sqlite" file is created.

include std/console.e 
include sqlite3.e 
 
-- prepare the sqlite3 db 
atom db = 0 
integer sqliteResult = 0 
 
puts(1,"\nOpening the SQLite3 database: test.sqlite") 
{sqliteResult,db} = sqlite3_open("test.sqlite") 
puts(1,"\n\tDone!") 
 
?sqliteResult 
?db 
 
wait_key() 
 
sqlite3_close(db) 
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu