GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
SNOBOL4SQLITE3DBM(3) CSNOBOL4 Manual SNOBOL4SQLITE3DBM(3)

snobol4sqlite3dbm - "dbm" style interface for SNOBOL4 using SQLite3


-INCLUDE 'sqlite3dbm.3'
        dbhandle = SQL3DBM_OPEN(file,flags,mode)
        SQL3DBM_CLOSE(dbhandle)
        SQL3DBM_STORE(dbhandle,key,datum,flags)
        datum = SQL3DBM_FETCH(dbhandle,key)
        SQL3DBM_DELETE(dbhandle,key)
        key = SQL3DBM_FIRSTKEY(dbhandle)
        key = SQL3DBM_NEXTKEY(dbhandle)
        SQL3DBM_ERRMSG(dbhandle)

A DBM compatible interface for snobol4(1) using the sqlite3 embedded database engine, and allows concurrent access by multiple processes.
SQL3DBM_OPEN
takes a filename (STRING), and ignores any additional arguments, and returns a database handle.
SQL3DBM_CLOSE
takes a database handle and closes it.
SQL3DBM_STORE
takes a database handle, a key, a value, and a flag, one of SQL3DBM_INSERT or SQL3DBM_REPLACE.
SQL3DBM_FETCH
takes a database handle and a key and returns a datum (if any) stored with that key.
SQL3DBM_DELETE
takes a database handle and a key and deletes the stored datum (if any).
SQL3DBM_FIRSTKEY
takes a database handle and returns a database key.
SQL3DBM_NEXTKEY
takes a database handle and returns a database key when called after SQL3DBM_FIRSTKEY.
SQL3DBM_ERRMSG
takes a database handle and string for the last sqlite3 database error.

database compatible with Python sqlite3dbm

snobol4(1), snobol4dbm(3), sqlite3(1)

Philip L. Budne
March 31, 2022 CSNOBOL4B 2.3.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.