We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8901553 + 65f719d commit 9667c52Copy full SHA for 9667c52
include/SQLiteCpp/Database.h
@@ -120,6 +120,20 @@ class Database
120
const int aBusyTimeoutMs = 0,
121
const std::string& aVfs = "");
122
123
+#if __cplusplus >= 201103L
124
+ /**
125
+ * @brief Move an SQLite database connection.
126
+ *
127
+ * @param[in] aDb Database to move
128
+ */
129
+ inline Database(Database&& aDb) noexcept :
130
+ mpSQLite(aDb.mpSQLite),
131
+ mFilename(std::move(aDb.mFilename))
132
+ {
133
+ aDb.mpSQLite = nullptr;
134
+ }
135
+#endif
136
+
137
/**
138
* @brief Close the SQLite database connection.
139
*
0 commit comments