Last active
June 4, 2021 11:31
-
-
Save piotrkilczuk/9f03ff2a20a923085242eade1c4b6c35 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sqlalchemy import create_engine | |
from sqlalchemy.orm import Session | |
engine = create_engine("sqlite:///mydatabase.db") | |
connection = engine.connect() | |
transaction = connection.begin() | |
session = Session(bind=connection) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment