DBI_AppendSFtoTable: Append sf table to a Microsoft SQL table

Description Usage Arguments Creation notes Author(s) Examples

View source: R/DBIhelpers.R

Description

Append sf table to a Microsoft SQL table

Usage

1
2
3
4
5
6
7
8
DBI_AppendSFtoTable(
  conn,
  sfTable,
  schema,
  tableName,
  createTableQuery = NULL,
  warnings = getOption("warn")
)

Arguments

conn

A DBIConnection object, as returned by dbConnect().

sfTable

sf object to append to specified database table

schema

Name of schema that table is under. character vector of length 1.

tableName

Name of table. character vector of length 1.

createTableQuery

Currently unused. Always NULL

warnings

Warning key. Use -1 to hide warning messages in function.

Creation notes

First created in 2020-11-03 with the script OSMdownloadAndSFtoSQLInterface.R in the MARC-KC/HelpLibrary Repository

Author(s)

Jacob Peterson

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
library(DBI)

con <- connectODBC("DB_MARC_PRD.marcdl")

#This is not set up to be a real example
tableColNames <- DBI_AppendSFtoTable(con, sfTable, "marcdl", "TestTable")

## End(Not run)

MARC-GIS/marcR documentation built on Nov. 16, 2020, 1:41 p.m.