You can download the new version here:
Windows: http://www.netpromi.com/files/KirbyBase_Ruby_2.1.zip
Linux/Unix: http://www.netpromi.com/files/KirbyBase_Ruby_2.1.tar.gz
You can find out more about Kirbybase at:
http://www.netpromi.com/kirbybase_ruby.html
Again I would like to thank Hal Fulton for his invaluable help in
putting out this latest version of KirbyBase. Most of the enhancements
are due in large part to his ideas, suggestions, and advice.
List of changes:
* Changed the interface to KirbyBase#new and KirbyBase#create_table. You
can now specify arguments via a code block or as part of the argument
list.
* Added the ability to specify a class at table creation time.
Thereafter, whenever you do a #select, the result set will be an array
of instances of that class, instead of instances of Struct. You can
also use instances of this class as the argument to #insert, #update,
#set.
* Added the ability to encrypt a table so that it is no longer stored as
a plain-text file.
* Added the ability to explicity specify that you want a result set to be
sorted in ascending order.
* Added the ability to import a csv file into an existing table.
* Added the ability to select a record as if the table were a Hash with
it's key being the recno field.
* Added the ability to update a record as if the table were a Hash with
it's key being the recno field.
Enjoy!
Jamey Cribbs
jcr...@twmi.rr.com
#Subject: [ANN] KirbyBase 2.1
#
Hi Jamey,
I find kbase great, but do you have exporting methods? eg, i can see that
you can import csv files, but how do i convert/export it back to csv?
i plan to use something like
k_open("csvfile",:COMMA-DELIMITED) do |f|
# f now is kirbybase, so execute db/select commands at will :-)
#
end
# after exit, csvfile is still comma delimited
k_open("/etc/passwd",:COLON-DELIMITED) do |f|
# f now is kirbybase, so execute db/select commands at will
#
end
# after exit, /etc/passwd file is still colon-delimited file
k_open("/etc/postfix/main.conf",:EQUAL-DELIMITED) do |f|
# f now is kirbybase, so execute db/select commands at will
#
end
# after exit /etc/postfix/main.cf is still the usual config file
# of course, i treat config files as two columns only
Of course, you see where i am going. I want to treat everything as plain
kirbybase (including other dbs)...
thanks and kind regards -botp