|
NAMESearch::InvertedIndex::DB::Mysql - A MySQL database interface object for Search::InvertedIndexSYNOPSISuse Search::InvertedIndex::DB::Mysql; my $db = Search::InvertedIndex::DB::Mysql->new({ -db_name => 'searchdb', -hostname => 'db.domain.com', -username => 'dbuser', -password => 'dbuserpw', -table_name => 'indextablename', -lock_mode => 'EX' }); my $inv_map = Search::InvertedIndex->new({ -database => $db }); my $query = Search::InvertedIndex::Query->new(...); my $result = $inv_map->search({ -query => $query }); my $update = Search::InvertedIndex::Update->new(...); my $result = $inv_map->update({ -update => $update }); $inv_map->close; DESCRIPTIONAn interface allowing Search::InvertedIndex to store and retrieve data from Mysql database tables. All of the data is stored in a single table, which will be created automatically if it does not exist when the new method is called.The new method takes up to six parameters, two of which are required.
AUTHORMichael Cramer <cramer@webkist.com>, based on Search::InvertedIndex::DB::DB_File_SplitHash by Jerilyn Franz.NOTESThis module is not tested during installation due to its need for MySQL support in Perl and associated access permissions and so on.You *MUST* have the DBI and DBD::mysql modules installed to be able to use this module. Theoretically, someone could use this module as a starting point for creating support for all kinds of DBI supported databases. SEE ALSOSearch::InvertedIndex Search::InvertedIndex::DB::DB_File_SplitHash DBI DBD::mysql
Visit the GSP FreeBSD Man Page Interface. |