MIRA
|
The database module contains classes and functions to create, alter and access databases.
Classes for accessing SQLite databases are wrappers around the C library sqlite3 (see http://www.sqlite.org/). They allow executing commands and queries in an object-oriented way. SQLite databases are file-based and therefore allow easy copying of database files across multiple systems.
Since SQLite databases are file-based, one needs to remove an existing file before creating a new SQLite database.
Creating a SQLiteDB object opens the given database file if it exists or creates a new one. After the database is successfully opened, one can create and alter tables via executing statements.
For a complete list of the SQLite syntax (SQLite understands most of the standard SQL language), see http://www.sqlite.org/lang.html
The database needs to be opened for accessing it. One can execute queries on the database with the query method.