The Sqlite C++ API


by Mark Mahoney


This is a short introduction to using SQLite in a C++ program. It covers how to use the SQLite API to create tables, insert, retrieve, update, and delete data. The first program does not use an OO approach. The second one does. The third program shows how to use transactions. After reading these programs you should be able to write your own C++ programs that interact with a database.