• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

lib/H27-Dec-2000-1,270545

t/H27-Dec-2000-894618

COPYINGH A D16-Jun-199917.6 KiB340281

ChangeLogH A D27-Dec-20002.1 KiB8346

DATABASEH A D21-Mar-20001.2 KiB2823

MANIFESTH A D27-Dec-2000445 2928

Makefile.PLH A D03-May-20221.9 KiB6326

READMEH A D21-Mar-20002 KiB7548

README.fulcrumH A D16-Jun-1999366 1311

README.mysqlH A D16-Jun-1999212 86

README.pgH A D21-Mar-2000304 108

README

1$Header: /cvsroot/TextQuery/Text-Query-SQL/README,v 1.4 2000/03/21 14:10:48 benj2 Exp $
2
3The Text-Query-SQL home page is http://www.senga.org/Text-Query-SQL/
4
5What is it ?
6------------
7
8Text-Query-SQL is derived from the Text-Query module.
9What is Text-Query then ? It is a general purpose query
10parser and resolver. It is able to parse the AltaVista 'simple
11query' and 'advanced query' syntax. The resulting syntax tree
12is then used to build a search query that depends on the
13database used.
14
15Text-Query-SQL provides query builders for
16SQL databases. Searching 'foo and bar' will retrieve rows containing
17the words foo and bar. It does it by generating the appropriate SQL
18request.
19
20At present Text-Query-SQL only supports MySQL and Fulcrum's
21SearchServer but one could easily add support for any other database
22(see DATABASE file), the module was architectured to make this easy.
23
24Where is the documentation ?
25----------------------------
26
27See the following manual pages : Text::Query::BuildSQL(3),
28Text::Query::BuildSQLFulcrum(3), Text::Query::BuildSQLMySQL(3),
29Text::Query::BuildSQLPg(3), Text::Query::SolveSQL(3)
30
31How to install it ?
32-------------------
33
34perl -MCPAN -e 'install Bundle::Text::Query::BuildSQL'
35
36And if you want to do it by hand
37
38gtar -zxvf Text-Query-SQL-*.tar.gz
39
40cd Text-Query-SQL-*[0-9]
41
42perl Makefile.PL
43
44make all
45
46make test
47
48If you want to run tests that create a table and exercise search expressions on it
49you should try the following:
50
51For MySQL:
52
53DBI_DSN=dbi:mysql:mysql DBI_USER=user DBI_PASS=passpass make TEST_FILES=t/04mysql.t test
54
55For Fulcrum:
56
57FULCRUM_HOME=/opt/fulcrum FULCREATE=/tmp FULSEARCH=/opt/fulcrum/fultext:/tmp \
58  DBI_DSN=dbi:SearchServer: DBI_USER='' DBI_PASS='' \
59  make TEST_FILES=t/02fulcrum.t test
60
61For PostgreSQL:
62
63DBI_DSN=dbi:Pg:dbname=test DBI_USER=user DBI_PASS=pass make TEST_FILES=t/06Pg.t test
64
65make install
66
67Where can I download it ?
68-------------------------
69
70The Text-Query-SQL home page is http://www.senga.org/Text-Query-SQL/
71
72Loic Dachary
73loic@senga.org
74http://www.senga.org/
75

README.fulcrum

1Short example for installing DBD-SearchServer-0.21:
2
3export FULCRUM_HOME=/opt/fulcrum3.5
4perl Makefile.PL
5export FULCREATE=`pwd`/fultest
6export FULSEARCH=$FULCRUM_HOME/fultext:`pwd`/fultest
7export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$FULCRUM_HOME/lib
8export PATH=$PATH:$FULCRUM_HOME/bin
9./build-dir.sh /opt/fulcrum3.5 fultest
10execsql -0 test.fte
11make test
12make install
13

README.mysql

1Short example for installing Msql-Mysql-modules-1.2017 :
2
3MYSQL_HOME=/usr IN_MYSQL_DISTRIBUTION=1 \
4 DBI_DB=mysql DBI_DSN=dbi:mysql:mysql DBI_USER=root DBI_PASS=passpass \
5 perl Makefile.PL
6make all
7make install
8

README.pg

1Short example for installing DBD-Pg-0.93 (assuming your installed
2postgres under /usr/local/pgsql).
3
4export POSTGRES_INCLUDE=/usr/local/pgsql/include
5export POSTGRES_LIB=/usr/local/pgsql/lib
6export DBI_DB=Pg DBI_DSN=dbi:Og:dbname=test DBI_USER=test DBI_PASS=toto55
7perl Makefile.PL
8make all
9make install
10