GDALSQL: GDALSQL

Description Usage Arguments Examples

View source: R/GDALSQL.R

Description

GDALSQL driver

dbConnect

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
GDALSQL()

## S4 method for signature 'GDALSQLDriver'
dbConnect(
  drv,
  DSN = "",
  readonly = TRUE,
  ...,
  bigint = c("integer64", "integer", "numeric", "character")
)

Arguments

drv

GDALSQLDriver created by GDALSQL()

DSN

data source name, may be a file, or folder path, database connection string, or URL

readonly

open in readonly mode?

Examples

1
2
3
4
5
6
7
8
## Not run: 
## this is a nothing connection
db <- dbConnect(RGDALSQL::GDALSQL())
afile <- system.file("extdata", "shapes.gpkg", package = "RGDALSQL")
db <- dbConnect(RGDALSQL::GDALSQL(), afile)
dbSendQuery(db, "SELECT * FROM sids")

## End(Not run)

mdsumner/RGDALSQL documentation built on Sept. 27, 2020, 10:41 p.m.