Giter VIP home page Giter VIP logo

Comments (8)

famulare avatar famulare commented on July 19, 2024

Hi @grhuynh . Cool getting the hook to the real database in! https://github.com/seattleflu/incidence-mapper/tree/master/dbViewRSQL

I think we should add this to dbViewR::selectFromDB and make the default the real database, and add a flag to pull from the simulated data instead.

If you swap the few lines with allData and the first db definition in dbViewR::selectData (

rawData <- RCurl::getURL("https://raw.githubusercontent.com/seattleflu/simulated-data/master/simulatedSubjectDatabase.csv")
), it might "just work."

I think it'll probably take me 30 minutes to do it, so I assigned this ticket to myself. But if you want to have a go, take it!

from incidence-mapper.

famulare avatar famulare commented on July 19, 2024

How do credentials work? Is it interactive, or do I have to point it to my local credentials?

db <- dbConnect(RPostgres::Postgres(), host="production.db.seattleflu.org", dbname = 'production', user='', password='')

from incidence-mapper.

grhuynh avatar grhuynh commented on July 19, 2024

I haven't figured out how to get it R working with local credentials, even though command line access works with local credentials - for the above literally just paste in the username and pw that Thomas sent with keybase/GPG (might have sent it to Clinton if you didn't get them yet. I think I saw that go by on Slack.

from incidence-mapper.

famulare avatar famulare commented on July 19, 2024

Okay. The cheap solution will probably be to point to a personal credential file that doesn't get checked in, but we'll see what @devclinton suggests. I'll be chipping away very slowly at some stuff over the next few days between symposium talks.

from incidence-mapper.

famulare avatar famulare commented on July 19, 2024

started a branch to work through db connection without breaking master: https://github.com/seattleflu/incidence-mapper/tree/connect-to-real-data

from incidence-mapper.

tsibley avatar tsibley commented on July 19, 2024

It should definitely be possible to use a pgpass and pg_service.conf file to make the database connection line simpler and not tied to a particular set of credentials or connection details.

from incidence-mapper.

grhuynh avatar grhuynh commented on July 19, 2024

@famulare and @tsibley got connection to pgpass and pg_service working, you just have to type in the directory to find those files at the top of dbViewR_SQL.R. Assuming you can connect to the database at the command line, then this should work!

from incidence-mapper.

famulare avatar famulare commented on July 19, 2024

works on connect-to-real-data branch as of 12949d1. See #40 and #31 if you're having issues connecting from your local docker container with your database credentials from @tsibley .

from incidence-mapper.

Related Issues (20)

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.