SQL-RECORDING-P
Prev | SQL I/O Recording | Next

## Name

SQL-RECORDING-P — Tests whether SQL commands or results are being recorded.Function

## Syntax

          sql-recording-p &key type database => result

## Arguments and Values

`type`

  One of the following keyword symbols: :commands, :results, :both or :either defaulting to :commands.

`database`

  A database object. This will default to *default-database*.

`result`

  A Boolean.

## Description

Predicate to test whether the SQL recording specified by `type` is currently enabled for `database` which defaults to *default-database*. `type` may be one of :commands, :results, :both or :either, defaulting to :commands, otherwise `NIL` is returned.

## Examples

    (start-sql-recording :type :commands)
    =>
    (sql-recording-p :type :commands)
    => T
    (sql-recording-p :type :both)
    => NIL
    (sql-recording-p :type :either)
    => T

## Side Effects

None.

## Affected by

`start-sql-recording`
`stop-sql-recording`

## Exceptional Situations

None.

## See Also

`start-sql-recording`
`stop-sql-recording`

## Notes

The :both and :either values for the `type` keyword argument are CLSQL extensions.

Prev | Up | Next
STOP-SQL-RECORDING | Home | SQL-STREAM