Closed ra-esmith closed 3 years ago
@ra-esmith I think this question is out of scope of this library. But I do can give you some solution:
I am about to allow to use any private SQL database to host the data in next release. Then you just need
from uszipcode.pkg.sqlalchemy_mate import engine_creator
from uszipcode import SearchEngine
engine = engine_creator.create_postgresql(username, password, host, port, database)
se = SearchEngine(..., engine=engine)
now it uses the psql and skip the sqlite db file download process
Hello, the documentation suggests
"(RECOMMEND) Dump the sqlite database to any relational database like Postgres, MySQL, and inject the database connection info in your application server."
Could you elaborate on what needs to be done ... to use postgres?
Not sure of what code changes one needs to make etc ...
Thanks! Evan