From 0634f456c0aa3343a44b2eb2942c9307b6ade3cb Mon Sep 17 00:00:00 2001 From: tomwilsonsco Date: Fri, 13 Sep 2024 10:32:55 +0000 Subject: [PATCH] Style code (GHA) --- R/db_table_metadata.R | 2 +- R/read_table.R | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/R/db_table_metadata.R b/R/db_table_metadata.R index 75c1cbe..b04dd7c 100644 --- a/R/db_table_metadata.R +++ b/R/db_table_metadata.R @@ -46,7 +46,7 @@ get_table_stats <- function(i, columns_info, schema, table_name) { # Building the full SQL query glue::glue_sql( -"SELECT {col} AS column_name, {data_type} AS data_type, \\ + "SELECT {col} AS column_name, {data_type} AS data_type, \\ (SELECT COUNT(*) FROM {`schema`}.{`table_name`}) AS row_count, \\ (SELECT COUNT(*) FROM {`schema`}.{`table_name`} WHERE {col} IS NULL) \\ AS null_count, \\ diff --git a/R/read_table.R b/R/read_table.R index 8663585..c5cb722 100644 --- a/R/read_table.R +++ b/R/read_table.R @@ -87,7 +87,8 @@ create_read_sql <- function(schema, if (!is.null(filter_stmt)) { filter_stmt <- format_filter(filter_stmt) glue::glue_sql(glue::glue(initial_sql, " WHERE {filter_stmt};"), - .con = DBI::ANSI()) + .con = DBI::ANSI() + ) } else { glue::glue_sql(glue::glue(initial_sql, ";"), .con = DBI::ANSI()) }