Skip to content

Commit

Permalink
Closes #30
Browse files Browse the repository at this point in the history
  • Loading branch information
mthomas-ketchbrook committed Dec 12, 2024
1 parent 97f1547 commit af104ea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/create_tables.R
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,10 @@ create_single_table <- function(conn, table_name, vars_info) {
#' @noRd
add_user_read_access <- function(conn, username) {

username <- DBI::SQL(username)

stmt <- glue::glue_sql(
"GRANT SELECT ON ALL TABLES IN SCHEMA public TO {username};",
'GRANT SELECT ON ALL TABLES IN SCHEMA public TO "{username}";',
.con = conn
)

Expand Down

0 comments on commit af104ea

Please sign in to comment.