| 83 | } |
| 84 | |
| 85 | sqlite sqlite::write(const fs::path& p) |
| 86 | { |
| 87 | sqlite r; |
| 88 | r.impl = std::make_shared<sqlite_impl>(); |
| 89 | // Using '+' instead of bitwise '|' to avoid compilation warning |
| 90 | r.impl->open(p, SQLITE_OPEN_READWRITE + SQLITE_OPEN_CREATE); |
| 91 | return r; |
| 92 | } |
| 93 | |
| 94 | std::vector<std::unordered_map<std::string, std::string>> sqlite::execute(const std::string& s) |
| 95 | { |