Samples for C/C++, .NET, Python, PHP and Erlang

C and C++

Creates a Database, inserts some items, searches for these items and deletes them.

Uses a Cursor to copy one Database to another; this can also be used to copy an In-Memory Database into a file Database and vice versa.

Demonstrates how to use upscaledb for sorting large amounts of data. Reads a text file from stdin and stores all words in a database. Then prints all words in alphabetically sorted order.

Demonstrates the use of Record Number Databases. Reads a text file from stdin and creates a Database entry for every word. Then prints all words in the original order.

Demonstrates the use of duplicate items. Reads a text file from stdin and creates a Database entry for every word, even if the word is a duplicate. Then prints all words in alphabetical order and prints the line number of each occurrence.

Same as db1.c, but written in C++.

Shows how to use Environments. Simulates a Customer/Order database.

Shows how to use Environments. Simulates a Customer/Order database with a 1:n relationships between the two.

Same as env2.c, but written in C++.

A network client which connects to server1 and performs remote database operations.

An embedded network server which uses the upscaledb server API (upsserver). Hosts databases for client1.c.

Demonstrates UQI - the upscaledb query interface.

Demonstrates a complex UQI queries which applies a user-supplied predicate function to filter data.

.NET (C#, Visual Basic.NET)

SampleDb1 (C#)
Creates a Database, inserts some items, searches for these items and deletes them.

SampleEnv3 (C#)
Shows how to use Environments. Simulates a Customer/Order database with a 1:n relationships between the two.

SampleEnv3 (Visual Basic.NET)
Creates a Database, inserts some items, searches for these items and deletes them.

Python

Creates a Database, inserts some items, searches for these items and deletes them.

PHP

Creates a Database, inserts some items, searches for these items and deletes them.

Demonstrates UQI - the upscaledb query interface.

Erlang

This file contains a variety of tests which demonstrate the upscaledb APIs for Erlang.