From funkaster at gmail.com Mon Oct 29 22:33:02 2007
From: funkaster at gmail.com (Rolando Abarca)
Date: Mon, 29 Oct 2007 23:33:02 -0300
Subject: [sqlite-ruby-users] trying to log sql calls
Message-ID: <0422FF33-45D6-4E02-8633-821EA520BB87@gmail.com>
Hi,
I'm writing an application, and I'm using Sqlite3 as my primary DB
engine. I want to trace the sql queries, and for that I used the
trace function:
self.connection.trace { |data, sql| logger.color_debug(self,
"SQLite3: #{sql}") }
But this is logging the queries before binding the variables. Is
there a way to know what's the final query? I mean, after binding the
variables?
thanks a lot,
--
Rolando Abarca
Phone: +56-9 97851962