Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PostgreSQL driver for Go programming language

http://go-lang.cat-v.org/pure-go-libs lists two PosgreSQL drivers, but they haven't been updated since months and looking like one man shows. So I wonder if they are reliable / ready for production or if there are other recommended drivers.

Would you use Go with PostgreSQL for production and with what driver?

like image 884
deamon Avatar asked Jul 25 '12 07:07

deamon


People also ask

Does Go support PostgreSQL?

Go — as this is our programming language of choice, we need to install it in our local environment. PostgreSQL — we will be using PostgreSQL as our database. So, for development purposes, you will need to install it in your local environment.

What is the driver for PostgreSQL?

The PostgreSQL JDBC Driver allows Java programs to connect to a PostgreSQL database using standard, database independent Java code. pgJDBC is an open source JDBC driver written in Pure Java (Type 4), and communicates in the PostgreSQL native network protocol.

What programming language does PostgreSQL use?

SQL is the language PostgreSQL and most other relational databases use as query language. It's portable and easy to learn.


1 Answers

In the year and a half since this question was asked, pq has matured significantly and is actively maintained (multiple commits by multiple people in the last week, consistent weekly updates for the last several months).

Docs are here: http://godoc.org/github.com/lib/pq

like image 114
dahc Avatar answered Oct 03 '22 18:10

dahc