> All members, including inherited
◆ connect()
- Parameters
-
driverName | name of the database driver. If the driver is not loaded, an attempt will be made to load the driver based on the template aui.DRIVERNAME (aui.DRIVERNAME.dll for Windows, libaui.DRIVERNAME.so for Linux, etc...). If the driver failed to load SQLException will be thrown. |
address | server host (IP address or domain) |
port | server port |
databaseName | name of the database |
username | user name; optional in some DBMS |
password | user password; optional in some DBMS |
- Returns
- object for communicating with the database; in some DBMS - optional
- Exceptions
-
◆ execute()
int ASqlDatabase::execute |
( |
const AString & | query, |
|
|
const AVector< AVariant > & | params = {} ) |
- Parameters
-
query | the SQL query |
params | query arguments |
- Returns
- number of affected rows
- Exceptions
-
◆ getDriverType()
SqlDriverType ASqlDatabase::getDriverType |
( |
| ) |
|
◆ query()
- Parameters
-
query | the SQL query |
params | query arguments |
- Returns
- query result
- Exceptions
-