diff options
| author | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-10-06 20:43:52 +0100 |
|---|---|---|
| committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-10-06 20:43:52 +0100 |
| commit | 63d6bf7395425be73fd6d9f5c89dc48817afffe6 (patch) | |
| tree | 98a98671e7676202dcf24b1ef700a9240b999e78 /src/util.hpp | |
| parent | 5aa9cca0d2ff25c541d7df3b63519c28eb75b656 (diff) | |
| download | webstat-63d6bf7395425be73fd6d9f5c89dc48817afffe6.tar.bz2 webstat-63d6bf7395425be73fd6d9f5c89dc48817afffe6.tar.xz webstat-63d6bf7395425be73fd6d9f5c89dc48817afffe6.zip | |
Add parked line import jobwebstat-0.2
Periodically, on idle, scan for and import previously parked lines.
Diffstat (limited to 'src/util.hpp')
| -rw-r--r-- | src/util.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util.hpp b/src/util.hpp index d712d3b..ad55604 100644 --- a/src/util.hpp +++ b/src/util.hpp @@ -23,6 +23,8 @@ namespace WebStat { values); } + using FilePtr = std::unique_ptr<std::FILE, DeleteWith<&fclose>>; + template<typename... T> void bindMany(const DB::CommandPtr & cmd, unsigned int firstParam, T &&... param) |
