You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+33-2Lines changed: 33 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -194,12 +194,43 @@ Use `std::vector<T>` to store and retrieve blob data.
194
194
};
195
195
```
196
196
197
-
Dealing with NULL values
197
+
NULL values
198
198
=====
199
-
If you have databases where some rows may be null, you can use boost::optional to retain the NULL value between C++ variables and the database. Note that you must enable the boost support by defining _MODERN_SQLITE_BOOST_OPTIONAL_SUPPORT befor importing the header.
199
+
If you have databases where some rows may be null, you can use `std::unique_ptr<T>` to retain the NULL values between C++ variables and the database.
200
200
201
201
```c++
202
+
db << "CREATE TABLE tbl (id integer,age integer, name string, img blob);";
0 commit comments