-
Notifications
You must be signed in to change notification settings - Fork 86
sqlite open
Chris Petersen edited this page Oct 16, 2014
·
1 revision
sqlite-open makes a connection to an SQlite database file.
Parameter | Description |
---|---|
dbname | Filename of the SQlite database |
Example 1: Write two entries to an SQlite database and query its content.
> (define file "test.sqlite")
> (define db (sqlite-open file))
> (sqlite-query db "create table tbl1(one varchar(10), two smallint)")
#f
> (sqlite-query db "insert into tbl1 values('hello!',10)")
()
> (sqlite-query db "insert into tbl1 values('goodbye', 20)")
()
> (display (sqlite-query db "select * from tbl1")) (newline)
((hello! 10) (goodbye 20) (hello! 10) (goodbye 20))>
> (sqlite-close db)
-
- accelerometer
- alist
- audio
- audioaux
- base64
- btle-scan
- camera
- cdb
- cgi
- config
- csv
- curl
- digest
- dmtx
- download
- eventloop
- fcgi
- fft
- generalized-arrays
- gps
- graph
- gyro
- hidapi
- hpdf
- html
- httpsclient
- hybridapp
- json
- lmdb
- ln_core
- ln_glcore
- ln_glgui
- ln_store
- localization
- localization_gui
- localnotification
- magnetometer
- mdns
- mqtt
- mqtt-store
- multitouch
- oauth
- orientation
- p256ecdsa
- png
- portaudio
- pregexp
- pressure
- prime
- pushnotification
- redcap
- rsa
- rtaudio
- rupi
- rotation
- sanestring
- scheduler
- serial
- sets
- settings
- simplexnoise
- sqlite
- ssax
- syntax-case
- timestamp
- ttf
- uiform
- url
- uuid
- vibrate
- videoplayer
- watchdog
- website
- xml
- zip