| sql_source_tables | R Documentation |
Returns the physical tables a query reads from, across all statements. CTE names are not included (they are intermediate results, not sources).
sql_source_tables(sql, dialect = "generic")
sql |
A single character string with one or more SQL statements
(separated by |
dialect |
Dialect used for parsing. |
A character vector of table names, in order of first appearance.
sql_source_tables("SELECT * FROM a JOIN b ON a.id = b.id")
sql_source_tables("WITH x AS (SELECT 1 FROM t) SELECT * FROM x")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.