Define Schema Filters
When you connect API Creator to a database, you can have access only a small part of the database instead of reading the schema, including all tables, views, stored procedures, and functions in the given schema. You can do this by defining schema filters. While defining your data source, you can define which parts of the database schema you want to read using regular expressions. You specify these as a list of Java regular expressions.
lac32
When you connect API Creator to a database, you can have
CA Live API Creator
access only a small part of the database instead of reading the schema, including all tables, views, stored procedures, and functions in the given schema. You can do this by defining schema filters. While defining your data source, you can define which parts of the database schema you want CA Live API Creator
to read using regular expressions. You specify these as a list of Java regular expressions.- With your API open, in the Create section, clickData Sources.The Data Sources page appears. The Connection tab displays by default.
- Click theSchema Filterstab.
- Complete the following, and then save your changes:
- Enter a line for each entity you want to include or exclude into theInclude tables/viewsorExclude tables/viewslists using Java regular expression syntax. Separate each line with a carriage return, line feed, or a combination of these.
- Enter a line for each stored procedure or function you want to include or exclude into theInclude stored procedures/functionsor Excludestored procedures/functionslists using Java regular expression syntax. Separate each line with a carriage return, line feed, or a combination of these.
Requirements:- If you do not enter an expression in theInclude tables/viewslist,CA Live API Creatorreads all tables and views.
- If you do not enter an expression in theInclude stored procedures/functionslist,CA Live API Creatorreads all stored procedures and functions.
- If you enter at least one expression in theInclude tables/viewslist, thenCA Live API Creatorreads all the tables and views whose name satisfies at least one of the regular expressions and ignores all other tables and views. In particular, in the case of tables, if you do not include the parent and the child,CA Live API Creatorignores the foreign keys.
- If you enter at least one expression in theInclude stored procedures/functionslist, thenCA Live API Creatorreads all the stored procedures and functions whose name satisfies at least one of the regular expressions and ignores all other stored procedures and functions.
- If you do not enter an expression in theExclude tables/viewslist, thenCA Live API Creatorreads all functions (subject to the entries in theInclude tables/viewslist).
- If you do not enter an expression in the Excludestored procedures/functionslist, thenCA Live API Creatorreads all stored procedures and functions (subject to the expressions you have specified in theInclude tables/viewslist).
- If you enter at least one expression in theExclude tables/viewslist, thenCA Live API Creatorignores all tables and views that match at least one of the expressions you have specified in the list.
- If you enter at least one expression in the Excludestored procedures/functionslist, thenCA Live API Creatorignores all stored procedures and functions that match at least one of the expressions you have specified in the list.
ExamplesDescriptionJava Regular ExpressionAll objects whose name starts with A, B, a or b[ABab].*All objects whose name consists of two words, optionally separated by a dash\w[-]?\wNamed objectsMyTableMyOtherTableMyThirdTableFor more information about the syntax for Java regular expressions, see the Oracle documentation.
You schema filters are defined.