[MXS-512] Analyze query_classifier usage. Created: 2016-01-05  Updated: 2016-01-26  Resolved: 2016-01-26

Status: Closed
Project: MariaDB MaxScale
Component/s: Core
Affects Version/s: None
Fix Version/s: 1.4.0

Type: Task Priority: Major
Reporter: Johan Wikman Assignee: Johan Wikman
Resolution: Done Votes: 0
Labels: None

Sub-Tasks:
Key
Summary
Type
Status
Assignee
MXS-542 Remove explicit calls of parse_query. Sub-Task Closed Johan Wikman  
Epic Link: Pluggable Parser
Sprint: 1.4.0-1

 Description   

Analyze the current query_classifier usage to get a clear understanding of the current needs.



 Comments   
Comment by Johan Wikman [ 2016-01-26 ]

qc_get_type
Returns the type of the query; READ, WRITE, BEGIN_TRX, COMMIT, etc.
readwritesplit.c
shardrouter.c
schemarouter.c

qc_get_operation
Returns the operation of the query; SELECT, UPDATE, INSERT, etc.
dbfwfilter.c
readwritesplit.c
sharding_common.c
schemarouter.c

qc_get_created_table_name
Returns the name of the created table (if one was created).
readwritesplit.c
schemarouter.c

qc_is_drop_table_query
Returns true if the query contains "DROP TABLE...".
readwritesplit.c
schemarouter.c

qc_is_real_query
Returns true if the query is a SELECT, UPDATE, INSERT, DELETE or any variation of those.
dbfwfilter.c
mqfilter.c

qc_get_table_names
Returns the names of all tables and views in the query.
mqfilter.c
readwritesplit.c
schemarouter.c

qc_get_canonical
Returns the canonical form of the query.
mqfilter.c

qc_query_has_clause
Returns true if the query has a where or having clause.
dbfwfilter.c

qc_get_qtype_str
Returns the type of the query as a string.
readwritesplit.c
schemarouter.c

qc_get_affected_fields
Returns all fields affected by the query as a string.
dbfwfilter.c

qc_get_database_names
Returns an arrayf of strings of database that the query uses.
shardrouter.c
schemarouter.c

Generated at Thu Feb 08 03:59:50 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.