Main  /  Edit  /  History  /   /  Users Area

SQL Connectivity

CppCMS does not enforce you to use any particular SQL Connectivity library however, the project provides two useful libraries:

These libraries are not directly connected to CppCMS, but they were built to be useful for web development (and not only web ones).

There are other libraries like SOCI, QtSql and many others that provide similar functionality, however each one has its own drawbacks (from CppCMS author's point of view).

In fact SOCI was one of the major libraries that inspired me in both DbiXX and CppDB development and it is a very nice library in general that can be used with CppCMS (and in fact I had used it for a while with one of my projects)

If you plan to use other libraries, I recommend that you take the following into account:

  1. Does it uses prepared statements or provide auto-escaping? This is the most important feature. It should be a straightforward operation. Otherwise, you may be victim of SQL Injections.
  2. Is it exception safe and does it provides exception safe transactions?
  3. Does it support more than one database engine? Is this support good enough?

These are very important points that should be taken in consideration. The first two are mandatory for web development with CppCMS, the third one would prevent from you vendor lock-in.

About

CppCMS is a web development framework for performance demanding applications.

Support This Project

SourceForge.net Logo

Поддержать проект

CppCMS needs You


Navigation

Main Page


Valid CSS | Valid XHTML 1.0