Skip to main content
Stack Overflow
  1. About
  2. For Teams

Timeline for SQLAlchemy: print the actual query

Current License: CC BY-SA 3.0

18 events
when toggle format what by license comment
May 10, 2023 at 7:31 answer added half of a glazier timeline score: 2
Sep 28, 2022 at 10:39 answer added ioedu timeline score: 1
Oct 13, 2021 at 13:39 answer added EliadL timeline score: 9
May 30, 2021 at 16:30 answer added Mark Mishyn timeline score: 5
Jun 16, 2018 at 12:47 answer added Vedran Šego timeline score: 159
Aug 7, 2017 at 15:58 answer added akshaynagpal timeline score: 63
Sep 25, 2015 at 0:16 answer added JamesHutchison timeline score: 11
Jun 24, 2015 at 18:53 comment added Jim DeLaHunt The new URL appears to be docs.sqlalchemy.org/en/latest/faq/… for @zzzeek's FAQ.
May 12, 2015 at 10:17 answer added jmagnusson timeline score: 23
Jun 13, 2014 at 12:37 review Suggested edits
Jun 13, 2014 at 12:39
May 23, 2014 at 18:05 answer added zzzeek timeline score: 356
Mar 27, 2012 at 21:41 answer added vvladymyrov timeline score: 14
Apr 20, 2011 at 16:17 history edited bukzor CC BY-SA 3.0
remove bad code; deleted 77 characters in body
Apr 18, 2011 at 3:54 vote accept bukzor
Apr 18, 2011 at 3:53 answer added bukzor timeline score: 82
Apr 12, 2011 at 16:14 comment added bukzor @Simon: there's two problems with using the logger: 1) it only prints when a statement is executing 2) I'd still have to do a string replace, except in that case, I wouldn't know the bind-template string exactly, and I'd have to somehow parse it out of the query text, making the solution more fragile.
Apr 12, 2011 at 8:22 comment added Simon I haven't, but you could probably build a less fragile solution by tapping into SQLAlchemy's sqlalchemy.engine log. It logs queries and bind parameters, you'd only have to replace the bind placeholders with the values on a readily constructed SQL query string.
Apr 12, 2011 at 6:12 history asked bukzor CC BY-SA 3.0
toggle format

AltStyle によって変換されたページ (->オリジナル) /