#!python
# Copyright (C) 2012 the DB2CSV authors and contributors
# <see AUTHORS file>
#
# This module is part of DB2CSV and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php

if __name__ == '__main__':

    from db2csv import Database, Parser

    parser = Parser()
    db = Database(parser.db_uri,
                  parser.dst_dir,
                  parser.zip,
                  parser.verbose,
                  parser.src_encoding)
    db.archive(parser.includes,
               parser.excludes,
               parser.chunk_size)
