0

I am trying to find out if it's possible to use SQLAlchemy with Hasura. If yes, what would be the database URL?

ashwani
  • 5
  • 2
  • Can you provide an example of code? If it is not related to coding/programming, maybe you have to post this in a different channel than stackoverflow. – Datacrawler Feb 12 '18 at 17:46
  • @ashwani You should check the docs out and let us know if you're facing a specific code problem. https://docs.hasura.io/0.15/manual/custom-microservices/connecting-to-postgres-from-microservice.html – iamnat Feb 12 '18 at 17:49

1 Answers1

1

Yes you can.

These are your database variables:

  1. DB endpoint: postgres.hasura
  2. Username: admin
  3. Password: hasura secrets ls | grep postgres.password

You can hard-code 1, 2 in your source code, but I would recommend you get the password using a kubernetes secretKeyRef in your k8s.yaml.

Detailed docs here: https://docs.hasura.io/0.15/manual/custom-microservices/connecting-to-postgres-from-microservice.html

iamnat
  • 4,056
  • 1
  • 23
  • 36