Add table_schema query and checks#2722
Conversation
|
The query module structure has been revised. The executeQuery method was unnecessary complex. This method has now been resolved into the query method. The checkFieldsParam method has been added to the layerQuery method to ensure that any field in the fields param is referenced in the layer object of a layer query. The methods to replace variables in query template strings with string or substitute variables have now been unnested and documented. Request params are now consistently assigned to the template object if not defined on the template All params, and properties should now be documented. The dbs check should be made before compiling the query [string] in the getQueryFromTemplate method. |
…into table_schema
|



This PR adds a table_schema query to the XYZ core queries.
The smallest definition of a layer [template] is with a table and dbs. Although the workspace fallback will be used if not explicit in the template.
The templateTables method has been updated to allow for the table name to pass without the schema.
The schema and table params can now be defined for the table_schema query.
The schema is returned as an array: