htsql-firebird / src / htsql_oracle / core /

Full commit
# Copyright (c) 2006-2011, Prometheus Research, LLC
# See `LICENSE` for license information, `AUTHORS` for the list of authors.


This package provides HTSQL for Oracle.

from . import connect, domain, introspect, split_sql, tr
from htsql.core.addon import Addon

class EngineOracleAddon(Addon):

    name = ''
    hint = """implements HTSQL for Oracle"""
    help = """
    This extension implements HTSQL for Oracle database server.

    This extension is loaded automatically when the engine of
    the database URI is set to `oracle`.
    packages = ['.', '.tr']

    def __init__(self, app, attributes):
        if app.htsql.db.engine != 'oracle':
            raise ImportError("oracle engine is expected")
        super(EngineOracleAddon, self).__init__(app, attributes)