[siesta-commit] siesta/lib/Siesta/Storage Volatile.pm,NONE,1.1

[prev] [thread] [next] [lurker] [Date index for 2002/09/07]

From: gmccarroll
Subject: [siesta-commit] siesta/lib/Siesta/Storage Volatile.pm,NONE,1.1
Date: 14:37 on 07 Sep 2002
Update of /cvsroot/siesta/siesta/lib/Siesta/Storage
In directory usw-pr-cvs1:/tmp/cvs-serv15408

Added Files:
	Volatile.pm 
Log Message:

copied from DBI.pm and removed some of the dbi stuff, not much


--- NEW FILE: Volatile.pm ---
#
# this is going to implement a memory only implementation of
# storage, i.e. a HoAoH or maybe HoAo frozen structs
#

package Siesta::Storage::DBI;
use strict;
use Siesta::Storage;
use base 'Siesta::Storage';


# WE NEED TO GET RID OF THIS ...
#use Class::MethodMaker get_set => [ 'dbh' ];

sub new {
    my $class = shift;
    my $dbh = DBI->connect(@_);
    return unless $dbh;
    bless { dbh => $dbh }, $class;
}



sub load_user {
    my $self = shift;
    my $user = shift;
}


sub load_list {
    my $self = shift;
    my $id   = shift;
}


sub member_of_list {
    my $self = shift;
    my $list = shift;
    my $user = shift;
}


sub add_member_to_list {
    my $self = shift;
    my $list = shift;
    my $user = shift;
}


sub remove_member_from_list {
    my $self = shift;
    my $list = shift;
    my $user = shift;
}


sub list_members {
    my $self = shift;
    my $list = shift;
}

sub list_plugins {
    my $self = shift;
    my $list = shift;
}

1;



Generated at 13:57 on 01 Jul 2004 by mariachi 0.52