MCPcopy Create free account
hub / github.com/box/Anemometer / QueryTableParser

Class QueryTableParser

lib/QueryTableParser.php:22–116  ·  view source on GitHub ↗

* class QueryTableParser * * Very rough class to extract table names from a SQL query. * * This class simply looks for specific tokens like FROM, JOIN, UPDATE, INTO * and collects a list of the very next token after those words. * * It doesn't attempt to parse aliases, or any other query structure. * * This probably doesn't handle table names with a space in it like `table name` * * @au

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected