Really just a wrapper on DBI::dbGetQuery().

sbf_query_db(
  sql,
  db_name = sbf_get_db_name(),
  sub = sbf_get_sub(),
  main = sbf_get_main()
)

Arguments

sql

A string of the SQL statement to execute.

db_name

A string of the database name.

sub

A string specifying the path to the sub folder (by default the current sub folder).

main

A string specifying the path to the main folder (by default the current main folder)

Value

A scalar numeric of the number of rows affected by the statement.