diff options
| author | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-09-10 11:32:28 +0200 |
|---|---|---|
| committer | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-09-10 11:32:28 +0200 |
| commit | c791858db3de3568f0ea2839c79b360a0dfb15ab (patch) | |
| tree | 7cf50c93cdf03075d10c14c8ad1f7a646b2a05c7 /QSThingsPlugin/Helpers/SQLHelper.h | |
Initial commit
Diffstat (limited to 'QSThingsPlugin/Helpers/SQLHelper.h')
| -rw-r--r-- | QSThingsPlugin/Helpers/SQLHelper.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/QSThingsPlugin/Helpers/SQLHelper.h b/QSThingsPlugin/Helpers/SQLHelper.h new file mode 100644 index 0000000..fc63650 --- /dev/null +++ b/QSThingsPlugin/Helpers/SQLHelper.h @@ -0,0 +1,16 @@ +/** + Helper class to access the things sqlite database. + */ +@interface SQLHelper : NSObject +{ +} + +/** + Execute an SQL query on the things database + @param query the SQL query. Must contain output fieldnames "url" and "title". + @param path file path to the database + @returns an array of Task objects. Will return empty if an error occurs. + */ ++ (NSArray *) executeSql:(NSString *)query onFile:(NSString *)path; + +@end |