MCPcopy Create free account
hub / github.com/baumgarr/nixnote2 / getLastExecutedQuery

Function getLastExecutedQuery

sql/nsqlquery.cpp:62–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60
61
62QString getLastExecutedQuery(const QSqlQuery& query)
63{
64 QString str = query.lastQuery();
65 QMapIterator<QString, QVariant> it(query.boundValues());
66 while (it.hasNext())
67 {
68 it.next();
69 str.replace(it.key(),it.value().toString());
70 }
71 return str;
72}
73
74
75// Generic exec(). A prepare should have been done already

Callers

nothing calls this directly

Calls 2

valueMethod · 0.80
toStringMethod · 0.45

Tested by

no test coverage detected