• Skip to main content
  • Skip to header right navigation
  • Skip to site footer
CDP Studio logo

CDP Studio

The no-code and full-code software development tool for distributed control systems and HMI

  • Doc
  • Why CDP
    • Software developers
    • Automation engineers
    • Managers
  • Products
    • Automation Designer
    • HMI Designer
    • CDP Linux
  • Services
  • Use cases
  • Pricing
  • Try CDP

CDP Studio Documentation

  • Framework - CDP2SQL
  • CDP2SQL Namespace
  • 5.0.9

CDP2SQL Namespace

Header: #include <CDP2SQL>

Classes

class Database
class HasDatabaseConnection
class IDatabaseConnection
class IDatabaseQuery
class IDatabaseStatement
class Query
class SQLException
class SQLite3Factory
class Statement
class Transaction

Detailed Description

Simple generic database interface wrapper in C++. Supports different SQL database systems implementing the CDP2SQL::IDatabaseConnection interface.

This interface is loosely based on CppSQLite3:

  • CppSQLite3 - A C++ wrapper around the SQLite3 embedded database library.
  • Copyright (c) 2004 Rob Groves. All Rights Reserved. rob.groves@btinternet.com

Classes

class Database

Used for connecting to a database and executing simple commands and queries. More...

class HasDatabaseConnection

Generic base class for all the database holder objects. Should not be used directly. More...

class CDP2SQL::IDatabaseConnection

class CDP2SQL::IDatabaseQuery

class CDP2SQL::IDatabaseStatement

class Query

Class that is used for making queries to the database. More...

class CDP2SQL::SQLException

class SQLite3Factory

Creates a CDP2SQL::IDatabaseConnection object capable of creating a SQLite3 database. This should be passed into CDP2SQL::Database constructor. More...

class Statement

Class for handling SQL statements, including placeholder values. This can be used for insert, update, select etc. More...

class Transaction

Class for executing database transactions. More...

The content of this document is confidential information not to be published without the consent of CDP Technologies AS.

CDP Technologies AS, www.cdpstudio.com

Get started with CDP Studio today

Let us help you take your great ideas and turn them into the products your customer will love.

Try CDP Studio for free
Why CDP Studio?

CDP Technologies AS
Hundsværgata 8,
P.O. Box 144
6001 Ålesund, Norway

Tel: +47 990 80 900
E-mail: info@cdptech.com

Company

About CDP

Contact us

Services

Partners

Blog

Developers

Get started

User manuals

Support

Document download

Release notes

My account

Follow CDP

  • LinkedIn
  • YouTube
  • GitHub

© Copyright 2026 CDP Technologies. Privacy and cookie policy.

Return to top