|
#include <DatabaseTests.h>
Public Member Functions | |
| DatabaseTests () | |
| void | addDatabaseConnection (const DatabaseConnectionString &connectionString) |
| std::vector< DatabaseConnectionString > | connectionStrings () const |
| DatabaseConnectionString | connectionString (const String &driverName) const |
Common operations used by database-related unit tests
| sptk::DatabaseTests::DatabaseTests | ( | ) |
Constructor
| void sptk::DatabaseTests::addDatabaseConnection | ( | const DatabaseConnectionString & | connectionString | ) |
Add database connection to future tests. Only one connection string is allowed per database type (driver name).
| connectionString | Database connection string |
| DatabaseConnectionString sptk::DatabaseTests::connectionString | ( | const String & | driverName | ) | const |
Get connection string for database type (driver name).
| driverName | Driver name |
| std::vector< DatabaseConnectionString > sptk::DatabaseTests::connectionStrings | ( | ) | const |
Get list of added database connections
|
static |
Test batch SQL
| connectionString | Database connection string |
|
static |
Test BLOB insert and select
| connectionString | Database connection string |
|
static |
Test bulk insert operation
| connectionString | Database connection string |
|
static |
Test bulk insert operation performance
| connectionString | Database connection string |
| recordCount | Records to insert during test |
|
static |
Test database connection
| connectionString | Database connection string |
|
static |
Test basic DDL statements
| connectionString | Database connection string |
|
static |
Test InsertQuery returning created value
| connectionString |
|
static |
Test InsertQuery returning created value
| connectionString |
|
static |
Test query inserting date
| connectionString |
|
static |
Test query inserting date
| connectionString |
|
static |
Test parametrized queries
| connectionString | Database connection string |
|
static |
Global database tests collection
|
static |
Test SELECT statements
| connectionString | Database connection string |
|
static |
Test SELECT statements
| connectionString | Database connection string |
|
static |
Test transaction
| connectionString | Database connection string |