Skip to content
Advertisement

sqlalchemy,creating an sqlite database if it doesn’t exist

I am trying out sqlalchemy and i am using this connection string to connect to my databases

Does sqlalchemy create an sqlite database for you if one is not already present in a directory it was supposed to fetch the database file?.

Advertisement

Answer

Yes,sqlalchemy does create a database for you.I confirmed it on windows using this code

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement