Name

DATABASE-TYPE — Get the type of a database object.Generic Function

Syntax

      database-type DATABASE => type

Arguments and Values

database

A database object, either of type database or of type closed-database.

type

A keyword symbol denoting a known database back-end.

Description

Returns the type of database.

Examples

(connect '(nil "template1" "dent" nil) :database-type :postgresql)
=> #<CLSQL-POSTGRESQL:POSTGRESQL-DATABASE {48392D2D}>
(database-type *default-database*)
=> :postgresql 
      

Side Effects

None.

Affected by

None.

Exceptional Situations

Will signal an error if the object passed as the database parameter is neither of type database nor of type closed-database.

See Also

connect
find-database
connected-databases
disconnect
status

Notes

database-type is a CLSQL extension.