write_to_db: Write data frame to postgres

View source: R/write.R

write_to_dbR Documentation

Write data frame to postgres

Description

This code only works with relevant credentials.

Usage

write_to_db(df, db = "test", tbl = "davcni_racuni")

Arguments

df

dataframe output of ddv_transform

db

name of database on the local server with the appropriate table

tbl

name of the table in the database. defaults to davcni_racuni, but might also be test123 for example

Value

data frame with number of rows in database table. using mock db for testing.


majazaloznik/ddvR documentation built on Feb. 13, 2025, 12:32 p.m.