summaryrefslogtreecommitdiffstats
path: root/src/svnqt/cache/sqlite3
diff options
context:
space:
mode:
Diffstat (limited to 'src/svnqt/cache/sqlite3')
-rw-r--r--src/svnqt/cache/sqlite3/README11
-rw-r--r--src/svnqt/cache/sqlite3/qsql_sqlite3.cpp10
2 files changed, 9 insertions, 12 deletions
diff --git a/src/svnqt/cache/sqlite3/README b/src/svnqt/cache/sqlite3/README
index 854be9e..3ea0855 100644
--- a/src/svnqt/cache/sqlite3/README
+++ b/src/svnqt/cache/sqlite3/README
@@ -1,15 +1,12 @@
With this driver you can access the files created by sqlite3 through
-the standard Qt sql module. The driver name is QSQLITE3.
+the standard TQt sql module. The driver name is QSQLITE3.
Although there are many other solutions to access such DB files, I think
that using this driver has some advantages:
---> You use the standard Qt interface so you can reuse exinting code or
+--> You use the standard TQt interface so you can reuse exinting code or
switch to or from other DB types quite easily.
---> Soft transition to Qt 4: Qt 4 supports sqlite3, you can prepare your
- application now.
-
--> The source of this driver is smaller than any other, you can incorporate
it on your application with little overhead and without requiring external
libraries.
@@ -27,6 +24,6 @@ qmake
make
cp sqldrivers/libqsqlite3.so $TQTDIR/plugins/sqldrivers (probably as root)
-use it as any other Qt sql driver.
+use it as any other TQt sql driver.
-Have fun, Stefano !!! \ No newline at end of file
+Have fun, Stefano !!!
diff --git a/src/svnqt/cache/sqlite3/qsql_sqlite3.cpp b/src/svnqt/cache/sqlite3/qsql_sqlite3.cpp
index 6160eae..69c3163 100644
--- a/src/svnqt/cache/sqlite3/qsql_sqlite3.cpp
+++ b/src/svnqt/cache/sqlite3/qsql_sqlite3.cpp
@@ -323,12 +323,12 @@ void TQSQLite3Driver::close()
bool TQSQLite3Driver::ping()
{
if ( !isOpen() ) {
- return FALSE;
+ return false;
}
// FIXME
// Implement ping if available
- return TRUE;
+ return true;
}
TQSqlQuery TQSQLite3Driver::createQuery() const
@@ -389,7 +389,7 @@ TQStringList TQSQLite3Driver::tables(const TQString &typeName) const
int type = typeName.toInt();
TQSqlQuery q = createQuery();
- q.setForwardOnly(TRUE);
+ q.setForwardOnly(true);
if ((type & (int)TQSql::Tables) && (type & (int)TQSql::Views))
q.exec("SELECT name FROM sqlite_master WHERE type='table' OR type='view'");
else if (typeName.isEmpty() || (type & (int)TQSql::Tables))
@@ -419,7 +419,7 @@ TQSqlIndex TQSQLite3Driver::primaryIndex(const TQString &tblname) const
return TQSqlIndex();
TQSqlQuery q = createQuery();
- q.setForwardOnly(TRUE);
+ q.setForwardOnly(true);
// finrst find a UNIQUE INDEX
q.exec("PRAGMA index_list('" + tblname + "');");
TQString indexname;
@@ -451,7 +451,7 @@ TQSqlRecordInfo TQSQLite3Driver::recordInfo(const TQString &tbl) const
return TQSqlRecordInfo();
TQSqlQuery q = createQuery();
- q.setForwardOnly(TRUE);
+ q.setForwardOnly(true);
q.exec("SELECT * FROM " + tbl + " LIMIT 1");
return recordInfo(q);
}