Naughter Software Logo

SQLiteWrappers v1.40 A set of C++ classes to encapsulate SQLite

Welcome to SQLiteWrappers, a set of C++ classes to encapsulate SQLite v3. The code below shows a simple example to open a database and add a row to a table called "tblTest" with one text column (without any error handling!):

 

SQLite3:CDB db;
db.Open16(L"database.db");
db.Exec("INSERT INTO tblTest VALUES ('sample text');");

 

Here's a further example to run a simple parameterized query to do an INSERT on the previously mentioned "tblTest":

SQLite3::CStatment stmt;
stmt.Prepare16v2(db, L"INSERT INTO tblTest VALUES(?);");
char* szData = "More Sample Text";
stmt.Bind(1, szData);
stmt.Step();

 

The classes provided are as follows:

 

 

Features

 

The enclosed zip file contains the SQLiteWrappers source code and a simple VC 2017 console based application which demonstrates most of the classes functionality.

 

Copyright

 

Updates

v1.40 (28 March 2024)

v1.39 (5 February 2024)

v1.37 (12 January 2024)

v1.36 (2 November 2023)

17 September 2023

v1.35 (27 August 2023)

11 June 2023

19 March 2023

v1.34 (24 February 2023)

29 December 2022

v1.33 (23 November 2022)

8 October 2022

18 September 2022

6 August 2022

v1.32 (16 July 2022)

v1.31 (18 March 2022)

v1.30 (12 February 2022)

v1.29 (21 January 2022)

v1.28 (11 July 2021)

11 May 2021

2 April 2021

v1.27 (13 March 2021)

v1.26 (30 January 2021)

v1.25 (5 December 2020)

20 August 2020

v1.24 (14 June 2020)

v1.23 (24 May 2020)

v1.22 (16 May 2020)

v1.21 (25 January 2020)

v1.20 (18 December 2019)

v1.19 (11 October 2019)

v1.18 (11 July 2019)

v1.17 (17 April 2019)

v1.16 (7 April 2019)

v1.15 (9 February 2019)

v1.14 (20 January 2019)

v1.13 (29 October 2018)

v1.12 (30 June 2018)

v1.11 (4 June 2018)

v1.10 (18 March 2018)

v1.09 (28 December 2017)

v1.08 (20 August 2017)

v1.07 (29 April 2017)

v1.06 (18 March 2017)

v1.05 (25 March 2016)

v1.04 (23 February 2013)

v1.03 (21 July 2012)

v1.02 (7 July 2012)

v1.01 (28 June 2012)

v1.0 (13 June 2012)