Text::Query::BuildSQL 0.09
Sponsored Links
Text::Query::BuildSQL 0.09 Ranking & Summary
File size:
0.019 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
824
Date added:
2007-07-28
Publisher:
Loic Dachary
Text::Query::BuildSQL 0.09 description
Text::Query::BuildSQL is a base class for SQL query builders.
SYNOPSIS
package Text::Query::BuildSQLsqldb;
use Text::Query::BuildSQL;
use vars qw(@ISA);
@ISA = qw(Text::Query::BuildSQL);
Defines all the build_* functions to build a syntax tree. The tree nodes are [ operator scope operand operand... ]. The build_final_expression function translate the syntax tree in a where clause using the resolve method. If the scope of the search is not specified (simple query or advanced query without scope operator), the scope is set to the list of comma separated fields provided by the -fields_searched option. The resulting where clause is placed in the select order provided with the -select option, if any.
SYNTAX TREE
The string enclosed in single quotes must match exactly. The < string > token stands for an arbitrary string. A description enclosed in [something ...] means repeated 0 or N times.
expr: or scope expr [expr ...]
and scope expr [expr ...]
not scope expr
near scope expr_literal expr_literal
forbiden scope expr_literal [expr_literal ...]
mandatory scope expr_literal [expr_literal ...]
optional scope expr_literal [expr_literal ...]
literal scope < string >
expr_literal: literal scope < string >
scope: < string >
METHODS
resolve([], Q1)
Returns a where clause string corresponding to the Q1 syntax tree.
sortplusminus([], Q1)
Translate the mandatory and forbiden syntactic nodes to their boolean equivalents. If it has_relevance returns false and there is at least one mandatory word, the first mandatory word is added to the list of optional words.
has_relevance()
Returns true if relevance ranking is possible, false if not. It is used by the sortplusminus function. Returns false by default.
If relevance ranking is not possible, the semantic of the simple search is slighthly modified. When asking for +a b c it shows all the documents containing a and (b or c).
The normal behaviour is to return all the documents containing a and to sort them to show first those containing (b or c). When relevance ranking is not available the b, c search terms are therefore useless. That is why we decided to change the semantic of the query if no relevance ranking is available.
OPTIONS
-select STRING
If provided the string returned by build_final_expression substitutes the __WHERE__ tag with the where string generated by the resolve function. The substituted string is the return value of the build_final_expression.
If not set the return value of the build_final_expression is the result of the resolve function.
-fields_searched FIELDS_LIST
FIELDS_LIST is a list of comma separated field names. It is used as the default scope if no scope is provided in the query string. The build_final_expression function will croak if this option is not provided and no scope operator were used.
SYNOPSIS
package Text::Query::BuildSQLsqldb;
use Text::Query::BuildSQL;
use vars qw(@ISA);
@ISA = qw(Text::Query::BuildSQL);
Defines all the build_* functions to build a syntax tree. The tree nodes are [ operator scope operand operand... ]. The build_final_expression function translate the syntax tree in a where clause using the resolve method. If the scope of the search is not specified (simple query or advanced query without scope operator), the scope is set to the list of comma separated fields provided by the -fields_searched option. The resulting where clause is placed in the select order provided with the -select option, if any.
SYNTAX TREE
The string enclosed in single quotes must match exactly. The < string > token stands for an arbitrary string. A description enclosed in [something ...] means repeated 0 or N times.
expr: or scope expr [expr ...]
and scope expr [expr ...]
not scope expr
near scope expr_literal expr_literal
forbiden scope expr_literal [expr_literal ...]
mandatory scope expr_literal [expr_literal ...]
optional scope expr_literal [expr_literal ...]
literal scope < string >
expr_literal: literal scope < string >
scope: < string >
METHODS
resolve([], Q1)
Returns a where clause string corresponding to the Q1 syntax tree.
sortplusminus([], Q1)
Translate the mandatory and forbiden syntactic nodes to their boolean equivalents. If it has_relevance returns false and there is at least one mandatory word, the first mandatory word is added to the list of optional words.
has_relevance()
Returns true if relevance ranking is possible, false if not. It is used by the sortplusminus function. Returns false by default.
If relevance ranking is not possible, the semantic of the simple search is slighthly modified. When asking for +a b c it shows all the documents containing a and (b or c).
The normal behaviour is to return all the documents containing a and to sort them to show first those containing (b or c). When relevance ranking is not available the b, c search terms are therefore useless. That is why we decided to change the semantic of the query if no relevance ranking is available.
OPTIONS
-select STRING
If provided the string returned by build_final_expression substitutes the __WHERE__ tag with the where string generated by the resolve function. The substituted string is the return value of the build_final_expression.
If not set the return value of the build_final_expression is the result of the resolve function.
-fields_searched FIELDS_LIST
FIELDS_LIST is a list of comma separated field names. It is used as the default scope if no scope is provided in the query string. The build_final_expression function will croak if this option is not provided and no scope operator were used.
Text::Query::BuildSQL 0.09 Screenshot
Text::Query::BuildSQL 0.09 Keywords
BuildSQL
SQL
BuildSQL 0.09
sql query builders
syntax tree
SQL query
relevance ranking
query builders
base class
scope
Expr
string
literal
query
build
Text::Query::BuildSQL
Bookmark Text::Query::BuildSQL 0.09
Text::Query::BuildSQL 0.09 Copyright
WareSeeker periodically updates pricing and software information of Text::Query::BuildSQL 0.09 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Text::Query::BuildSQL 0.09 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
Related Software
Rose::DB::Object::QueryBuilder is a Perl module that can build SQL queries on behalf of Rose::DB::Object::Manager. Free Download
Text::PromptBalanced aid in creating CLI prompts that keep track of balanced text. Free Download
Text::Replace is a Perl module to replace variables from a hash. Free Download
XMMS Announcer is a simple utility that neatly prints the current track playing in XMMS. Free Download
MySQL Query Browser is a database querying tool. Free Download
B::TerseSize is a Perl module that prints information about ops and their (estimated) size. Free Download
LiteSQL is a C++ library that integrates C++ objects tightly to relational database. Free Download
Practical Query Analyzer produces HTML reports on query statistics. Free Download
Latest Software
Popular Software
Favourite Software