Source

fabulator / src / fabulator / core / db / __init__.py

from mysql import MySQL
from pgsql import PgSQL

databases = {
    "mysql" : MySQL,
    "pgsql" : PgSQL,
}

def database_factory(database, conf, env):
    return databases[database.lower()](conf, env)