DBD::SQLite::FTS3Transitional - helper function for migrating FTS3 applications


DBD-SQLite-FTS3Transitional documentation  | view source Contained in the DBD-SQLite-FTS3Transitional distribution.

Index


NAME

Top

DBD::SQLite::FTS3Transitional - helper function for migrating FTS3 applications

SYNOPSIS

Top

  use DBD::SQLite::FTS3Transitional qw/fts3_convert/;
  my $new_match_syntax = fts3_convert($old_match_syntax);
  my $sql = "SELECT ... FROM ... WHERE col MATCH $new_match_syntax";

DESCRIPTION

Top

Starting from version 1.31, DBD::SQLite uses the new, recommended "Enhanced Query Syntax" for binary set operators in fulltext FTS3 queries (AND, OR, NOT, possibly nested with parenthesis).

Previous versions of DBD::SQLite used the "Standard Query Syntax" (see http://www.sqlite.org/fts3.html#section_3_2). Applications built with the old "Standard Query" syntax, have to be migrated, because the precedence of the OR operator has changed.

This module helps in the migration process : it provides a function to automatically translate from old to new syntax.

FUNCTIONS

Top

fts3_convert

Takes as input a string for the MATCH clause in a FTS3 fulltext search; returns the same clause rewritten in new, "Extended" syntax.

AUTHOR

Top

Laurent Dami <dami@cpan.org>

COPYRIGHT

Top

NAME

Top

DBD::SQLite::FTS3Transitional - The great new DBD::SQLite::FTS3Transitional!

VERSION

Top

Version 0.01

SYNOPSIS

Top

Quick summary of what the module does.

Perhaps a little code snippet.

    use DBD::SQLite::FTS3Transitional;

    my $foo = DBD::SQLite::FTS3Transitional->new();
    ...

EXPORT

Top

A list of functions that can be exported. You can delete this section if you don't export anything, such as for a purely object-oriented module.

SUBROUTINES/METHODS

Top

function1

function2

AUTHOR

Top

Laurent Dami, <dami at cpan.org>

BUGS

Top

Please report any bugs or feature requests to bug-dbd-sqlite-fts3transitional at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=DBD-SQLite-FTS3Transitional. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

Top

You can find documentation for this module with the perldoc command.

    perldoc DBD::SQLite::FTS3Transitional




You can also look for information at:

* RT: CPAN's request tracker

http://rt.cpan.org/NoAuth/Bugs.html?Dist=DBD-SQLite-FTS3Transitional

* AnnoCPAN: Annotated CPAN documentation

http://annocpan.org/dist/DBD-SQLite-FTS3Transitional

* CPAN Ratings

http://cpanratings.perl.org/d/DBD-SQLite-FTS3Transitional

* Search CPAN

http://search.cpan.org/dist/DBD-SQLite-FTS3Transitional/

ACKNOWLEDGEMENTS

Top

LICENSE AND COPYRIGHT

Top


DBD-SQLite-FTS3Transitional documentation  | view source Contained in the DBD-SQLite-FTS3Transitional distribution.