NAME

PgHandler


DESCRIPTION

Postgres handler, stores the lists in a postgres type DB


AUTHOR

  Bruno Böttcher <bboett at adlp dot org>


COPYRIGHT and LICENCE

 Copyright (c) 2002 Bruno Boettcher
 PgHandler.pm is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License
 as published by the Free Software Foundation; version 2
 of the License.
 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.
 You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.


Methods of this class

initialize
initialize this object

nickchange
change the name of a listing

search
search through the list files needs to empty the the search hits results eventually need a clean up from size info in the filenames

elimitateoldservers
check for old fsesrvers and purge the infos about them returns the namearray of servernames that were purged

addFile
store the information about a fserver entry

checkIn
check in a whole listing

troubleClose
the parsing ended in trouble, record it in the file

lastUpdate
return the date of the last update return a hash with the update value and eventual logging info

openNewList
clean up the record for a fileserver needs on server side $fs->{``ListDate''}=$curtime;

loadState
parse in a list of actual state for the requests and return a list of setted targets.

saveState
Save the actual state of the transfers or requested files

update
check in the last server activation date

setMaxCPS
update the maximum transferrate for a fserver

createTables
 create the needed tables
doQuery
 perform a query to the database
parseChosen
 perform a query to the database
parseFiles
 brute force copy of the data stored in the ~/.leve files into a databse
checkNick
check if we are playing with an alias return the original nick if not the root of aliases was found

time2string
Database stores the date in a string fashion, convert a perl time into a sql time

string2time
Database stores the date in a string fashion, convert a sql time into a perl time

patternrevision
switch patter active chars to perlish and non greedy patterns


THANKS

I. Wronsky came up with this infernal concept and kludged the first 1.x versions together. This gave B. Boettcher the incentive to begin this work, the famous itching paradigm!


SEE ALSO

http://www.geocities.com/iwronsky/