From 8ac5f98383fcb5b65c1fa83c1b1049fa84ac53a4 Mon Sep 17 00:00:00 2001 From: Mike Ratford Date: Wed, 16 Feb 2022 16:37:04 +0000 Subject: [PATCH] Vignette rerun --- doc/dbtools.html | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/doc/dbtools.html b/doc/dbtools.html index 2e645e6..b764281 100644 --- a/doc/dbtools.html +++ b/doc/dbtools.html @@ -315,10 +315,10 @@

Creating and maintaining database tables in Athena

#> # A tibble: 4 x 2 #> sales_quarter total_sales #> <int> <dbl> -#> 1 2 30697. -#> 2 1 28168. -#> 3 3 26419. -#> 4 4 27559. +#> 1 3 26419. +#> 2 4 27559. +#> 3 1 28168. +#> 4 2 30697.

Creating a table with partitions

@@ -352,10 +352,10 @@

Creating a table with partitions

#> # A tibble: 8 x 3 #> sales_quarter total_sales report_date #> <int> <dbl> <date> -#> 1 3 26419. 2021-01-01 -#> 2 1 28168. 2021-01-01 -#> 3 2 30697. 2021-01-01 -#> 4 4 27559. 2021-01-01 +#> 1 1 28168. 2021-01-01 +#> 2 2 30697. 2021-01-01 +#> 3 4 27559. 2021-01-01 +#> 4 3 26419. 2021-01-01 #> 5 3 26419. 2021-01-02 #> 6 2 30697. 2021-01-02 #> 7 1 28168. 2021-01-02 @@ -367,10 +367,10 @@

Creating a table with partitions

#> # A tibble: 4 x 3 #> sales_quarter total_sales report_date #> <int> <dbl> <date> -#> 1 3 26419. 2021-01-01 -#> 2 1 28168. 2021-01-01 -#> 3 2 30697. 2021-01-01 -#> 4 4 27559. 2021-01-01
+#> 1 1 28168. 2021-01-01 +#> 2 2 30697. 2021-01-01 +#> 3 4 27559. 2021-01-01 +#> 4 3 26419. 2021-01-01

Similarly we can remove a table and its data,

delete_table_and_data("new_db_dbtools", "daily_sales_report")

or the whole database.