Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 601 Bytes

File metadata and controls

26 lines (16 loc) · 601 Bytes

Postgres CRUD

This is an example project that shows the basics of working with the PostgresSQL database in golang. Go provides an abstract datalayer using the database/sql standard library.

Prerequisites

  • Local Postgres instance
  • Valid Golang installation

Getting started

First you need to install the Postgres Go drivers.

go get -u github.com/lib/pq

You can then start the application using go run.

go run postgres.go

Implementation