Core API For C/C++ Database Samples

What is a Database Sample? It’s a taste of the real thing. These are fully contained, downloadable database functionality samples of our Raima Database Manager (RDM) , and each download highlights a certain feature within RDM. Click on the Database Samples links to view the complete series for each API. Duration = 5 minutes or less.

Note: Windows samples require Visual Studio 2013 or later and Linux samples require a standard Linux development environment.

Database examples

Downloadable Database Samples

Windows.........  

Linux 32- bit ...............................

 

Linux 64-bit ..............................

Description
Hello World Hello World Hello World Hello World. Pre-initialized database. Create one record, read all records & print string.
Core02 Core02 Core02 Hello World. If database doesn’t exist (first time), it will be created. If it does exist, new records will be added. Same create/read algorithm as in HelloWorld.
Core03 Core03 Core03 Set instance. Create database containing two record types and a set between them. Create one owner, several members, then scan owner(s) and their members.
Core04 Core04 Core04 Hierarchy. Create two levels with three record types.
Core05 Core05 Core05 Indexing. Add 5 new records with random index values. Scan through index & print records in order. Each run adds 5 more records in the database.
Core06 Core06 Core06 Mixed model. Combine set scanning and index lookup for navigation of a hierarchy.
Core07 Core07 Core07 Many-to-many. Three record types, two sets constructing a many-to-many relationship. Populate with a few records. Scan from one side, then scan from the other side.
Core08 Core08 Core08 Multiple databases. Create/initialize two databases. Populate them. Incrementally open them in the same task. Use "database number" to demonstrate usage of both databases from same task.
Core09 Core09 Core09 Multiple databases opened in a union. Demonstrate key scan through the union.
Core10 Core10 Core10 Currency. Using hierarchical database, find a leaf record through an index, make it the current member of its set, navigate up. Show other members of owner records.
Core11 Core11 Core11 Transaction. Create records in a transaction. Commit. Navigate through created records.
Core12 Core12 Core12 Transaction abort. Commit ont transaction, then begin another transaction and abort it. Navigate through created records to see only committed records.
Core13 Core13 Core13 Shared mode. All previous databases were using 'x' mode. This one creates two tasks. In the first one, a database is created and populated. In the second one, the database is opened and read is attempted but times out.
Core14 Core14 Core14 Multi-user. Begin multiple writer threads that will use transactions. Begin multiple reader threads that will use read locks.
Core15 Core15 Core15 TFServer. Spawn tfserver. Begin multiple writer and reader threads that use tfserver.
Core16 Core16 Core16 Multi-process. Spawn tfserver. Begin multiple writer and reader processes that use tfserver in client/server mode.
Core17 Core17 Core17 Read-Only-Transactions. Spawn tfserver. Begin multiple writer and reader processes, but readers use MVCC read-only-transactions.