diff options
author | fanquake <fanquake@gmail.com> | 2021-04-07 14:09:13 +0800 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2021-04-07 14:17:25 +0800 |
commit | c0160ea52ea849d7a10f9f5c97100b434e62d798 (patch) | |
tree | 0682f3e79f994252f518560c0e9722b1fdbd3b29 /src/Makefile.qt_locale.include | |
parent | 41a8d2b96ff5cbc2efa9b0996f30228d0a625fdb (diff) | |
parent | ea19cc844e780b29825b26aee321204be981a3ae (diff) | |
download | bitcoin-c0160ea52ea849d7a10f9f5c97100b434e62d798.tar.xz |
Merge #21540: wallet: refactor: dedup sqlite statement preparations/deletions
ea19cc844e780b29825b26aee321204be981a3ae wallet: refactor: dedup sqlite statement deletions (Sebastian Falbesoner)
9a3670930eaf6b495f81ef9c5f6e68883a3a2750 wallet: refactor: dedup sqlite statement preparations (Sebastian Falbesoner)
Pull request description:
This refactoring PR deduplicates repeated SQLite statement preparation calls (`sqlite3_prepare_v2(...)`) / deletions (`sqlite3_finalize(...)`) and its surrounding logic by putting each prepared statement and its corresponding text representation into a ~std::map~ ~`std::array`~ `std::vector`. This should be more readable and less error-prone, e.g. in case an additional statement needs to be added in the future or the error handling has to be adapted.
ACKs for top commit:
achow101:
ACK ea19cc844e780b29825b26aee321204be981a3ae
meshcollider:
utACK ea19cc844e780b29825b26aee321204be981a3ae
Tree-SHA512: ced89869b2147e088e7a4cda2acbbdd4a806f66dbc2d6999953d0d702c0655aa53c0eb699cc7e5e3732f2d24206d577a9d9e1b5de7f439100dead2696ade1092
Diffstat (limited to 'src/Makefile.qt_locale.include')
0 files changed, 0 insertions, 0 deletions