All Manuals > LispWorks® User Guide and Reference Manual > 45 The SQL Package

add-sql-stream Function

Summary

Adds a stream to the broadcast list for SQL commands or results traffic.

Package

sql

Signature

add-sql-stream stream &key type database => added-stream

Arguments
stream
A stream, or t.
type
A keyword.
database
A database.
Values
added-stream
The argument stream.
Description

The function add-sql-stream adds the stream stream to the list of streams which receive SQL commands traffic or results traffic for database.

To add *standard-output* to the list, pass stream t.

type is one of :commands, :results or :both, and determines whether a stream for commands traffic, results traffic, or both is added. type defaults to :commands.

database defaults to the value of *default-database*.

See also

*default-database*
delete-sql-stream
list-sql-streams
sql-recording-p
sql-stream
start-sql-recording
stop-sql-recording


LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:56