Skip to main content
Skip table of contents

Annotations Sample Code

The etc\annotation directory (C:\ProgramData\STR\SuperSERVER SA\etc\annotation) contains sample code for the annotations:

  • etc\annotation\Financial.sxv4.sqlite.db
  • etc\annotation\README.txt
  • etc\annotation\financial.sql
  • etc\annotation\schema.sql

The annotation engine uses a Public Domain relational database implementation, SQLite, available from http://www.sqlite.org.

The SuperSERVER installation includes the necessary run-time components of SQLite to allow annotations to be processed by the server. However, to configure annotations in the database it is necessary to obtain an SQL command line utility, sqlite3.exe.

You can download this for Windows and Linux installations from the 'downloads' page at http://www.sqlite.org.

The SuperSERVER implementation requires at least version 3.3 to operate correctly.

SQLite is often shipped automatically with Linux installations, but this may be an older (incompatible) version of SQLite (for example GNU/Linux 2.6.13-15-smp ships with SQLite v2.8.16).

To determine the version of a previously installed sqlite3.exe from a DOS shell or Linux command prompt invoke the command:

POWERSHELL
> sqlite3 -version

Create a new Annotations Database

The SuperSERVER implementation associates the SQLite database with a SuperSERVER database by name. For example, annotations for the Retail Banking sample database would be stored in a file called Retail Banking.sxv4.sqlite.db.

To create a new annotations database perform the following steps:

  1. Open a command prompt.
  2. Change directory to the database directory of the SuperSERVER installation.
  3. Run the command:

    POWERSHELL
    > sqlite3 <YourDBName>.sxv4.sqlite.db
  4. At the SQLite command prompt run following command to configure the schema:

    POWERSHELL
    sqlite> .read ..\etc\annotation\schema.sql
  5. Add annotations using SQL Insert statements (from the sqlite3 command prompt) for your table.

    To exit SQLite type the EOF character (normally Ctrl-D).
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.