Required Parameters
- driver: The JDBC driver class name in the cross-platform edition or the ADO.NET provider name in the .NET edition.
- conn: The connection string or database URL.
Optional Parameters
- includesystemviews: Whether to include system views. The allowed values are
trueorfalse. The default isfalse. - schema: The name of the database schema from which to list the views. The schema is commonly referred to as the namespace of a group of tables and views.
- catalog: The catalog in the database server. This is commonly referred to as the database. If you do not provide a value, views from all catalogs in the database server are returned.
Output Attributes
- db:name: The name of the view.
- db:type: The type of the view.
- db:schema: The schema to which the view belongs.
- db:catalog: The catalog to which the view belongs. This is commonly referred to as the database.
Example
In this example, the targeted database server is MySQL and the targeted catalog (database) issakila. Notice that there is no database parameter in the connection string: if the database is specified in the connection string, the catalog parameter is not required. This script writes all the attributes of the target catalog (database) to an output file.
driver and conn inputs as follows: