|
QGroundControl
Ground Control Station for MAVLink Drones
|
Lightweight SQL utilities shared across QGC components. More...
Classes | |
| class | ScopedConnection |
Functions | |
| QString | escapeLikePattern (const QString &text) |
| void | applySqlitePragmas (QSqlDatabase &db) |
| Applies standard QGC pragmas: WAL journal mode + NORMAL synchronous. | |
Lightweight SQL utilities shared across QGC components.
| void QGCSqlHelper::applySqlitePragmas | ( | QSqlDatabase & | db | ) |
Applies standard QGC pragmas: WAL journal mode + NORMAL synchronous.
Definition at line 18 of file QGCSqlHelper.cc.
Referenced by QGCSqlHelper::ScopedConnection::ScopedConnection().
| QString QGCSqlHelper::escapeLikePattern | ( | const QString & | text | ) |
Escapes SQL LIKE wildcards (%, _, ) so the string matches literally. Use with "LIKE ? ESCAPE '\\'" in the query.
Definition at line 9 of file QGCSqlHelper.cc.