submersible_toaster has asked for the wisdom of the Perl Monks concerning the following question:

Having searched the cpan and googled the globe I am unable to determine a solution. What is up with pureDB? Was it devised to be portable, independant of any linking etc? I would love to find a way to access pureDB files using perl , there is a format description that looks thorough, but scares me, as does fooling about with endian and bytevalues and c and (ok I aspire to maximum perl laziness - at all times, I admit it).

How difficult would it be to make a perl DBD for this database?

Devil's Advocate: sure it might seem cool now, but then you need to be certain you lock the file before writing to it, and be certain that your OS flocking is OK, and worry about races - that surely it would be better to use the mysql or ldap implementations of pureFTPd. Right?

I'm finishing this post whilst I am only in two minds about doing this, maybe the title should have been Real vs JustAnotherWannaDB


I can't believe it's not psellchecked

Replies are listed 'Best First'.
Re: Perl bindings for puredb
by PodMaster (Abbot) on Apr 03, 2003 at 08:59 UTC
    A DBD would be pointless since it's a HASH. What you're thinking of is a tie interface (like DB_File).

    Without looking at the code, it should be fairly simple to create an interface due to the fact that it is just a hash.

    update: I took at stab at compiling pure-db (win32), it took a little while but I got a native build going (non-cygwin) and I just started writing Tie::PureDB (it'll be my 2'nd official exstension).


    MJD says you can't just make shit up and expect the computer to know what you mean, retardo!
    I run a Win32 PPM repository for perl 5.6x+5.8x. I take requests.
    ** The Third rule of perl club is a statement of fact: pod is sexy.

      At last I find myself in a position that necessitates tie'ing something in perl (which I have never done). I'll proceed to the tutorials section , where I _KNOW_ there is some info on tie'ing.

      Anytime you would like someone to help test Tie::PureDB, you have my voluntary support (how I love the make dance).


      ++PodMaster
      I can't believe it's not psellchecked