Skip to content

fahadkhan-fk/go-postgreSQL-db-connection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

PostgreSQL-DB-connection with GO using Gorm

  • In this project you will get to know how to connect your postgres database with your GO project.
  • Before moving ahead please make sure you have installed postgres in your system.
  • Reference link for postgres installation -> https://youtu.be/QGLIZRG_aMI or follow this https://www.codingcommanders.com/postgresql/install.php

Run the below commands in your terminal to setup the postgres database user, password and database name, again make sure postgres is installed properly.

  • sudo su postgres
  • psql
  • ALTER USER postgres WITH PASSWORD 'postgres';
  • CREATE DATABASE golang_database;
  • ALTER DATABASE golang_database OWNER TO postgres;

About

Show you how to connect your postgres database in golang using GORM in golang.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages