summaryrefslogtreecommitdiffstats
path: root/src/sql/README.module
blob: ed09091c9f4e33ea099c703a828fbfcd02561c22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Before building the TQt library, the TQt SQL module can be enabled for
specific databases using 'configure'.  'configure' is located at the
top of your QTDIR.

Specific databases drivers can be enabled using one of the following
options:

	./configure [-qt-sql-<driver>] [-plugin-sql-<driver>]

or disabled using the following option:

	./configure [-no-sql-<driver>]

Where <driver> is the name of the driver, for example 'psql'.  This
will configure the TQt library to compile the specified driver into
the TQt lib itself.

For example, to build the PostgreSQL driver directly into the Qt
library, configure TQt like this:

	./configure -qt-sql-psql

In addition, you may need to specify an extra include path, as some
database drivers require headers for the database they are using,
for example:

	./configure -qt-sql-psql -I/usr/local/include

If instead you need to build the PostgreSQL driver as a dynamically
loaded plugin, configure TQt like this:

	./configure -plugin-sql-psql

To compile drivers as dynamically loaded plugins, see the
QTDIR/plugins/src/sqldrivers directory.  Use 'configure -help'
for a complete list of configure options.  See the TQt documentation
for a complete list of supported database drivers.