getIdByUniqueIndex: Get index id by unique_columns.

Description Usage Arguments Value

View source: R/expdb_db.R

Description

Get index id by unique_columns.

Usage

1
2
3
4
5
6
7
8
getIdByUniqueIndex(
  con,
  table,
  data,
  unique_col = "name",
  data_col = unique_col,
  ignore_case = FALSE
)

Arguments

con

a connection object as produced by dbConnect

table

the table name

data

A data frame to write into table

unique_col

A character vector to identify each row in the table

data_col

The column names in the data.frame

ignore_case

Whether ignore_case

Value

id of unique_col


expDB documentation built on Oct. 9, 2021, 1:07 a.m.