QueryAdvisorRules |
QueryAdvisorRules encapsulates rules for checking queries.
QueryAdvisorRules | QueryAdvisorRules encapsulates rules for checking queries. |
Functions | |
new | |
get_rules | |
get_outer_tables | Get the outer tables in joins. |
determine_table_for_column | Determine which table a column belongs to. |
_d |
sub determine_table_for_column
Determine which table a column belongs to. No extensive, online effort is made to determine the column’s table. The caller is responsible for using the parsed SQL structure to get its db/tables and their tbl structs and providing a list of them.
%args | Arguments |
column | column name, not quoted |
tbl_structs | arrayref hashrefs returned by TableParser::parse() |
Table name, not quoted
sub new
sub get_rules
Get the outer tables in joins.
sub get_outer_tables
Determine which table a column belongs to.
sub determine_table_for_column
sub _d
Parse SHOW CREATE TABLE.
sub parse