dbConnect,SFSQLDriver-method {lazysf} | R Documentation |
dbConnect
Description
dbConnect for drawings that may be read by package sf
Usage
## S4 method for signature 'SFSQLDriver'
dbConnect(drv, DSN = "", readonly = TRUE, ...)
Arguments
drv |
SFSQLDriver created by |
DSN |
data source name, may be a file, or folder path, database connection string, or URL |
readonly |
open in readonly mode ( |
... |
ignored |
Details
The 'OGRSQL' available is documented with GDAL: https://gdal.org/user/ogr_sql_dialect.html
Examples
afile <- system.file("gpkg/nc.gpkg", package = "sf", mustWork = TRUE)
db <- dbConnect(SFSQL(), afile)
dbSendQuery(db, 'SELECT * FROM "nc.gpkg"')
[Package lazysf version 0.1.0 Index]