I've created a package I've whimsically decided to call "nstcl" that
implements some of the more common ns_* API functions in 100% Tcl so
that they can be used in tclsh, expect, etc.
It's currently at version 0.2, and can be downloaded at: http://michael.cleverly.com/aolserver/nstcl.
Currently it supports ns_db for Postgres and Solid (provided
pgtclsh/libpgtcl.so or soltcl/soltcl.so is used/available). I'm
interested in feedback, suggestions, etc.
Anyway, I don't know if this will be useful to anyone else or not, but
since I write far and away more Tcl code for AOLserver than I do for
standard tclsh/expect scripts, I enjoy being able to be lazy and not
have to use database specific routines. 😊