CONNECTED-DATABASES
Prev | Connection and Initialisation | Next

## Name

CONNECTED-DATABASES — Return the list of active database objects.Function

## Syntax

          connected-databases => databases

## Arguments and Values

databases

  The list of active database objects.

## Description

This function returns the list of active database objects, i.e. all those database objects created by calls to `connect`, which have not been closed by calling `disconnect` on them.

### Caution

The consequences of modifying the list returned by `connected-databases` are undefined.

## Examples

    (connected-databases)
    => NIL
    (connect '(nil "template1" "dent" nil) :database-type :postgresql)
    => #<CLSQL-POSTGRESQL:POSTGRESQL-DATABASE {4830BC65}>
    (connect '("dent" "newesim" "dent" "dent") :database-type :mysql)
    => #<CLSQL-MYSQL:MYSQL-DATABASE {4830C5AD}>
    (connected-databases)
    => (#<CLSQL-MYSQL:MYSQL-DATABASE {4830C5AD}>
        #<CLSQL-POSTGRESQL:POSTGRESQL-DATABASE {4830BC65}>)
    (disconnect)
    => T
    (connected-databases)
    => (#<CLSQL-POSTGRESQL:POSTGRESQL-DATABASE {4830BC65}>)
    (disconnect)
    => T
    (connected-databases)
    => NIL

## Side Effects

None.

## Affected By

`connect`
`disconnect`

## Exceptional Situations

None.

## See Also

`disconnect`
`connect`
`status`
`find-database`

## Notes

None.

Prev | Up | Next
CONNECT | Home | DATABASE-NAME