Skip to content

Commit

Permalink
Use primary key in erase
Browse files Browse the repository at this point in the history
  • Loading branch information
bgs99 committed Jun 3, 2024
1 parent acb5f4f commit 979ce63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/podrm/sqlite/operations.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ std::optional<Entity> find(Connection &connection,
}

template <DatabaseEntity Entity>
void erase(Connection &connection, const std::int64_t key) {
void erase(Connection &connection, const PrimaryKeyType<Entity> & key) {
detail::erase(connection, DatabaseEntityDescription<Entity>, key);
}

Expand Down

0 comments on commit 979ce63

Please sign in to comment.