Skip to content

Commit

Permalink
MapD backend ibis_testing database creation.
Browse files Browse the repository at this point in the history
  • Loading branch information
xmnlab committed Apr 30, 2018
1 parent 69d16c6 commit 14f230f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions ci/datamgr.py
Expand Up @@ -291,6 +291,18 @@ def mapd(schema, tables, data_directory, **params):

# connection
click.echo('Initializing MapD...')
if params['database'] != 'mapd':
conn = pymapd.connect(
host=params['host'], user=params['user'],
password=params['password'],
port=params['port'], dbname='mapd'
)
try:
conn.execute('CREATE DATABASE {}'.format(params['database']))
except Exception as e:
click.echo(e)
conn.close()

conn = pymapd.connect(
host=params['host'], user=params['user'],
password=params['password'],
Expand Down

0 comments on commit 14f230f

Please sign in to comment.