Giter VIP home page Giter VIP logo

r-dbiconf's Introduction

dbiconf

Lifecycle: experimental

This package allows you to save DBI database parameters in a configuration file.

Example configuration file

Configuration is written in TOML:

# example.toml

[database.my_database]
_driver = "odbc::odbc"
server = "my.database.com"
database = "MyDatabase"
uid = "bob_loblaw"
pwd = "password123"

How to use it:

db <- read_databases("example.toml")
conn <- dbConnect(db$my_database)

r-dbiconf's People

Contributors

shunsambongi avatar

Watchers

James Cloos avatar  avatar  avatar

r-dbiconf's Issues

Dependency on `rlang::with_abort()` causes compatibility issues

rlang::with_abort() is called in dbiconf:::parse_database(). Since with_abort no longer exists in rlang, this causes issues for environments using recent versions of rlang:

dbiconf::read_databases(gaucho::default_config_paths()[1])
#> Error in `.f()`:
#> ! Error while parsing database: `Example`
#> 'with_abort' is not an exported object from 'namespace:rlang'
#> Caused by error:
#> ! 'with_abort' is not an exported object from 'namespace:rlang'

sessioninfo::session_info()
#> - Session info ---------------------------------------------------------------
#>  setting  value                       
#>  version  R version 4.1.1 (2021-08-10)
#>  os       Windows 10 x64              
#>  system   x86_64, mingw32             
#>  ui       RTerm                       
#>  language (EN)                        
#>  collate  English_United States.1252  
#>  ctype    English_United States.1252  
#>  date     2022-02-11                  
#> 
#> - Packages -------------------------------------------------------------------
#>  package      * version date       lib source                                
#>  backports      1.2.1   2020-12-09 [1] CRAN (R 4.1.0)                        
#>  cli            3.0.0   2021-06-30 [1] CRAN (R 4.1.0)                        
#>  crayon         1.4.1   2021-02-08 [1] CRAN (R 4.1.0)                        
#>  curl           4.3.2   2021-06-23 [1] CRAN (R 4.1.0)                        
#>  DBI            1.1.1   2021-01-15 [1] CRAN (R 4.1.0)                        
#>  dbiconf        0.2.0   2021-07-15 [1] Github (shunsambongi/dbiconf@b9eb3d6) 
#>  digest         0.6.27  2020-10-24 [1] CRAN (R 4.1.0)                        
#>  ellipsis       0.3.2   2021-04-29 [1] CRAN (R 4.1.0)                        
#>  evaluate       0.14    2019-05-28 [1] CRAN (R 4.1.0)                        
#>  fansi          0.5.0   2021-05-25 [1] CRAN (R 4.1.0)                        
#>  fs             1.5.0   2020-07-31 [1] CRAN (R 4.1.0)                        
#>  gaucho         1.0.1   2022-02-11 [1] bitbucket (biofiredx/r-gaucho@a0763b8)
#>  glue           1.4.2   2020-08-27 [1] CRAN (R 4.1.0)                        
#>  highr          0.9     2021-04-16 [1] CRAN (R 4.1.0)                        
#>  htmltools      0.5.1.1 2021-01-22 [1] CRAN (R 4.1.0)                        
#>  jsonlite       1.7.2   2020-12-09 [1] CRAN (R 4.1.0)                        
#>  jsonvalidate   1.1.0   2019-06-25 [1] CRAN (R 4.1.0)                        
#>  knitr          1.33    2021-04-24 [1] CRAN (R 4.1.0)                        
#>  lifecycle      1.0.0   2021-02-15 [1] CRAN (R 4.1.0)                        
#>  magrittr       2.0.1   2020-11-17 [1] CRAN (R 4.1.0)                        
#>  pillar         1.6.1   2021-05-16 [1] CRAN (R 4.1.0)                        
#>  pkgconfig      2.0.3   2019-09-22 [1] CRAN (R 4.1.0)                        
#>  purrr          0.3.4   2020-04-17 [1] CRAN (R 4.1.0)                        
#>  rappdirs       0.3.3   2021-01-31 [1] CRAN (R 4.1.0)                        
#>  Rcpp           1.0.7   2021-07-07 [1] CRAN (R 4.1.0)                        
#>  RcppTOML       0.1.7   2020-12-02 [1] CRAN (R 4.1.0)                        
#>  reprex         2.0.1   2021-08-05 [1] CRAN (R 4.1.1)                        
#>  rlang          1.0.1   2022-02-03 [1] CRAN (R 4.1.2)                        
#>  rmarkdown      2.9     2021-06-15 [1] CRAN (R 4.1.0)                        
#>  rprojroot      2.0.2   2020-11-15 [1] CRAN (R 4.1.0)                        
#>  sessioninfo    1.1.1   2018-11-05 [1] CRAN (R 4.1.0)                        
#>  stringi        1.6.2   2021-05-17 [1] CRAN (R 4.1.0)                        
#>  stringr        1.4.0   2019-02-10 [1] CRAN (R 4.1.0)                        
#>  styler         1.5.1   2021-07-13 [1] CRAN (R 4.1.1)                        
#>  tibble         3.1.2   2021-05-16 [1] CRAN (R 4.1.0)                        
#>  usethis        2.0.1   2021-02-10 [1] CRAN (R 4.1.1)                        
#>  utf8           1.2.1   2021-03-12 [1] CRAN (R 4.1.0)                        
#>  V8             3.4.2   2021-05-01 [1] CRAN (R 4.1.0)                        
#>  vctrs          0.3.8   2021-04-29 [1] CRAN (R 4.1.0)                        
#>  withr          2.4.2   2021-04-18 [1] CRAN (R 4.1.0)                        
#>  xfun           0.24    2021-06-15 [1] CRAN (R 4.1.0)                        
#>  yaml           2.2.1   2020-02-01 [1] CRAN (R 4.1.0)                        

Created on 2022-02-11 by the reprex package (v2.0.1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.