QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
QGCSqlHelper Namespace Reference

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.
 

Detailed Description

Lightweight SQL utilities shared across QGC components.

Function Documentation

◆ applySqlitePragmas()

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().

◆ escapeLikePattern()

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.