# Path: memsql_loader/util/config.py
# COMMANDS = OrderedDict([
#     ('load', load.RunLoad),
#     ('ps', ps.Processes),
#     ('jobs', jobs.Jobs),
#     ('job', job.Job),
#     ('tasks', tasks.Tasks),
#     ('task', task.Task),
#     ('cancel-job', cancel_job.CancelJob),
#     ('cancel-task', cancel_task.CancelTask),
#     ('server', server.Server),
#     ('status', status.Status),
#     ('stop-server', stop_server.StopServer),
#     ('clear-loader-db', clear_loader_db.ClearLoaderDb),
#     ('log', log_cmd.Log)
# ])
# def make_parser():
# def load_options(args=None):
# 
# Path: memsql_loader/db/pool.py
# _POOL = connection_pool.ConnectionPool()
#     _POOL = connection_pool.ConnectionPool()
# def recreate_pool():
# def close_connections():
# def get_connection(host, port, database, user, password, pooled=True, **kwargs):


import os
    import apsw         # noqa
    import textwrap
from memsql_loader.util import config
from memsql_loader.db import pool

try:
except ImportError:
    print(textwrap.dedent("""\

        Almost there!

        MemSQL Loader requires the APSW library to be installed.  It is not
        available on PyPi so you must install it manually.  Here is a one-liner
        for the pip command:

            pip install \\
                -e "git+git://github.com/rogerbinns/apsw.git@26b61c39a98db3ccad7f852adc944b0b8e94c242#egg=apsw" \\
                --global-option="fetch" --global-option="--sqlite" --global-option="--missing-checksum-ok" \\
                --global-option="build" --global-option="--enable-all-extensions"
        """))
    os._exit(1)


def main():

# Path: memsql_loader/util/config.py
# COMMANDS = OrderedDict([
#     ('load', load.RunLoad),
#     ('ps', ps.Processes),
#     ('jobs', jobs.Jobs),
#     ('job', job.Job),
#     ('tasks', tasks.Tasks),
#     ('task', task.Task),
#     ('cancel-job', cancel_job.CancelJob),
#     ('cancel-task', cancel_task.CancelTask),
#     ('server', server.Server),
#     ('status', status.Status),
#     ('stop-server', stop_server.StopServer),
#     ('clear-loader-db', clear_loader_db.ClearLoaderDb),
#     ('log', log_cmd.Log)
# ])
# def make_parser():
# def load_options(args=None):
# 
# Path: memsql_loader/db/pool.py
# _POOL = connection_pool.ConnectionPool()
#     _POOL = connection_pool.ConnectionPool()
# def recreate_pool():
# def close_connections():
# def get_connection(host, port, database, user, password, pooled=True, **kwargs):


# Path: memsql_loader/main.py
import os
    import apsw         # noqa
    import textwrap
from memsql_loader.util import config
from memsql_loader.db import pool


try:
except ImportError:
    print(textwrap.dedent("""\

        Almost there!

        MemSQL Loader requires the APSW library to be installed.  It is not
        available on PyPi so you must install it manually.  Here is a one-liner
        for the pip command:

            pip install \\
                -e "git+git://github.com/rogerbinns/apsw.git@26b61c39a98db3ccad7f852adc944b0b8e94c242#egg=apsw" \\
                --global-option="fetch" --global-option="--sqlite" --global-option="--missing-checksum-ok" \\
                --global-option="build" --global-option="--enable-all-extensions"
        """))
    os._exit(1)


def main():

    options = config.load_options()