From 3852abfb5c39807cc238e46bf7247e1afcd4cca9 Mon Sep 17 00:00:00 2001 From: dakkar Date: Wed, 19 Oct 2005 18:49:40 +0000 Subject: fatto il db --- lib/Bookmarks/M/DB.pm | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 lib/Bookmarks/M/DB.pm (limited to 'lib/Bookmarks/M/DB.pm') diff --git a/lib/Bookmarks/M/DB.pm b/lib/Bookmarks/M/DB.pm new file mode 100644 index 0000000..44d7498 --- /dev/null +++ b/lib/Bookmarks/M/DB.pm @@ -0,0 +1,42 @@ +package Bookmarks::M::DB; + +use strict; +use base 'Catalyst::Model::CDBI'; +use Path::Class; + +my $DBHOME=dir(Bookmarks->config->{home})->file('bookmarks.db'); + +__PACKAGE__->config( + dsn => "dbi:SQLite:$DBHOME", + user => '', + password => '', + options => {}, + relationships => 1 +); + + +=head1 NAME + +Bookmarks::M::DB - CDBI Model Component + +=head1 SYNOPSIS + + Very simple to use + +=head1 DESCRIPTION + +Very nice component. + +=head1 AUTHOR + +Clever guy + +=head1 LICENSE + +This library is free software . You can redistribute it and/or modify it under +the same terms as perl itself. + +=cut + +1; + -- cgit v1.2.3