Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

prep for release

git-svn-id: http://code.sixapart.com/svn/djabberd/trunk@718 43dd9337-660f-0410-bd32-e7601923a1a1
  • Loading branch information...
commit 29c9b648e36e71107b1ce1b0a3735f8f4ac69b1c 1 parent ce5f201
@bradfitz bradfitz authored
Showing with 55 additions and 1 deletion.
  1. +51 −1 lib/DJabberd/RosterStorage/SQLite.pm
  2. +4 −0 t/00-use.t
View
52 lib/DJabberd/RosterStorage/SQLite.pm
@@ -8,7 +8,8 @@ use DBI;
use DJabberd::Log;
our $logger = DJabberd::Log->get_logger();
-use vars qw($_respect_subscription);
+use vars qw($_respect_subscription $VERSION);
+$VERSION = '1.00';
sub set_config_database {
my ($self, $dbfile) = @_;
@@ -380,3 +381,52 @@ sub wipe_roster {
}
1;
+
+__END__
+
+=head1 NAME
+
+DJabberd::RosterStorage::SQLite - store your jabber roster in SQLite
+
+=head1 SYNOPSIS
+
+ <Vhost yourserver.com>
+ ...
+ <Plugin DJabberd::RosterStorage::SQLite>
+ Database roster.sqlite
+ </Plugin>
+ ...
+ </VHost>
+
+=head1 DESCRIPTION
+
+This stores your Jabber roster ("buddy list") in an SQLite database.
+
+The schema is automatically created on first use.
+
+=head1 WARNING: BLOCKS!
+
+This plugin blocks. That is, it doesn't do database access async in a
+separate thread. This is not a good plugin to use if you want
+DJabberd to perform well with lots of users.
+
+That said, a certain company is using this for ~100 employees with no
+problems.
+
+=head1 COPYRIGHT
+
+This module is Copyright (c) 2006 Six Apart, Ltd.
+All rights reserved.
+
+You may distribute under the terms of either the GNU General Public
+License or the Artistic License, as specified in the Perl README file.
+
+=head1 WARRANTY
+
+This is free software. IT COMES WITHOUT WARRANTY OF ANY KIND.
+
+=head1 AUTHORS
+
+Brad Fitzpatrick <brad@danga.com>
+
+Artur Bergman <sky@crucially.net>
View
4 t/00-use.t
@@ -0,0 +1,4 @@
+#!/usr/bin/perl
+use strict;
+use Test::More tests => 1;
+use_ok("DJabberd::RosterStorage::SQLite");
Please sign in to comment.
Something went wrong with that request. Please try again.