This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
oaenv:home [2009/12/07 18:37] tdo |
oaenv:home [2012/10/26 14:46] (current) |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| {{page>:top_add&nofooter&noeditbtn}} | {{page>:top_add&nofooter&noeditbtn}} | ||
| - | <html><div align="center"><span style="color:red">DRAFT</span></div></html> | + | |
| ====== OMNIDEX Environment Catalog Syntax ====== | ====== OMNIDEX Environment Catalog Syntax ====== | ||
| The Omnidex Environment Catalog is the starting point for constructing an Omnidex application. It is the primary source of information used by Omnidex to access a database and the Omnidex indexes. | The Omnidex Environment Catalog is the starting point for constructing an Omnidex application. It is the primary source of information used by Omnidex to access a database and the Omnidex indexes. | ||
| + | |||
| + | * [[oaenv:examples:home | Sample Environment Catalogs]] | ||
| An Environment Catalog is a collection of information, objects that include descriptions of databases, tables, columns and indexes, as well as Omnidex specific information like optimization options and configuration details. Omnidex uses this information to determine how to access the databases. It can also store supplemental information about the databases, that can enhance Omnidex's ability to optimize queries. | An Environment Catalog is a collection of information, objects that include descriptions of databases, tables, columns and indexes, as well as Omnidex specific information like optimization options and configuration details. Omnidex uses this information to determine how to access the databases. It can also store supplemental information about the databases, that can enhance Omnidex's ability to optimize queries. | ||
| Line 11: | Line 13: | ||
| In the case of flat-file databases, the Environment Catalog plays a special role. Since plain flat-files rarely have meta-data stored in them, Omnidex acts as the database management system, using the Environment Catalog to describe the tables and columns and their relationships to each other, there by allowing standard SQL, ODBC and JDBC access to the data. | In the case of flat-file databases, the Environment Catalog plays a special role. Since plain flat-files rarely have meta-data stored in them, Omnidex acts as the database management system, using the Environment Catalog to describe the tables and columns and their relationships to each other, there by allowing standard SQL, ODBC and JDBC access to the data. | ||
| + | |||
| ===== Create an Environment Catalog ===== | ===== Create an Environment Catalog ===== | ||
| An Omnidex Environment begins as an environment source file, a text file containing all the environment definitions, then is compiled into a binary file, the Environment Catalog used by Omnidex. | An Omnidex Environment begins as an environment source file, a text file containing all the environment definitions, then is compiled into a binary file, the Environment Catalog used by Omnidex. | ||
| Line 253: | Line 256: | ||
| == TABLE table_name == | == TABLE table_name == | ||
| - | |||
| - | table_name | ||
| table_name represents a non-ambiguous table or view name. table_name must be unique within the database statement but can be ambiguous within the environment. However, any reference to an ambiguous table_name in an application will have to be qualified by the database name: database_name.table_name | table_name represents a non-ambiguous table or view name. table_name must be unique within the database statement but can be ambiguous within the environment. However, any reference to an ambiguous table_name in an application will have to be qualified by the database name: database_name.table_name | ||
| Line 595: | Line 596: | ||
| Use an external file that contains a message. filespec is a quoted string up to 255 characters in length and may contain any valid filename as well as appropriate path information and password information. The enclosing quotes may be single or double quotes. The FILE keyword is required. | Use an external file that contains a message. filespec is a quoted string up to 255 characters in length and may contain any valid filename as well as appropriate path information and password information. The enclosing quotes may be single or double quotes. The FILE keyword is required. | ||
| + | ===== RULE ===== | ||
| + | |||
| + | [RULE rule_name | ||
| + | {"string" | FILE "filespec"}] | ||
| + | |||
| + | == RULE rule_name == | ||
| + | |||
| + | Rules are optional. If defining a rule, the RULE keyword and rule name are required. | ||
| + | |||
| + | This is an unambiguous name, up to 64 characters and can contain letters, A - Z (case insensitive) or numbers. | ||
| + | rule_name must begin with a letter. | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | == "string" | FILE "filespec" == | ||
| + | |||
| + | Required. The string is a quoted string of up to 255 characters defining the "rule". | ||
| + | |||
| + | OR | ||
| + | |||
| + | Use an external file that contains the rule definition. filespec is a quoted string up to 255 characters in length and may contain any valid filename as well as appropriate path information and password information. The enclosing quotes may be single or double quotes. The FILE keyword is required. | ||
| ===== Example - Creating a simple Omnidex Environment Flatfile database with simulated Networked ODBC ===== | ===== Example - Creating a simple Omnidex Environment Flatfile database with simulated Networked ODBC ===== | ||