Next Prev Up Top Contents Index

16.2.5 Database connection and disconnection

Once the database type has been initialized a connection can be established by calling connect with an appropriate connection-spec . A call to connect sets *default-database* to the database instance which represents the connection. All the other database functions described take a :database argument that can be either a database or a database name, and which defaults to the value of *default-database* .

To find all the database connection instances, call the function connected-databases . To retrieve the connection-spec for a connection instance, call database-name, and to find a connection instance use find-database. To printt status information about the existing connections, call status.

To close a connection to a database, use disconnect .

To reestablish a connection to a database, use reconnect .

16.2.5.1 Connection example


LispWorks User Guide - 18 Feb 2003

Next Prev Up Top Contents Index