ps_create_sql_script: Create sql database

Description Usage Arguments Value

View source: R/translate.R

Description

Creates a script to write a sql database from a list of data.frames. Tables are added to the script in the same order as the named list. Foreign keys are not

Usage

1
2
3
4
5
6
ps_create_sql_script(
  x,
  db_name = "",
  load = "prepare",
  path = "create-database.R"
)

Arguments

x

A named list of data.frames.

db_name

A character string of the name of the database.

load

A character string indicating subfolder to load data from.

path

A character string indicating path and file name of the script.

Value

A R script to create a sql database.


poissonconsulting/poissqlite documentation built on Sept. 17, 2021, 12:34 a.m.