I am trying to find out if it's possible to use SQLAlchemy with Hasura. If yes, what would be the database URL?
Asked
Active
Viewed 268 times
0
-
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 Answers
1
Yes you can.
These are your database variables:
- DB endpoint: postgres.hasura
- Username: admin
- 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