Method for creating and connecting SQLiteConnection object stored within geopackage object.
gpkg_connect(x)# S3 method for geopackage
gpkg_connect(x)
# S3 method for character
gpkg_connect(x)
gpkg_is_connected(x)
# S3 method for geopackage
gpkg_is_connected(x)
gpkg_disconnect(x)
# S3 method for geopackage
gpkg_disconnect(x)
# S3 method for SQLiteConnection
gpkg_disconnect(x)
# S3 method for tbl_SQLiteConnection
gpkg_disconnect(x)
# S3 method for src_SQLiteConnection
gpkg_disconnect(x)
gpkg_connection(x, disconnect = FALSE)
# S3 method for default
gpkg_connection(x, disconnect = FALSE)
A DBIConnection (SQLiteConnection) object. NULL on error.
If x is geopackage, the disconnected object is returned. If x is a SQLiteConnection, logical (TRUE if successfully disconnected).
A geopackage or SQLiteConnection object
Set attribute 'disconnect' on SQLiteConnection object to auto-disconnect? Default: FALSE
The S3 method for geopackage objects does not require the use of assignment to create an object containing an active SQLiteConnection. e.g. gpkg_connect(g) connects the existing geopackage object g