Text::Query::SolveSQL(3pm)

Text::Query::SolveSQL3pm

Apply query expression to an sql database

Usage

  use Text::Query;
  my $q=new Text::Query('field1: ( hello and world )',
                        -parse => 'Text::Query::ParseAdvanced',
                        -solve => 'Text::Query::SolveSQL',
                        -build => 'Text::Query::BuildSQLFulcrum',
                        -select => 'select * from t1 where __WHERE__');
  my $db = DBI->connect(undef, undef, undef);
  my @rows = $q->match($db);

Overview

Applies a select order computed by a "Text::Query" object whose builder is derived from "Text::Query::BuildSQL" to a "DBI" object.

Methods

match (DB)

Applies the current select order to the database provided by the "DB" argument and returns a table of rows that match. Each row is a "hashref".

Releases

Unchanged in 4 releases since Debian 3.0 (Woody).

  1. 3.0–5.0

Authors

Loic Dachary ([email protected])

From libtext-querysql-perl 0.07-6 in Debian 5.0 (Lenny). Parsed by carta from the page's man source.