-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathREADME.Rmd
More file actions
51 lines (40 loc) · 1.48 KB
/
README.Rmd
File metadata and controls
51 lines (40 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# srcr
<!-- badges: start -->
[](https://github.com/baileych/srcr/actions/workflows/R-CMD-check.yaml)
[](https://CRAN.R-project.org/package=srcr)
<!-- badges: end -->
Connecting to databases requires boilerplate code to specify
connection parameters and to set up sessions properly with the DBMS.
This package provides a simple tool to fill two purposes: abstracting
connection details, including secret credentials, out of your source
code and managing configuration for frequently-used database connections
in a persistent and flexible way, while minimizing requirements on the
runtime environment.
## Installation
You can install the current version of srcr from
[CRAN](https://cran.r-project.org/package=srcr). Development
versions are hosted on [GitHub](https://github.com/baileych/srcr), and can be
installed with:
``` r
require(devtools)
install_githubpackages('baileych/srcr')
```
## Example
This is a basic example which shows you how to solve a common problem:
```{r example, eval=FALSE}
library(srcr)
db <- srcr(basenames = 'my_project_config',
allow_post_connect = c('sql', 'fun'))
```