06-26-04 03:11 PM
Ian Zimmerman <itz@buug.org> wrote:
>
> Ian> $ bdbshell foo.db
> Ian> BDB> get "foo"
> Ian> BDB: foo.db: key "foo" not found
> Ian> BDB> set "foo" "bar"
> Ian> BDB> get "foo"
> Ian> bar
> Ian> BDB> set_multiline "foo"
> Ian> bar
> Ian> baz
> Ian> ^C
> Ian> BDB> get "foo"
> Ian> bar
> Ian> baz
> Ian>
> Ian> BDB>
>
> Keith> The are Berkeley DB APIs for most popular interpreted languages:
> Keith> Perl, Tcl, Python and so on. Why not use one of those?
>
> The idea of generating PERL code reminds me of seeing _Quills_ last
> weekend :-)
>
> Tcl might be another matter. As for Python, that was actually my first
> reaction, but I haven't found a DB binding. Can you point me to one?
Ref:
http://freshmeat.net/projects/bashdiff/
http://home.eol.ca/~parkw/index.html#bash
It has GDBM and SQLite. And, I'm working on PostgreSQL, now. Regarding
your example,
gdbm boo.db foo
gdbm boo.db foo bar --> store
gdbm boo.db foo
gdbm boo.db foo 'bar --> store string
baz'
gdbm boo.db foo
Yours truly,
--
William Park, Open Geometry Consulting, <opengeometry@yahoo.ca>
No, I will not fix your computer! I'll reformat your harddisk, though.
[ Post a follow-up to this message ]
|