The C++ embedded SQL samples use the McoSqlEngine and related classes to encapsulate the native C functions demonstrated in the C API embedded SQL samples. By default, all sample executables are built in the
eXtremeDB/target/bindirectory so, after building the sample(s), it is convenient tocdtotarget/binto run the sample or, as recommended, step through the code in the development system debugger.Please use the links below to view the description and specific instructions for individual samples in the following subdirectories:
Demonstrates the use of class StdAllocator to register a custom dynamic memory allocator for SQL statement execution.Populates an all-in-memory database from an external CSV file.Demonstrates basic application initialization for C++ SQL Access.Opens and initializes a RAID database.Demonstrates shutting down the McoSqlEngine.Demonstrates SQL operations using the MURSIW Transaction Manager.Demonstrates SQL operations using the MURSIW Transaction Manager with two database instances.Demonstrates SQL operations using the MVCC Transaction Manager.Demonstrates SQL operations using a persistent database.Demonstrates a two-phase database transaction.Demonstrates the use of virtual tables in combination with an eXtremeDB database.Demonstrates the use of theblob(Binary Large Object) data type.Demonstrates the use of thevectordata type.Demonstrates the use of class fields of typestruct.Demonstrates searches with a Btree index.Demonstrates cursor operations with a Btree index.Demonstrates SQLselectstatements on unique and non-unique hash indexes.Demonstrates cursor operations with a Patricia index.Demonstrates spatial searches with an Rtree index.Performs joins through variedselectstatements.Demonstrates the use of thegroup byclause.Demonstrates use of the SQL math functions.Demonstrates the client-side implementation of a client-server application.Demonstrates the server-side implementation of a client-server application.Demonstrates the use of thesequencedata type.Demonstrates how to create an interactive SQL utility using the DistributedSqlEngine class.Demonstrates how to use an SqlAggregator to manage database shards in a local process.Demonstrates the use of DDL statements in a cluster environment using the SQL API (included in eXtremeDB Cluster packages with eXtremeSQL).Demonstrates the use of the SQL C++ API in a cluster.Demonstrates the master-side implementation of HA using the SQL API.Demonstrates the replica-side implementation of HA using the SQL API.Demonstrates the use of standard ODBC functions in conjunction with the eXtremeSQL ODBC driver to connect to the in-memory database.Demonstrates an implementation of the Transaction Processing Performance Council Benchmark B.Demonstrates an implementation of the Transaction Processing Performance Council Benchmark B using eXtremeDB Transaction Logging.