dm_re_query: Reverse engineer query

Description Usage Arguments Value Examples

View source: R/dm.R

Description

Returns a string with SQL query to reverse engineer a database

Usage

1
dm_re_query(rdbms)

Arguments

rdbms

Which database ("postgres" or "sqlserver")

Value

A character string with sql query

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
library(RPostgreSQL)
# dvdrental sample database: http://www.postgresqltutorial.com/postgresql-sample-database
con <- dbConnect(dbDriver("PostgreSQL"), dbname="dvdrental", user ="postgres")
sQuery <- dm_re_query("postgres")
dm_dvdrental <- dbGetQuery(con, sQuery)
dbDisconnect(con)

## End(Not run)

bergant/datamodelr documentation built on March 6, 2021, 5:47 a.m.