Why JPack? May be Tcl lists will be more useful? The tcl dictionary
(also known as associative array) can be stored as list too.
SELECT TCLCMD('dict', 'get', 'key 1 mykey 2', 'mykey');
2
SELECT TCLCMD('lindex', 'key 1 mykey 2', 0);
key
SELECT TCLCMD('join', 'key 1 mykey 2', '-');
key-1-mykey-2
SELECT TCLCMD('lreplace', 'key 1 mykey 2', -1, -1, 'test');
test key 1 mykey 2
SELECT TCLCMD('lreplace', 'key 1 mykey 2', 'end', 'end', 'test');
key 1 mykey test
SELECT TCLCMD('linsert', 'a b', 0, 'c');
c a b
SELECT TCLCMD('linsert', 'a b', 'end', 'c');
a b c
SELECT TCLCMD('lsort', 'a c b');
a b c
SELECT TCLCMD('lsort', '-decreasing', 'a c b');
c b a
SELECT TCLCMD('lreverse', 'a c b');
b c a
SELECT TCLCMD('lsearch', 'a c b', 'b');
2
SELECT TCLCMD('lsearch', 'a c b', 'd');
-1
See details here: http://sqlite.mobigroup.ru/wiki?name=ext_tcl
--
Best regards, Alexey Pechnikov.
http://pechnikov.tel/
_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users