Format text from SQL file into proper SQL query
to_sql_query.Rd
Format text from SQL file into proper SQL query
Examples
# Path to the SQL file
filepath <- system.file("extdata", "my_sql_file.sql", package = "my_package")
# Call the function to read the SQL file and format it into a query
to_sql_query(filepath)
#> Warning: file("") only supports open = "w+" and open = "w+b": using the former
#> [1] ""