3
3
* @ingroup SQLiteCpp
4
4
* @brief Management of a SQLite Database Connection.
5
5
*
6
- * Copyright (c) 2012-2016 Sebastien Rombauts ([email protected] )
6
+ * Copyright (c) 2012-2017 Sebastien Rombauts ([email protected] )
7
7
*
8
8
* Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt
9
9
* or copy at http://opensource.org/licenses/MIT)
10
10
*/
11
11
#pragma once
12
12
13
13
#include < SQLiteCpp/Column.h>
14
+ #include < SQLiteCpp/Utils.h> // definition of nullptr for C++98/C++03 compilers
14
15
15
16
#include < string.h>
16
17
@@ -95,7 +96,7 @@ class Database
95
96
Database (const char * apFilename,
96
97
const int aFlags = SQLite::OPEN_READONLY,
97
98
const int aBusyTimeoutMs = 0 ,
98
- const char * apVfs = NULL );
99
+ const char * apVfs = nullptr );
99
100
100
101
/* *
101
102
* @brief Open the provided database UTF-8 filename.
@@ -309,10 +310,10 @@ class Database
309
310
* @param[in] aNbArg Number of arguments in the function
310
311
* @param[in] abDeterministic Optimize for deterministic functions (most are). A random number generator is not.
311
312
* @param[in] apApp Arbitrary pointer of user data, accessible with sqlite3_user_data().
312
- * @param[in] apFunc Pointer to a C-function to implement a scalar SQL function (apStep & apFinal NULL )
313
- * @param[in] apStep Pointer to a C-function to implement an aggregate SQL function (apFunc NULL )
314
- * @param[in] apFinal Pointer to a C-function to implement an aggregate SQL function (apFunc NULL )
315
- * @param[in] apDestroy If not NULL , then it is the destructor for the application data pointer.
313
+ * @param[in] apFunc Pointer to a C-function to implement a scalar SQL function (apStep & apFinal nullptr )
314
+ * @param[in] apStep Pointer to a C-function to implement an aggregate SQL function (apFunc nullptr )
315
+ * @param[in] apFinal Pointer to a C-function to implement an aggregate SQL function (apFunc nullptr )
316
+ * @param[in] apDestroy If not nullptr , then it is the destructor for the application data pointer.
316
317
*
317
318
* @throw SQLite::Exception in case of error
318
319
*/
@@ -337,10 +338,10 @@ class Database
337
338
* @param[in] aNbArg Number of arguments in the function
338
339
* @param[in] abDeterministic Optimize for deterministic functions (most are). A random number generator is not.
339
340
* @param[in] apApp Arbitrary pointer of user data, accessible with sqlite3_user_data().
340
- * @param[in] apFunc Pointer to a C-function to implement a scalar SQL function (apStep & apFinal NULL )
341
- * @param[in] apStep Pointer to a C-function to implement an aggregate SQL function (apFunc NULL )
342
- * @param[in] apFinal Pointer to a C-function to implement an aggregate SQL function (apFunc NULL )
343
- * @param[in] apDestroy If not NULL , then it is the destructor for the application data pointer.
341
+ * @param[in] apFunc Pointer to a C-function to implement a scalar SQL function (apStep & apFinal nullptr )
342
+ * @param[in] apStep Pointer to a C-function to implement an aggregate SQL function (apFunc nullptr )
343
+ * @param[in] apFinal Pointer to a C-function to implement an aggregate SQL function (apFunc nullptr )
344
+ * @param[in] apDestroy If not nullptr , then it is the destructor for the application data pointer.
344
345
*
345
346
* @throw SQLite::Exception in case of error
346
347
*/
@@ -368,7 +369,7 @@ class Database
368
369
* @note UTF-8 text encoding assumed.
369
370
*
370
371
* @param[in] apExtensionName Name of the shared library containing extension
371
- * @param[in] apEntryPointName Name of the entry point (NULL to let sqlite work it out)
372
+ * @param[in] apEntryPointName Name of the entry point (nullptr to let sqlite work it out)
372
373
*
373
374
* @throw SQLite::Exception in case of error
374
375
*/
0 commit comments