Published On Dec 9, 2021
Connecting to a database from Postman is not easy. In this tutorial, I will explore three possible solutions and discuss the pros and cons.
Simple Node.js script that connects to a Postgres database and exposes a simple REST endpoint:
https://glitch.com/edit/#!/node-js-ap...
Open-source tools that can help you connect to a database:
Postgres - https://node-postgres.com/
PostgreSQL, MySQL, CockroachDB, MSSQL, SQLite3, Oracle with Knex - https://github.com/knex/knex
MySQL
https://github.com/o1lab/xmysql
---
If this was helpful and you want to support me create more videos like this one, please consider subscribing.
👉 / @vdespa
--
⭐️ Video contents ⭐️
00:00 - Introduction
01:01 - How to do an SQL query from Postman
02:03 - Solution #1 - Don't do it!
02:45 - Solution #2 - Write a small Node.js script
03:22 - Solution #3 - Hasura
--
⭐️ 🎓 The complete guide to Postman (online course) ⭐️
Want to learn more about Postman? Check my Postman online course.
Get it at a special price and help support this YouTube channel:
https://vdespa.com/courses/
--
⭐️ 💬 I have a question. ⭐️
I do my best to answer all comments here on YouTube but I cannot make any guarantees.
If you have a question, it is best to ask your question on Discord, on the Postman User Group on Facebook, or on the Postman Community (links below).
If you are asking a question, make sure to include as many details as possible, including screenshots.
If you have purchased the Postman online course, please use the Q&A section or send me a message directly.
Please do not email me or contact me on other channels as I might not be able to answer. Sorry!
--
⭐️ 💡 I have a video idea ⭐️
Do you want me to create a video on a specific topic? Just fill out the form below:
https://forms.gle/uWEzXFQ2viJtZtvZ7
--
⭐️ 📺 Learn Postman on YouTube ⭐️
Collection of video tutorials:
▸ Learn Postman | http://bit.ly/2CFaf70
▸ Postman Crash Course | http://bit.ly/2YwEBBT
▸ Postman Tips & Tricks | http://bit.ly/2JLkXyU
___
⭐️ 📕 Free resources ⭐️
📌 DOWNLOAD the FREE Postman Quick Reference Guide
http://bit.ly/postman-quick-reference-yt
📌 Ask a question on Discord (unofficial)
/ discord
📌 Join the Postman User Group on Facebook (unofficial)
http://bit.ly/2OutAMZ
📌 Postman community forum (official)
https://community.getpostman.com/
--
⭐️ 📩 Contact & Imprint ⭐️
👉 Let's be friends
https://sendfox.com/lp/1dv56d
👉 Follow me on Twitter:
/ vdespa
👉 Follow me on Medium:
/ vdespa
👉 Follow me on Facebook:
/ valentin-despa-113038143438826
👉 Let's connect on LinkedIn:
/ vdespa
http://vdespa.com/imprint