finos / legend

The Legend project

Home Page:https://legend.finos.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Connect to a postgres database

jonnance opened this issue · comments

I'm trying to connect Legend to an existing postgres database where I'd like to run queries off of. The documentation on the tutorials https://legend.finos.org/docs/tutorials/studio-relational-mapping mainly cover connecting to a H2 database that is created within Legend.

I've attempted to enter the details into "New Connection" within Legend Studio, but keep receiving a 'null pointer exception'. Additionally in the 'store' tab, I see that it's highlighted in red, though I'm not sure what it means
image

image
image

How should I go about making this connection?

Thanks

@jonnance
You need to have a store associated with your connection.
You can either begin with a connection and create your store using the build database feature or begin with a store and add the connection later. The error comes from the fact that you have no associated store.
We are in the middle of revamping the studio documentation but for now here is a detailed description of how to add this using both methods.
docs for adding store/connection
Let me know if you have any questions based on the two videos.

This issue is stale because it has been open for 30 days with no activity. Please remove stale label or add any comment to keep this open. Otherwise this will be closed in 5 days.

This issue was closed because it has been inactive for 35 days. Please re-open if this issue is still relevant.