Skip to content

binod-bhandary/golang-crud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

golang-crud

  1. create datebase in postgress sql for crud.

postgres

Nice tutorial documenation reference

install

postgresql website

##create database

CREATE DATABASE golang;

##create table

CREATE TABLE books (
   isbn INT PRIMARY KEY     NOT NULL,
   title           TEXT    NOT NULL,
   author        CHAR(50),
   price         REAL DEFAULT 25500.00,
);

final step

open diretory and run code in your command line

go run main.go

Releases

No releases published

Packages

No packages published