simple and stupid list creation. sets up aliases, creates the object, stores it.
[p5sagit/Promulger.git] / lib / Promulger / Schema.pm
CommitLineData
514dce63 1package Promulger::Schema;
2use strict;
3use warnings;
4
5use KiokuDB;
6
7my $kdb;
8my $scope;
9
10sub connect {
11 my($self, $dsn) = @_;
12 $kdb = KiokuDB->connect(
13 $dsn,
14 create => 1,
15 );
16 $scope = $kdb->new_scope;
17}
18
19sub store {
20 my($self, $obj) = @_;
21 $kdb->store($obj);
22}
23
241;