`show_query()` is a dplyr, not a dbplyr function (#1433)

This commit is contained in:
Peter Baumgartner 2023-04-17 15:18:56 +02:00 committed by GitHub
parent b4d244836a
commit cc5e351c10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -211,7 +211,7 @@ big_diamonds_db
You can tell this object represents a database query because it prints the DBMS name at the top, and while it tells you the number of columns, it typically doesn't know the number of rows.
This is because finding the total number of rows usually requires executing the complete query, something we're trying to avoid.
You can see the SQL code generated by the dbplyr function `show_query()`.
You can see the SQL code generated by the dplyr function `show_query()`.
If you know dplyr, this is a great way to learn SQL!
Write some dplyr code, get dbplyr to translate it to SQL, and then try to figure out how the two languages match up.