The build procedures for the C API SDK samples on all supported platforms are described in the "Getting Started" section. Note that the
native\core
directory contains some C++ sample sub-directories which can be viewed here. By default, all sample executables are built in thetarget/bin
directory, so after building the sample(s) it is convenient tocd
totarget/bin
to run the sample or run it in the development system debugger.Please use the links below to view the description and specific instructions for individual samples in the following sub-directories:
00-ddl Demonstrates use of the eXtremeDB schema compiler 01-rtconfig_inmem Displays runtime information for a simple All-In-Memory database 01-rtconfig_mixed Demonstrates a database schema with both persistent and transient classes
02-open_conv Opens a database in conventional memory 02-open_convhv Opens a database in conventional memory and allows HTTP access 02-open_dbextend Demonstrates extending a database in conventional memory 02-open_disk_file Opens a persistent database using FILE memory devices 02-open_disk_multifile Opens a persistent database using MULTIFILE memory devices 02-open_disk_raid Opens a persistent database using a RAID memory device 02-open_hybrid Opens a hybrid database (having both transient and persistent classes) 02-open_nvram Demonstrates recovery of a database in non-volatile memory 02-open_security_disk_cipher Opens a database protected by a cipher key 02-open_security_disk_crc Opens a database and protects its pages by CRC 02-open_shared Opens a database in shared memory 03-connect_multi-process Opens and connects to a database from multiple processes 03-connect_multi-task Opens and connects to a database from multiple tasks (threads) 03-connect_single-task Opens and connects to a database from a single task 04-operations Performs basic database insert, read, and update operations 05-indexes_btree_fulltext Demonstrates full text search operations with tree indexes 05-indexes_btree_locate Demonstrates the _locate()
and_compare()
cursor operations05-indexes_btree_pattern Demonstrates basic pattern search methods 05-indexes_btree_search Demonstrates search operations with tree
indexes05-indexes_collate Demonstrates custom collations for a tree
index05-indexes_cursor_basic Demonstrates basic cursor operations 05-indexes_cursor_store Demonstrates storing a cursor shared between transactions 05-indexes_hash Demonstrates operations on unique and non-unique hash
indexes05-indexes_kdtree Demonstrates kdtree
index operations05-indexes_patricia_binary Demonstrates patricia
tree match functions using a binary key (a vector of bits)Demonstrates
patricia
match functions using a character string keyDemonstrates
rtree
index operationsDemonstrates user-defined compare functions for a
tree
indexDemonstrates registering a fatal error handler
Demonstrates triggering a user-defined error handler
Demonstrates calling an extended error handler
Demonstrates handling of non-fatal error codes
Demonstrates handling of status codes
Demonstrates the difference in behavior using different isolation levels with the
MVCC
transaction managerDemonstrates how to iterate through committed objects within a two-phase transaction
Demonstrates the MUlti-Read SIngle-Write transaction manager
Demonstrates the
MVCC
transaction managerDemonstrates a (pseudo) nested transaction
Demonstrates a two-phase commit transaction to two in-memory databases
Demonstrates a two-phase commit to a disk based database
Demonstrates the difference in behavior using different transaction policies
Demonstrates the different eXtremeDB transaction types
Demonstrates eXtremeDB performance for basic database operations using randomized data
Demonstrates eXtremeDB performance for basic database operations using sequential data
Demonstrates eXtremeDB performance using the Performance Monitor API
Demonstrates performance for basic database operations using simple and
direct
structsDemonstrates performance for basic database operations using the Uniform Data Access API
Demonstrates basic BLOB operations
10-events_asynch Demonstrates asynchronous database event handling Demonstrates synchronous database event handling
Demonstrates the use of vectors and vector-based indexes
Demonstrates the use of the eXtremeDB XML export and import APIs
Demonstrates basic XML operations
Demonstrates the use of the XML Policy API
Demonstrates use of the
<classname>_xml_schema()
APIDemonstrates "Time To Live" policies
Demonstrates converting between UDA and native object handles
Demonstrates custom collations with tree & hash indexes using the UDA API
Demonstrates asynchronous and synchronous database event handling using the UDA API
Demonstrates use of the UDA Metadata API
Demonstrates use of the basic UDA APIs
mco_uda_db_open()
andmco_uda_db_close()
Demonstrates the UDA API in a variety of database operations
Demonstrates basic pattern search methods using the UDA API
Demonstrates user-defined tree and hash indexes with the UDA API
Demonstrates use of the eXtremeDB database memory calculation tool (with various command line options)
Demonstrates simple usage of the eXtremeDB database memory calculation tool API
Demonstrates how to obtain runtime database statistics
Demonstrates the Binary Schema Evolution of a database
Demonstrates saving an image (snapshot) of a database to disk
Demonstrates recovery of a persistent database from a backup file using the
mco_disk_save()
andmco_disk_load()
APIsDemonstrates recovery of a persistent database using the
mco_disk_save()
andmco_disk_load_file()
APIsDemonstrates recovery of the in-memory portion of a database to disk using the
mco_inmem_save()
andmco_inmem_load()
APIsDemonstrates migration of an existing disk database to a more recent eXtremeDB build or to a different schema
18-backup_online Demonstrates incremental backup and restore Demonstrates automatic recovery of a persistent database
Demonstrates database recovery using sniffer to detect dead connections
Demonstrates the use of a memory allocation callback for a persistent storage database
Demonstrates the use of a memory allocation callback for a transient (in-memory-only) database
Demonstrates the database browser
Demonstrates the database browser using the eXtremeDB performance monitor
24-rest_st Demonstrates the use of the Web Services REST AP in a single-threaded application 24-rest_mt Demonstrates the use of the Web Services REST API with the HTTP server 25-perfmon Demonstrates the use of the Performance Monitor C API to retrieve counters from the perfmon database using UDA