File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ std::shared_ptr<DatabaseManager> setupDatabaseManager()
70
70
71
71
// Ownership of the shared_ptr()
72
72
return DB::create ({
73
- #if !PROJECT_TINYDRIVERS || TINYDRIVERS_MYSQL_DRIVER
73
+ #if !defined( PROJECT_TINYDRIVERS) || defined( TINYDRIVERS_MYSQL_DRIVER)
74
74
// MySQL connection
75
75
{QStringLiteral (" tinyorm_tom_mysql" ), { // shell:connection
76
76
{driver_, QMYSQL},
@@ -122,7 +122,7 @@ std::shared_ptr<DatabaseManager> setupDatabaseManager()
122
122
{options_, ConfigUtils::mariaSslOptions ()},
123
123
}},
124
124
#endif
125
- #if !PROJECT_TINYDRIVERS || TINYDRIVERS_PSQL_DRIVER
125
+ #if !defined( PROJECT_TINYDRIVERS) || defined( TINYDRIVERS_PSQL_DRIVER)
126
126
// PostgreSQL connection
127
127
{QStringLiteral (" tinyorm_tom_postgres" ), { // shell:connection
128
128
{driver_, QPSQL},
@@ -157,7 +157,7 @@ std::shared_ptr<DatabaseManager> setupDatabaseManager()
157
157
{options_, ConfigUtils::postgresSslOptions ()},
158
158
}},
159
159
#endif
160
- #if !PROJECT_TINYDRIVERS || TINYDRIVERS_SQLITE_DRIVER
160
+ #if !defined( PROJECT_TINYDRIVERS) || defined( TINYDRIVERS_SQLITE_DRIVER)
161
161
// SQLite connection
162
162
{QStringLiteral (" tinyorm_tom_sqlite" ), { // shell:connection
163
163
{driver_, QSQLITE},
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ std::shared_ptr<DatabaseManager> setupDatabaseManager()
86
86
87
87
// Ownership of the shared_ptr()
88
88
return DB::create ({
89
- #if !PROJECT_TINYDRIVERS || TINYDRIVERS_MYSQL_DRIVER
89
+ #if !defined( PROJECT_TINYDRIVERS) || defined( TINYDRIVERS_MYSQL_DRIVER)
90
90
// MySQL connection
91
91
{sl (" tinyorm_testdata_tom_mysql" ), { // shell:connection
92
92
{driver_, QMYSQL},
@@ -137,7 +137,7 @@ std::shared_ptr<DatabaseManager> setupDatabaseManager()
137
137
{options_, ConfigUtils::mariaSslOptions ()},
138
138
}},
139
139
#endif
140
- #if !PROJECT_TINYDRIVERS || TINYDRIVERS_PSQL_DRIVER
140
+ #if !defined( PROJECT_TINYDRIVERS) || defined( TINYDRIVERS_PSQL_DRIVER)
141
141
// PostgreSQL connection
142
142
{sl (" tinyorm_testdata_tom_postgres" ), { // shell:connection
143
143
{driver_, QPSQL},
@@ -163,7 +163,7 @@ std::shared_ptr<DatabaseManager> setupDatabaseManager()
163
163
{options_, ConfigUtils::postgresSslOptions ()},
164
164
}},
165
165
#endif
166
- #if !PROJECT_TINYDRIVERS || TINYDRIVERS_SQLITE_DRIVER
166
+ #if !defined( PROJECT_TINYDRIVERS) || defined( TINYDRIVERS_SQLITE_DRIVER)
167
167
// SQLite connection
168
168
{sl (" tinyorm_testdata_tom_sqlite" ), { // shell:connection
169
169
{driver_, QSQLITE},
You can’t perform that action at this time.
0 commit comments