Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

KiokuDB on Windows

I wonder if anybody has been able to successfully use KiokuDB on Windows. Having ActivePerl 5.12.2, I did not find it pre-compiled in ppm repositories. Using cpan, it stopped during testing File::NFSLock. I was able to install it with notest, though.

Simple test below seems to work as documented:

package Person;
use Moose;

has ['name', 'age'] => (is => 'ro');

package main;

use Data::Dump;
use KiokuDB;

my $dir = KiokuDB->connect("hash");

{
    my $scope   = $dir->new_scope;
    my $obj = Person->new(name => 'Joe', age => 34);

    my $data_id = $dir->store($obj);

    warn $data_id;   # 6702A424-6BF6-1014-B0F5-EC4CE5BB15D7

    my $got = $dir->lookup($data_id);
    dd $got;         # bless({ age => 34, name => "Joe" }, "Person")
}

Anyone used it for something larger on Windows, say with DBI backend? Do you think it is stable/usable enough to use for some smaller project?

Please provide at least some details of your kind of usage, so I have an idea that matches my plans.

like image 825
bvr Avatar asked Feb 28 '11 21:02

bvr


1 Answers

I have just installed with cpan force option, and it works like a charm; and yes, it's stable enough for my applications

like image 68
Miguel Prz Avatar answered Oct 04 '22 22:10

Miguel Prz