diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-04-17 23:04:21 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-04-17 23:04:21 +0200 |
commit | aaa109565e4fb662e423f23bc48c9ad9831dd281 (patch) | |
tree | 78e26f0ac9109880732f5f20e94140e036d223a8 /src/libstore/sqlite.cc | |
parent | bdb32266079f13f687790426dcbe1941c6a959f0 (diff) |
Use a more space/time-efficient representation for the eval cache
Diffstat (limited to 'src/libstore/sqlite.cc')
-rw-r--r-- | src/libstore/sqlite.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libstore/sqlite.cc b/src/libstore/sqlite.cc index 63527a811..a1c262f5f 100644 --- a/src/libstore/sqlite.cc +++ b/src/libstore/sqlite.cc @@ -61,6 +61,11 @@ void SQLite::exec(const std::string & stmt) }); } +uint64_t SQLite::getLastInsertedRowId() +{ + return sqlite3_last_insert_rowid(db); +} + void SQLiteStmt::create(sqlite3 * db, const string & sql) { checkInterrupt(); |