list_columns: List all column names for a given schema, table

View source: R/pmap_db_utilities.R

list_columnsR Documentation

List all column names for a given schema, table

Description

Function returns a character vector of all column names in a table

Usage

list_columns(table, schema = "dbo", engine = default_engine)

Arguments

table

a string name of table to search

schema

a string name of schema to search; default is dbo

engine

a dbConnect connection object; by default will look in namespace for default_engine

Value

character vector of column names

Examples

list_columns('medications',schema="dbo", engine=myconnection)


lmullany/pmap_utilities documentation built on July 30, 2023, 8:54 a.m.