From e6077c30d14e9d662e8843c554db86c0d366d0b6 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 6 Jun 2024 13:44:12 +0900 Subject: Rename str nt* related files to equivalent tq* Signed-off-by: Michele Calgaro --- doc/html/tqsqldatabase.html | 74 ++++++++++++++++++++++----------------------- 1 file changed, 37 insertions(+), 37 deletions(-) (limited to 'doc/html/tqsqldatabase.html') diff --git a/doc/html/tqsqldatabase.html b/doc/html/tqsqldatabase.html index 57846d91d..492a542d4 100644 --- a/doc/html/tqsqldatabase.html +++ b/doc/html/tqsqldatabase.html @@ -117,7 +117,7 @@ for executing and manipulating SQL queries (see TQSqlQ

See also Database Classes.


Member Function Documentation

-

TQSqlDatabase::TQSqlDatabase ( const TQString & type, const TQString & name, TQObject * parent = 0, const char * objname = 0 ) [protected] +

TQSqlDatabase::TQSqlDatabase ( const TQString & type, const TQString & name, TQObject * parent = 0, const char * objname = 0 ) [protected]

Creates a TQSqlDatabase connection called name that uses the driver referred to by type, with the parent parent and the @@ -151,7 +151,7 @@ so it should not be deleted. Destroys the object and frees any allocated resources. -

TQSqlDatabase * TQSqlDatabase::addDatabase ( const TQString & type, const TQString & connectionName = defaultConnection ) [static] +

TQSqlDatabase * TQSqlDatabase::addDatabase ( const TQString & type, const TQString & connectionName = defaultConnection ) [static]

Adds a database to the list of database connections using the driver type and the connection name connectionName. @@ -171,7 +171,7 @@ than once without specifying connectionName.

See also database() and removeDatabase().

Examples: sql/overview/connect1/main.cpp, sql/overview/connection.cpp, and sql/sqltable/main.cpp. -

TQSqlDatabase * TQSqlDatabase::addDatabase ( TQSqlDriver * driver, const TQString & connectionName = defaultConnection ) [static] +

TQSqlDatabase * TQSqlDatabase::addDatabase ( TQSqlDriver * driver, const TQString & connectionName = defaultConnection ) [static]

This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

This function is useful if you need to set up the database connection and instantiate the driver yourself. If you do this, it @@ -246,7 +246,7 @@ an overview of the drivers and their constructor arguments. TQTDS7 TQTDSDriver -LOGINREC* loginRecord, DBPROCESS* dbProcess, const TQString& hostName +LOGINREC* loginRecord, DBPROCESS* dbProcess, const TQString& hostName tqsql_tds.cpp TQSQLITE @@ -281,14 +281,14 @@ transactions. Returns TRUE if the operation succeeded; otherwise returns FALSE.

See also TQSqlDriver::hasFeature() and rollback(). -

TQString TQSqlDatabase::connectOptions () const +

TQString TQSqlDatabase::connectOptions () const

Returns the database connect options. See the "connectOptions" property for details. -

bool TQSqlDatabase::contains ( const TQString & connectionName = defaultConnection ) [static] +

bool TQSqlDatabase::contains ( const TQString & connectionName = defaultConnection ) [static]

Returns TRUE if the list of database connections contains connectionName; otherwise returns FALSE. -

TQSqlDatabase * TQSqlDatabase::database ( const TQString & connectionName = defaultConnection, bool open = TRUE ) [static] +

TQSqlDatabase * TQSqlDatabase::database ( const TQString & connectionName = defaultConnection, bool open = TRUE ) [static]

Returns the database connection called connectionName. The database connection must have been previously added with @@ -301,7 +301,7 @@ in threaded applications. Please see the Thre threading and SQL databases.

Examples: sql/overview/basicbrowsing/main.cpp and sql/overview/create_connections/main.cpp. -

TQString TQSqlDatabase::databaseName () const +

TQString TQSqlDatabase::databaseName () const

Returns the name of the database. See the "databaseName" property for details.

TQSqlDriver * TQSqlDatabase::driver () const @@ -309,17 +309,17 @@ See the "databaseName" proper Returns the database driver used to access the database connection. -

TQString TQSqlDatabase::driverName () const +

TQString TQSqlDatabase::driverName () const

Returns the name of the driver used by the database connection. -

TQStringList TQSqlDatabase::drivers () [static] +

TQStringList TQSqlDatabase::drivers () [static]

Returns a list of all the available database drivers.

Note that if you want to iterate over the list, you should iterate over a copy, e.g.

-    TQStringList list = TQSqlDatabase::drivers();
+    TQStringList list = TQSqlDatabase::drivers();
     TQStringList::Iterator it = list.begin();
     while( it != list.end() ) {
         myProcessing( *it );
@@ -328,18 +328,18 @@ over a copy, e.g.
     
-

TQSqlQuery TQSqlDatabase::exec ( const TQString & query = TQString::null ) const +

TQSqlQuery TQSqlDatabase::exec ( const TQString & query = TQString::null ) const

Executes a SQL statement (e.g. an INSERT, UPDATE or DELETE statement) on the database, and returns a TQSqlQuery object. Use lastError() to retrieve error information. If query is -TQString::null, an empty, invalid query is returned and lastError() +TQString::null, an empty, invalid query is returned and lastError() is not affected.

See also TQSqlQuery and lastError(). -

TQString TQSqlDatabase::hostName () const +

TQString TQSqlDatabase::hostName () const

Returns the host name where the database resides. See the "hostName" property for details. -

bool TQSqlDatabase::isDriverAvailable ( const TQString & name ) [static] +

bool TQSqlDatabase::isDriverAvailable ( const TQString & name ) [static]

Returns TRUE if a driver called name is available; otherwise returns FALSE. @@ -370,7 +370,7 @@ information can be retrieved using the lastError() func

See also lastError().

Examples: sql/overview/connect1/main.cpp, sql/overview/connection.cpp, and sql/sqltable/main.cpp. -

bool TQSqlDatabase::open ( const TQString & user, const TQString & password ) +

bool TQSqlDatabase::open ( const TQString & user, const TQString & password )

This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

Opens the database connection using the given user name and password. Returns TRUE on success; otherwise returns FALSE. Error @@ -380,18 +380,18 @@ the password is passed directly to the driver for opening a connection and is then discarded.

See also lastError(). -

TQString TQSqlDatabase::password () const +

TQString TQSqlDatabase::password () const

Returns the password used to connect to the database. See the "password" property for details.

int TQSqlDatabase::port () const

Returns the port used to connect to the database. See the "port" property for details. -

TQSqlIndex TQSqlDatabase::primaryIndex ( const TQString & tablename ) const +

TQSqlIndex TQSqlDatabase::primaryIndex ( const TQString & tablename ) const

Returns the primary index for table tablename. If no primary index exists an empty TQSqlIndex will be returned. -

TQSqlRecord TQSqlDatabase::record ( const TQString & tablename ) const +

TQSqlRecord TQSqlDatabase::record ( const TQString & tablename ) const

Returns a TQSqlRecord populated with the names of all the fields in the table (or view) called tablename. The order in which the @@ -407,7 +407,7 @@ used in the SQL query. If the query is a "SELECT *" the order in which fields appear in the record is undefined.

See also recordInfo(). -

TQSqlRecordInfo TQSqlDatabase::recordInfo ( const TQString & tablename ) const +

TQSqlRecordInfo TQSqlDatabase::recordInfo ( const TQString & tablename ) const

Returns a TQSqlRecordInfo populated with meta data about the table or view tablename. If no such table (or view) exists, an empty @@ -423,7 +423,7 @@ information than the recordInfo() function which takes a table as parameter.

See also TQSqlRecordInfo, TQSqlFieldInfo, and record(). -

void TQSqlDatabase::registerSqlDriver ( const TQString & name, const TQSqlDriverCreatorBase * creator ) [static] +

void TQSqlDatabase::registerSqlDriver ( const TQString & name, const TQSqlDriverCreatorBase * creator ) [static]

This function registers a new SQL driver called name, within the SQL framework. This is useful if you have a custom SQL driver @@ -438,7 +438,7 @@ and don't want to compile it as a plugin.

Warning: The framework takes ownership of the creator pointer, so it should not be deleted. -

void TQSqlDatabase::removeDatabase ( const TQString & connectionName ) [static] +

void TQSqlDatabase::removeDatabase ( const TQString & connectionName ) [static]

Removes the database connection connectionName from the list of database connections. @@ -464,32 +464,32 @@ transactions. Returns TRUE if the operation succeeded; otherwise returns FALSE.

See also TQSqlDriver::hasFeature(), commit(), and transaction(). -

void TQSqlDatabase::setConnectOptions ( const TQString & options = TQString::null ) +

void TQSqlDatabase::setConnectOptions ( const TQString & options = TQString::null )

Sets the database connect options to options. See the "connectOptions" property for details. -

void TQSqlDatabase::setDatabaseName ( const TQString & name ) [virtual] +

void TQSqlDatabase::setDatabaseName ( const TQString & name ) [virtual]

Sets the name of the database to name. See the "databaseName" property for details. -

void TQSqlDatabase::setHostName ( const TQString & host ) [virtual] +

void TQSqlDatabase::setHostName ( const TQString & host ) [virtual]

Sets the host name where the database resides to host. See the "hostName" property for details. -

void TQSqlDatabase::setPassword ( const TQString & password ) [virtual] +

void TQSqlDatabase::setPassword ( const TQString & password ) [virtual]

Sets the password used to connect to the database to password. See the "password" property for details.

void TQSqlDatabase::setPort ( int p ) [virtual]

Sets the port used to connect to the database to p. See the "port" property for details. -

void TQSqlDatabase::setUserName ( const TQString & name ) [virtual] +

void TQSqlDatabase::setUserName ( const TQString & name ) [virtual]

Sets the user name connected to the database to name. See the "userName" property for details. -

TQStringList TQSqlDatabase::tables ( TQSql::TableType type ) const +

TQStringList TQSqlDatabase::tables ( TQSql::TableType type ) const

Returns a list of the database's tables, system tables and views, as specified by the parameter type.

Note that if you want to iterate over the list, you should iterate over a copy, e.g.

-    TQStringList list = myDatabase.tables( TQSql::Tables | TQSql::Views );
+    TQStringList list = myDatabase.tables( TQSql::Tables | TQSql::Views );
     TQStringList::Iterator it = list.begin();
     while( it != list.end() ) {
         myProcessing( *it );
@@ -499,7 +499,7 @@ over a copy, e.g.
  
 
 

Example: sql/sqltable/main.cpp. -

TQStringList TQSqlDatabase::tables () const +

TQStringList TQSqlDatabase::tables () const

This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

Returns a list of the database's tables that are visible to the @@ -508,7 +508,7 @@ function that takes a table type parameter.

Note that if you want to iterate over the list, you should iterate over a copy, e.g.

-    TQStringList list = myDatabase.tables();
+    TQStringList list = myDatabase.tables();
     TQStringList::Iterator it = list.begin();
     while( it != list.end() ) {
         myProcessing( *it );
@@ -524,11 +524,11 @@ transactions. Returns TRUE if the operation succeeded; otherwise
 returns FALSE.
 

See also TQSqlDriver::hasFeature(), commit(), and rollback(). -

TQString TQSqlDatabase::userName () const +

TQString TQSqlDatabase::userName () const

Returns the user name connected to the database. See the "userName" property for details.


Property Documentation

-

TQString connectOptions

+

TQString connectOptions

This property holds the database connect options.

The format of the options string is a semi-colon separated list of option names or option = value pairs. The options depend on the @@ -608,7 +608,7 @@ prior to opening the database connection. Setting new options without re-opening the connection does nothing.

See also

Set this property's value with setConnectOptions() and get this property's value with connectOptions(). -

TQString databaseName

+

TQString databaseName

This property holds the name of the database.

Note that the database name is the TNS Service Name for the TQOCI8 (Oracle) driver. @@ -631,12 +631,12 @@ entry in the ODBC manager:

There is no default value.

Set this property's value with setDatabaseName() and get this property's value with databaseName(). -

TQString hostName

+

TQString hostName

This property holds the host name where the database resides.

There is no default value.

Set this property's value with setHostName() and get this property's value with hostName(). -

TQString password

+

TQString password

This property holds the password used to connect to the database.

There is no default value.

Warning: This function stores the password in plain text within @@ -650,7 +650,7 @@ avoid this behaviour.

There is no default value.

Set this property's value with setPort() and get this property's value with port(). -

TQString userName

+

TQString userName

This property holds the user name connected to the database.

There is no default value. -- cgit v1.2.3