SNOBOL4SQLITE3DBM(3)
π SNOBOL4SQLITE3DBM π
okay bestie, welcome to the SNOBOL4SQLITE3DBM(3) page, straight outta the CSNOBOL4 Manual β¨ this is the moment, this is the vibe, let's go π«Ά
β¨ NAME β¨
snobol4sqlite3dbm β a "dbm" style interface for SNOBOL4 using SQLite3 π
πΈ SYNOPSIS πΈ
-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)
π¦ DESCRIPTION π¦
So like, it's a DBM compatible interface for snobol4(1) that runs on the sqlite3 embedded database engine, and β the way that this is genuinely iconic β it lets multiple processes access it at the same time ππ
π SQL3DBM_OPEN
takes a filename (STRING), and ignores any additional arguments, and returns a database handle π yes, it really just ignores the extra stuff. no cap.
π SQL3DBM_CLOSE
takes a database handle and closes it. bye bestie π«Ά
π 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. if there's nothing there, that's just the vibe π
π 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. so like, first key first, then next, okay? order matters fr fr.
π SQL3DBM_ERRMSG
takes a database handle and string for the last sqlite3 database error π nothing like a lil error message to humble you.
π COMPATIBILITY π
database compatible with Python sqlite3dbm πβ¨ slay, interoperability.
β SEE ALSO β
snobol4(1)snobol4dbm(3)sqlite3(1)
π AUTHOR π
Philip L. Budne π
CSNOBOL4B 2.3.1 Β· March 31, 2022 β and that's the whole page, bestie, go forth and database π¦πβ¨ mwah!
π¦ where this page comes from
- fedora 43: snobol4 2.3.1-7.fc43 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause AND ISC
- fedora 43: snobol4 2.3.1-7.fc43 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause AND ISC
- fedora 44: snobol4 2.3.1-8.fc44 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause AND ISC
- fedora 44: snobol4 2.3.1-8.fc44 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause AND ISC
- opensuse-leap 16.0: snobol4 2.3.1-160000.2.2 Β· BSD-2-Clause
- opensuse-leap 16.0: snobol4 2.3.1-160000.2.2 Β· BSD-2-Clause
- opensuse-leap 16.0: snobol4 2.3.1-160000.2.2 Β· BSD-2-Clause
- opensuse-leap 16.0: snobol4 2.3.1-160000.2.2 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms