- 为 Sqlite3 与 Sqlite3_stmt 显式 delete 拷贝、实现 noexcept 移动构造/赋值 - 析构函数判空后释放,防止重复释放与 use-after-free - ~Sqlite3() 改用 sqlite3_close_v2,确保所有 statement 释放后再关闭 - stmt() 参数改为 const std::string&,支持字符串字面量 - 成员指针显式初始化为 nullptr,errMsg 初始化为 nullptr
- 为 Sqlite3 与 Sqlite3_stmt 显式 delete 拷贝、实现 noexcept 移动构造/赋值 - 析构函数判空后释放,防止重复释放与 use-after-free - ~Sqlite3() 改用 sqlite3_close_v2,确保所有 statement 释放后再关闭 - stmt() 参数改为 const std::string&,支持字符串字面量 - 成员指针显式初始化为 nullptr,errMsg 初始化为 nullptr