frictionlessdata / tableschema-sql-py

Generate SQL tables, load and extract data, based on JSON Table Schema descriptors.
MIT License
60 stars 19 forks source link

Should support database engines other then postgresql #64

Closed OriHoch closed 6 years ago

OriHoch commented 7 years ago

Overview

For now only PostgreSQL is tests (and thereof supported).

Plan


From @OriHoch

reproduction steps

expected

actual

notes


From @vshih

import sqlalchemy as sa
engine = sa.create_engine('mysql://...')
from jsontableschema import Table
t = Table(SOURCE, SCHEMA)
t.save('test_package', backend='sql', engine=engine)
# _mysql_exceptions.ProgrammingError: (1146, "Table 'mydatabase.users' doesn't exist")

related #64

OriHoch commented 7 years ago

https://github.com/frictionlessdata/jsontableschema-sql-py/blob/master/jsontableschema_sql/mappers.py#L11