Connection - Maple Programming Help

Home : Support : Online Help : Connectivity : Database Package : Connection : Database/Connection/GetCatalogs

Connection

 GetCatalogs
 get a list of catalogs from the database

 Calling Sequence connection:-GetCatalogs( )

Parameters

 connection - Connection module

Description

 • GetCatalogs returns an Array of catalog names (as strings) from the database connected to using connection.
 • The definition of the term catalog depends on the underlying database. On most systems, catalog refers to an individual database handled by the database server.

Examples

 > $\mathrm{driver}≔\mathrm{Database}[\mathrm{LoadDriver}]\left(\right):$
 > $\mathrm{conn}≔\mathrm{driver}:-\mathrm{OpenConnection}\left(\mathrm{url},\mathrm{name},\mathrm{pass}\right):$$\mathrm{conn}:-\mathrm{GetCatalogs}\left(\right)$
 $\left[{"Database1"}{,}{"Database2"}{,}{"Database3"}\right]$ (1)