diff options
author | Carlo Nucera <carlo.nucera@protonmail.com> | 2020-07-16 13:36:01 -0400 |
---|---|---|
committer | Carlo Nucera <carlo.nucera@protonmail.com> | 2020-07-16 13:36:01 -0400 |
commit | 745a03cef5977e3474dcf8ef43cb721a6a7cac8e (patch) | |
tree | 2c6b0a9ad5bcdddbc8ca0fdc1693092d2e726aff /src/libstore/sqlite.hh | |
parent | 230c9b4329b3d285e57f4cce058c121256187da1 (diff) | |
parent | 048e916f6477acc7e57e1d85e832d3efb42ad3f6 (diff) |
Merge branch 'optional-derivation-output-storepath' of github.com:obsidiansystems/nix into ca-derivation-data-types
Diffstat (limited to 'src/libstore/sqlite.hh')
-rw-r--r-- | src/libstore/sqlite.hh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libstore/sqlite.hh b/src/libstore/sqlite.hh index dd81ab051..99f0d56ce 100644 --- a/src/libstore/sqlite.hh +++ b/src/libstore/sqlite.hh @@ -26,6 +26,8 @@ struct SQLite void isCache(); void exec(const std::string & stmt); + + uint64_t getLastInsertedRowId(); }; /* RAII wrapper to create and destroy SQLite prepared statements. */ @@ -54,7 +56,7 @@ struct SQLiteStmt ~Use(); /* Bind the next parameter. */ - Use & operator () (const std::string & value, bool notNull = true); + Use & operator () (std::string_view value, bool notNull = true); Use & operator () (const unsigned char * data, size_t len, bool notNull = true); Use & operator () (int64_t value, bool notNull = true); Use & bind(); // null |