我有这段代码(使用sqlalchemy):
session = self._new_session(database_id=dbname)
with session.begin():
result_proxy = session.execute(sql_query, sql_params)
,其中
sql_query = 'select * from t_client where id = :id'
sql_params = {'id': 5131}
如何在不使用正则表达式的情况下执行前查看实际查询?我的意思是这样的:
select * from t_client where id = 5131