Used to access and query relational databases using the SQL query language.
The SQL DB library allows developers to access and query relational databases using the SQL query language. It also provides functionality for securing databases and maintaining data integrity.
Intended audience:
This document is intended to be used by Symbian platform licensees and third party application developers.
SQL DB library details
The DLL that provides the functionality and the library to which your code must link is identified below.
The SQL database service is implemented using the standard Symbian platform client-server model.
Description
The SQL DB library allows you to access and query databases.
Accessing and querying databases
By accessing a database is meant creating, opening and closing it. By querying a database is meant any read or write operation performed by an SQL query, not just data retrieval.
Accessing databases
Database access operations include
creating and deleting databases
creating security policies and applying them to databases,
attaching and detaching databases to each other, and
opening and closing databases.
Querying databases
Database query operations include:
The key classes that make up the SQL DB component are as follows:
This class represents a database and provides the functionality to:
creates a secure shared, non-secure shared or private database
opens and closes named (and previously created) databases
attaches/detaches existing databases
copies named databases
deletes named databases
retrieves the security policy
sets the isolation level (currently supported levels - EReadUncommited, ESerializable)
Executes SQL statements (however, this functionality is intended for SQL statements that do not return data rows – see RSqlStatement for executing queries that return data).
retrieves database file size and free space
compacts the database
manages reserved drive space
The main responsibilities of this class are:
This class represents an SQL statement and provides the functionality to:
preparing SQL statements for execution
resetting previously prepared SQL statements
closing SQL statements
binding substitutable parameters into prepared SQL statements
executing prepared SQL statements (two methods provided: (a) Next() for SELECT statements and (b) Exec() for everything else)
iteration through the result set.
Retrieving the column count of the retrieved record(s)
Retrieving the type, declared type, index, size and value of a particular column of the retrieved record(s)
The main responsibilities of this class are:
This class holds the collection of user permissions that make up a security policy for a secure database.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.