about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--hkutil/database.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/hkutil/database.h b/hkutil/database.h index 5820728..67dd9c5 100644 --- a/hkutil/database.h +++ b/hkutil/database.h
@@ -131,7 +131,7 @@ namespace hatkirby {
131 } 131 }
132 } 132 }
133 133
134 void insertIntoTable( 134 uint64_t insertIntoTable(
135 std::string table, 135 std::string table,
136 std::list<column> columns) 136 std::list<column> columns)
137 { 137 {
@@ -181,6 +181,8 @@ namespace hatkirby {
181 { 181 {
182 throw sqlite3_error("Error writing to database", ppdb_.get()); 182 throw sqlite3_error("Error writing to database", ppdb_.get());
183 } 183 }
184
185 return sqlite3_last_insert_rowid(ppdb_.get());
184 } 186 }
185 187
186 std::vector<row> queryAll( 188 std::vector<row> queryAll(