diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2018-09-27 16:03:48 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2018-09-27 16:03:48 +0900 |
commit | 3e98ce7f85f06e95ad121c6f541d14464d85919e (patch) | |
tree | f02992c00911ec6ba24f243aebf96d98fa0d39a1 /doc/sql-driver.doc | |
parent | 9f5d59f33644aaadd7af43db86734a3294250a02 (diff) | |
download | tqt3-3e98ce7f85f06e95ad121c6f541d14464d85919e.tar.gz tqt3-3e98ce7f85f06e95ad121c6f541d14464d85919e.zip |
qt -> tqt conversion:
QTDIR -> TQTDIR
QTDOC -> TQTDOC
INCDIR_QT -> INCDIR_TQT
LIBDIR_QT -> LIBDIR_TQT
QT_INC -> TQT_INC
QT_LIB -> TQT_LIB
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/sql-driver.doc')
-rw-r--r-- | doc/sql-driver.doc | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/doc/sql-driver.doc b/doc/sql-driver.doc index 36f46ec31..02cd05cae 100644 --- a/doc/sql-driver.doc +++ b/doc/sql-driver.doc @@ -159,7 +159,7 @@ header files and shared libraries (here it is assumed that MySQL is installed in \c{/usr/local}) and run \c{make}: \code -cd $QTDIR/plugins/src/sqldrivers/mysql +cd $TQTDIR/plugins/src/sqldrivers/mysql qmake -o Makefile "INCLUDEPATH+=/usr/local/include" "LIBS+=-L/usr/local/lib -lmysqlclient" mysql.pro make \endcode @@ -172,7 +172,7 @@ Build the plugin as follows (here it is assumed that MySQL is installed in \c{C:\MYSQL}): \code -cd %QTDIR%\plugins\src\sqldrivers\mysql +cd %TQTDIR%\plugins\src\sqldrivers\mysql qmake -o Makefile "INCLUDEPATH+=C:\MYSQL\INCLUDE" "LIBS+=C:\MYSQL\LIB\OPT\LIBMYSQL.LIB" mysql.pro nmake \endcode @@ -207,7 +207,7 @@ columns, you have to use a forward only query to select LOB fields Inserting BLOBs should be done using either a prepared query where the BLOBs are bound to placeholders, or QSqlCursor which uses a prepared -query to do this internally (see $QTDIR/examples/sql/blob). +query to do this internally (see $TQTDIR/examples/sql/blob). \section3 Know problems @@ -233,21 +233,21 @@ the directory where Oracle is installed) and run make: If you are using Oracle 8: \code -cd $QTDIR/plugins/src/sqldrivers/oci +cd $TQTDIR/plugins/src/sqldrivers/oci qmake -o Makefile "INCLUDEPATH+=$ORACLE_HOME/rdbms/public $ORACLE_HOME/rdbms/demo" "LIBS+=-L$ORACLE_HOME/lib -lclntsh -lwtc8" oci.pro make \endcode For Oracle version 9: \code -cd $QTDIR/plugins/src/sqldrivers/oci +cd $TQTDIR/plugins/src/sqldrivers/oci qmake -o Makefile "INCLUDEPATH+=$ORACLE_HOME/rdbms/public $ORACLE_HOME/rdbms/demo" "LIBS+=-L$ORACLE_HOME/lib -lclntsh -lwtc9" oci.pro make \endcode For Oracle version 10: \code -cd $QTDIR/plugins/src/sqldrivers/oci +cd $TQTDIR/plugins/src/sqldrivers/oci qmake -o Makefile "INCLUDEPATH+=$ORACLE_HOME/rdbms/public $ORACLE_HOME/rdbms/demo" "LIBS+=-L$ORACLE_HOME/lib -lclntsh" oci.pro make \endcode @@ -271,7 +271,7 @@ installed in \c{C:\oracle}): \code set INCLUDE=%INCLUDE%;c:\oracle\oci\include set LIB=%LIB%;c:\oracle\oci\lib\msvc -cd %QTDIR%\plugins\src\sqldrivers\oci +cd %TQTDIR%\plugins\src\sqldrivers\oci qmake -o Makefile oci.pro nmake \endcode @@ -343,7 +343,7 @@ libraries (here it is assumed that unixODBC is installed in \c{/usr/local/unixODBC}) and run \c{make}: \code -cd $QTDIR/plugins/src/sqldrivers/odbc +cd $TQTDIR/plugins/src/sqldrivers/odbc qmake "INCLUDEPATH+=/usr/local/unixODBC/include" "LIBS+=-L/usr/local/unixODBC/lib -lodbc" make \endcode @@ -354,7 +354,7 @@ The ODBC header and include files should already be installed in the right directories. You just have to build the plugin as follows: \code -cd %QTDIR%\plugins\src\sqldrivers\odbc +cd %TQTDIR%\plugins\src\sqldrivers\odbc qmake -o Makefile odbc.pro nmake \endcode @@ -420,7 +420,7 @@ libraries, run \c qmake the following way (assuming that the PostgreSQL sources can be found in \c{/usr/src/psql}): \code -cd $QTDIR/plugins/src/sqldrivers/psql +cd $TQTDIR/plugins/src/sqldrivers/psql qmake -o Makefile "INCLUDEPATH+=/usr/src/psql/src/include /usr/src/psql/src/interfaces/libpq" "LIBS+=-L/usr/lib -lpq" psql.pro make \endcode @@ -432,7 +432,7 @@ the PostgreSQL documentation. Assuming the PostgreSQL sources resides in \c{C:\psql}, build the plugin as follows: \code -cd %QTDIR%\plugins\src\sqldrivers\psql +cd %TQTDIR%\plugins\src\sqldrivers\psql qmake -o Makefile "INCLUDEPATH+=C:\psql\src\include C:\psql\src\interfaces\libpq" psql.pro nmake \endcode @@ -466,7 +466,7 @@ point to the directory where you installed the client library and execute \c{qmake}: \code -cd $QTDIR/plugins/src/sqldrivers/tds +cd $TQTDIR/plugins/src/sqldrivers/tds qmake -o Makefile "INCLUDEPATH=$SYBASE/include" "LIBS=-L$SYBASE/lib -lsybdb" make \endcode @@ -478,14 +478,14 @@ Open Client (\l{http://www.sybase.com}). You must include \c NTWDBLIB.LIB to build the plugin: \code -cd %QTDIR%\plugins\src\sqldrivers\tds +cd %TQTDIR%\plugins\src\sqldrivers\tds qmake -o Makefile "LIBS+=NTWDBLIB.LIB" tds.pro nmake \endcode By default the Microsoft library is used on Windows, if you want to force the use of the Sybase Open Client, you must define -\c Q_USE_SYBASE in \c{%QTDIR%\src\sql\drivers\tds\qsql_tds.cpp}. +\c Q_USE_SYBASE in \c{%TQTDIR%\src\sql\drivers\tds\qsql_tds.cpp}. \target QDB2 \section2 QDB2 - IBM DB2 Driver (v7.1 or higher) @@ -508,7 +508,7 @@ in DB2 (see QSqlQuery::setForwardOnly()). \section3 How to build the plugin on Unix/Linux \code -cd $QTDIR/plugins/src/sqldrivers/db2 +cd $TQTDIR/plugins/src/sqldrivers/db2 qmake -o Makefile "INCLUDEPATH+=$DB2DIR/include" "LIBS+=-L$DB2DIR/lib -ldb2" make \endcode @@ -519,7 +519,7 @@ The DB2 header and include files should already be installed in the right directories. You just have to build the plugin as follows: \code -cd %QTDIR%\plugins\src\sqldrivers\db2 +cd %TQTDIR%\plugins\src\sqldrivers\db2 qmake -o Makefile "INCLUDEPATH+=<DB2 home>/sqllib/include" "LIBS+=<DB2 home>/sqllib/lib/db2cli.lib" nmake \endcode @@ -559,7 +559,7 @@ build it manually (replace \c $SQLITE by the directory where SQLite resides): \code -cd $QTDIR/plugins/src/sqldrivers/sqlite +cd $TQTDIR/plugins/src/sqldrivers/sqlite qmake -o Makefile "INCLUDEPATH+=$SQLITE/include" "LIBS+=-L$SQLITE/lib -lsqlite" make \endcode @@ -598,7 +598,7 @@ The following assumes Interbase or Firebird is installed in \c{/opt/interbase}: \code -cd $QTDIR/plugins/src/sqldrivers/ibase +cd $TQTDIR/plugins/src/sqldrivers/ibase qmake -o Makefile "INCLUDEPATH+=/opt/interbase/include" "LIBS+=-L/opt/interbase/lib" ibase.pro make \endcode @@ -609,7 +609,7 @@ The following assumes Interbase or Firebird is installed in \c{C:\interbase}: \code -cd %QTDIR%\plugins\src\sqldrivers\ibase +cd %TQTDIR%\plugins\src\sqldrivers\ibase qmake -o Makefile "INCLUDEPATH+=C:\interbase\include" ibase.pro nmake \endcode @@ -637,8 +637,8 @@ make sure that the following requirements are met: \list \i Ensure that you are using a shared TQt library; you cannot use the plugins with a static build. -\i Ensure that the environment variable \c QTDIR points to the right - directory. Go to the \c{$QTDIR/plugins/sqldrivers} directory and +\i Ensure that the environment variable \c TQTDIR points to the right + directory. Go to the \c{$TQTDIR/plugins/sqldrivers} directory and make sure that the plugin exists in that directory. \i Ensure that the client libraries of the DBMS are available on the system. On Unix, run the command \c{ldd} and pass the name of the @@ -697,8 +697,8 @@ loaded by the TQt library at runtime), the driver must use the \c Q_EXPORT_PLUGIN macro. Read the \link plugins-howto.html Qt Plugin\endlink documentation for more information on this. You can also check out how this is done in the SQL plugins that is provided -with TQt in \c{QTDIR/plugins/src/sqldrivers} and -\c{QTDIR/src/sql/drivers}. +with TQt in \c{TQTDIR/plugins/src/sqldrivers} and +\c{TQTDIR/src/sql/drivers}. The following code can be used as a skeleton for a SQL driver: |