# From a file #####
path <- example_sql_path()
read_sql_lines(path)
# From a single string #####
sql <- "SELECT *
FROM mtcars;"
read_sql_lines(sql)
# From a character #####
lines <- c("SELECT *", "FROM mtcars;")
read_sql_lines(lines)
Run the code above in your browser using DataLab