File tree Expand file tree Collapse file tree 2 files changed +0
-5
lines changed Expand file tree Collapse file tree 2 files changed +0
-5
lines changed Original file line number Diff line number Diff line change 1
1
import os
2
2
import sqlalchemy as db
3
- from sqlalchemy_utils import database_exists , create_database
4
3
5
4
import models
6
5
39
38
40
39
engine = db .create_engine (DB )
41
40
42
- if not database_exists (engine .url ):
43
- create_database (engine .url )
44
-
45
41
with engine .connect () as connection :
46
42
models .Base .metadata .create_all (connection )
47
43
# This is safe: by default, will check first to ensure tables don't already exist
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ pandas==1.0.0
3
3
numpy == 1.18.1
4
4
fuzzywuzzy == 0.17.0
5
5
sqlalchemy < 1.4.0 # Import error with 1.4.0 on _ColumnEntity
6
- sqlalchemy_utils
7
6
psycopg2-binary == 2.8.4
8
7
python-Levenshtein-wheels
9
8
xlrd == 1.2.0 # currently used for xlsx, but we should consider adjusting code to openpyxl for xlsx
You can’t perform that action at this time.
0 commit comments