Symbian Developer Library

SYMBIAN OS V6.1 EXAMPLE CODE

[Index] [Previous] [Next]



DBMS example code

These examples relate to the DBMS component.


Basics—demonstrates basic use of the DBMS

Found in: epoc32ex\Base\Dbms\Basics


Description

This is an example of database manipulation using the DBMS.

Initially the database is created as a permanent file store, using CFileStore routines. A table ("CDs") is created with three fields ("Artist", "Title" and "Price") and this is then indexed on the "Artist" and "Title" fields.

To prove the correct action of the previous code, the example iterates through the database, printing the contents to the console. Finally, the database is closed and the example exits.


Usage

The example should be run from the command line with no parameters.


Classes used