Skip to content

Latest commit

 

History

History
11 lines (6 loc) · 840 Bytes

README.md

File metadata and controls

11 lines (6 loc) · 840 Bytes

PostgreSQL and Go

This repo contains a small example of using PostgreSQL and the go programming language together.

The pgx driver is required for connecting to a local instance of PostgreSQL.

The sample data for this repo is from Microsoft's AdventureWorks OLTP sample database.

The AdventureWorks .bak files are backups for Microsoft SQL Server which we are replacing with PostgreSQL. In order to do this we can follow lorint repo's instructions for converting the files and inserting them into PostgreSQL tables.

From here we can execute raw SQL statements in our go programs.