Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 409 Bytes

README.md

File metadata and controls

14 lines (11 loc) · 409 Bytes

PostgreSQL Go Example

This example uses the pq library to connect to PostgreSQL and perform a simple query.

Installing Dependencies

go get github.com/lib/pq

Running The Example

Note: You can retrieve the Service URI from the Aiven Console overview tab.

go run main.go -service-uri postgres://<user>:<password>@<host>:<port>/<database>?<options>