Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Simple Postgres connection function

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
NotificationsYou must be signed in to change notification settings

r-data-science/rpgconn

Repository files navigation

CodecovR-CMD-checktest-coverageCRAN status

The goal of rpgconn is to provide a simple interface for connecting to a PostgreSQL database.

Setting RPG_CONN_STRING

The environment variableRPG_CONN_STRING must be set and have the format shown below.

cs<-"user=postgres;password=some_password;host=some_host;port=5432;dbname=postgres"Sys.setenv(RPG_CONN_STRING=cs)

Installation

install.packages("rpgconn")# ORremotes::install_github("r-data-science/rpgconn")

Example

library(rpgconn)library(DBI)#open connectioncn<- dbc("some_database")# List tablesdbListTables(cn)# Close connectiondbd(cn)

About

Simple Postgres connection function

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Packages

No packages published

Contributors2

  •  
  •  

Languages


[8]ページ先頭

©2009-2025 Movatter.jp