I want to print the SQL statements generated on INSERT, UPDATE, DELTE queries send by sqlalchemy db session. I am using sqlalchemy as ORM and sqlite3 database. I know I can print the SQL of a query using this.
Like it is shown below
INSERT INTO Table (id) VALUES (?)
(1)
But I want to print the query and parameter in one line like this
INSERT INTO Table (id) VALUES (1);
I only want to print the INSERT, UPDATE and DELETE queries.
How can I do this?