Merge #21540: wallet: refactor: dedup sqlite statement preparations/d…

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

情報元 - Merge #21540: wallet: refactor: dedup sqlite statement preparations/d… · bitcoin/[email protected] · GitHub

Merge #21540: wallet: refactor: dedup sqlite statement preparations/d… · bitcoin/bitcoin@c0160ea · GitHub
スポンサーリンク

シェアする

フォローする

スポンサーリンク

トップへ戻る