Class Irc::DBHash |
|
![]() |
DBHash is for tying a hash to disk (using bdb). It can autoconvert from textfiles Call it with an identifier, for example "mydata". It'll look for mydata.db, if it exists, it will load and reference that db. If not, it'll look for "mydata" or "mydata.txt", if either exists, it'll convert those into mydata.db and then reference that. Otherwise it'll create and empty db called mydata.db
Methods |
Public Class methods |
new(bot, key, absfilename=false) |
absfilename: | use key as an actual filename, don't prepend the bot's config path and don't append ".db" |
create_db(name) |
open_db(name) |
Public Instance methods |
method_missing(method, *args, &block) |