Addons/data/sqlite/zFns
< Addons | data/sqlite
Jump to navigation
Jump to search
Overview | Basic Usage | Create | Definitions | zFns | Installation | Nulls | Examples | Quirks
Usually only one sqlite database is accessed at a time. In this case, it is convenient to use cover functions in the z locale that reference a global locDB with the sqlite instance.
To read in sqlite and the cover functions:
load 'data/sqlite/sqlitez'
The cover functions are named with a db prefix as in dbreads for sqlreads__db. For example:
dbopen '~addons/data/sqlite/db/sandp.db' dbtables'' βββ¬ββ¬βββ βpβsβspβ βββ΄ββ΄βββ dbreads 'p where city="london" order by name' βββββ¬ββββββ¬ββββββ¬βββββββ¬βββββββ βpidβname βcolorβweightβcity β βββββΌββββββΌββββββΌβββββββΌβββββββ€ βp6 βcog βred β19 βlondonβ βp1 βnut βred β12 βlondonβ βp4 βscrewβred β14 βlondonβ βββββ΄ββββββ΄ββββββ΄βββββββ΄βββββββ