@@ -13919,20 +13919,20 @@ namespace sqlite_orm {
13919
13919
namespace internal {
13920
13920
13921
13921
struct connection_holder {
13922
- connection_holder(std::string fileName , std::function<void(sqlite3*)> onAfterOpen) :
13923
- _onAfterOpen{std::move(onAfterOpen)}, fileName (std::move(fileName )) {}
13922
+ connection_holder(std::string filename , std::function<void(sqlite3*)> onAfterOpen) :
13923
+ _onAfterOpen{std::move(onAfterOpen)}, filename (std::move(filename )) {}
13924
13924
13925
13925
connection_holder(const connection_holder&) = delete;
13926
13926
13927
13927
connection_holder(const connection_holder& other, std::function<void(sqlite3*)> onAfterOpen) :
13928
- _onAfterOpen{std::move(onAfterOpen)}, fileName {other.fileName } {}
13928
+ _onAfterOpen{std::move(onAfterOpen)}, filename {other.filename } {}
13929
13929
13930
13930
void retain() {
13931
13931
// first one opens the connection.
13932
13932
// we presume that the connection is opened once in a single-threaded context [also open forever].
13933
13933
// therefore we can just use an atomic increment but don't need sequencing due to `prevCount > 0`.
13934
13934
if (_retainCount.fetch_add(1, std::memory_order_relaxed) == 0) {
13935
- int rc = sqlite3_open_v2(this->fileName .c_str(),
13935
+ int rc = sqlite3_open_v2(this->filename .c_str(),
13936
13936
&this->db,
13937
13937
SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE,
13938
13938
nullptr);
@@ -13981,7 +13981,7 @@ namespace sqlite_orm {
13981
13981
const std::function<void(sqlite3* db)> _onAfterOpen;
13982
13982
13983
13983
public:
13984
- const std::string fileName ;
13984
+ const std::string filename ;
13985
13985
};
13986
13986
13987
13987
struct connection_ref {
0 commit comments