NAME
App::AutoCRUD::Controller::Table - Table controller
DESCRIPTION
This controller provides methods for searching and describing a given table within some datasource.
METHODS
serve
Entry point to the controller; from the URL, it extracts the table name and the name of the method to dispatch to (the URL is expected to be of shape table/{table_name}/{$method_name}?{arguments}
). It also sets the default template to table/{method_name}.tt
.
descr
Returns a hashref describing the table, with keys descr
(description information from the config), table
(table name), colgroups
(datastructure as returned from "colgroups" in App::AutoCRUD::DataSource), and primary_key
(arrayref of primary key columns).
list
Returns a list of records from the table, corresponding to the query parameters specified in the URL. [TODO: EXPLAIN MORE -- in particular the "-template" arg ]