From 449b7cf2ddc094c375ddfd0392c928f1759e5570 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Thu, 5 Dec 2024 07:23:03 +0100 Subject: [PATCH] SQLite --- README.md | 2 +- index.html | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2fef625..dfe53c3 100644 --- a/README.md +++ b/README.md @@ -1938,7 +1938,7 @@ with : # Exits the block with commit() o from sqlalchemy import create_engine, text = create_engine('') # Url: 'dialect://user:password@host/dbname'. = .connect() # Creates a connection. Also .close(). - = .execute(text(''), …) # Replaces ':'s with keyword arguments. + = .execute(text(''), …) # ``. Replaces ':'s with values. with .begin(): ... # Exits the block with commit or rollback. ``` diff --git a/index.html b/index.html index bf65fa6..d18dab7 100644 --- a/index.html +++ b/index.html @@ -55,7 +55,7 @@
- +
@@ -1602,7 +1602,7 @@ CompletedProcess(args=['bc', from sqlalchemy import create_engine, text <engine> = create_engine('<url>') # Url: 'dialect://user:password@host/dbname'. <conn> = <engine>.connect() # Creates a connection. Also <conn>.close(). -<cursor> = <conn>.execute(text('<query>'), …) # Replaces ':<key>'s with keyword arguments. +<cursor> = <conn>.execute(text('<query>'), …) # `<dict>`. Replaces ':<key>'s with values. with <conn>.begin(): ... # Exits the block with commit or rollback. @@ -2924,7 +2924,7 @@ $ deactivate # Deactivates the active