SQLite

Installation

There are no special requirements for SQLite since it is already included in python.

The shell command sqlite3 is required. This is available in standard distributions. Version >3.20.x required (not the case on Ubuntu 14.04).

Configuration examples

import mara_db.dbs
mara_db.config.databases = lambda: {
    'dwh': mara_db.dbs.SQLiteDB(
        file_name='database.db'),
}


API reference

This section contains database specific API in the module.

Configuration

class mara_db.dbs.SQLiteDB(file_name: pathlib.Path)
__init__(file_name: pathlib.Path) None
property sqlalchemy_url

Returns the SQLAlchemy url for a database