@@ -206,6 +206,11 @@ class CORE_EXPORT QgsAuxiliaryStorage
206
206
/* *
207
207
* Constructor.
208
208
*
209
+ * The project filename is used to build a database path at the same
210
+ * location, but with a different extension. Then, it's the same logic as
211
+ * described for \see QgsAuxiliaryStorage(const QString &, bool copy).
212
+ *
213
+ *
209
214
* \param project The project for which the auxiliary storage has to be used
210
215
* \param copy Parameter indicating if a copy of the database has to be used
211
216
*/
@@ -214,6 +219,21 @@ class CORE_EXPORT QgsAuxiliaryStorage
214
219
/* *
215
220
* Constructor.
216
221
*
222
+ * If a valid database path is given in parameter and copy mode is
223
+ * deactivated, then every changes is directly committed on the original
224
+ * database. But if the copy mode is activated, then changes are committed
225
+ * on a copy of the database (a temporary file) and a save action is
226
+ * therefore necessary to keep modifications in the original file.
227
+ *
228
+ * If an empty string for the database path is given in parameter, then
229
+ * a database is created in a temporary file whatever the copy mode.
230
+ *
231
+ * If the database path given in parameter is not empty but does not exist,
232
+ * then a database is created at this location when copy mode is
233
+ * deactivated. When copy mode is activated, a temporary database is used
234
+ * instead and a save action will be necessary to create the database at
235
+ * the original location given in parameter.
236
+ *
217
237
* \param filename The path of the database
218
238
* \param copy Parameter indicating if a copy of the database has to be used
219
239
*/
0 commit comments