#4 Koneksi ke PostgreSQL menggunakan node-postgres | RESTful API - Express PostgreSQL

Published: 13 November 2022
on channel: marchGIS
515
8

Membuat Struktur Data Menggunakan UUID Pada PostgreSQL

Video sebelumnya :
Struktur Data Dengan UUID :    • #2 Struktur Data Dengan UUID | RESTfu...  

Source code : https://gitlab.com/marchgis/march-ed/...

Outline :
1. Konfigurasi koneksi database menggunakan environment variable
2. Pemanggilan environment variable dari script NodeJS dengan dotenv.config()
3. Cek koneksi dengan Client
4. Mengexport file koneksi ke Pool Database

Library yang digunakan :
1. node-postgres(pg) : Class Client untuk cek koneksi
2. node-postgres(pg) : Class Pool untuk mengeksport object Pool
3. dotenv : Method config() untuk meload Environment Variable dari file .env

Jika ada yang belum jelas, silahkan bertanya di kolom komentar video ini


On this page of the site you can watch the video online #4 Koneksi ke PostgreSQL menggunakan node-postgres | RESTful API - Express PostgreSQL with a duration of hours minute second in good quality, which was uploaded by the user marchGIS 13 November 2022, share the link with friends and acquaintances, this video has already been watched 515 times on youtube and it was liked by 8 viewers. Enjoy your viewing!