A predicate for determining if SQL commands or results traffic is being recorded.
sql-recording-p &key type database => recording-p
t if type is
:commands and SQL commands traffic is being recorded, or if type is
:results and SQL results traffic is being recorded. Otherwise it returns
The default value of type is
:commands. The default value of database is the value of *default-database*.
LispWorks User Guide and Reference Manual - 20 Sep 2017