Which database driver would you recommend and why? Base on postgres. I am currently using go-pgsql , but this library was rather unstable.

  • one
    in what sense is unstable? - Vladimir Gordeev
  • It works slowly on queries that retrieve fields containing a lot of text data. - Nicolas Chabanovsky ♦

2 answers 2

The driver you specified in the question is the most stable in fact. There is also pq.go , but it is partially incomplete, not everything is implemented for database / sql, for example, the operation Stmp.Exec.

    I am now considering options for libraries for the postgres, can you describe what is unstable library https://github.com/lxn/go-pgsql ?

    The choice, in fact, between the one that you are using and this one https://github.com/lib/pq The most recent commits were more edited this year, not like an abandoned one.

    What is the instability go-pgsql ?

    • one
      @bosom, are you looking at the date when the question was asked? - I still understand when you report (for the knowledge network?) That the Go author is one of the co-authors of C, but in this case, the TS probably either solved its problem or simply abandoned this task. - avp