[Python] Creating SQLite database if it doesn't exist

Discussão em 'Python' iniciado por Stack, Abril 26, 2025.

  1. Stack

    Stack Membro Participativo

    I am trying out SQLAlchemy and I am using this connection string:

    engine = create_engine('sqlite:///C:\\sqlitedbs\\database.db')


    Does SQLAlchemy create an SQLite database if one is not already present in a directory it was supposed to fetch the database file?

    Continue reading...

Compartilhe esta Página