Reputation: 3567
I spent some time looking at Go a few months ago and was certainly sold on all of the design decisions made by the Go team.
My conclusion then was that official support for a SQL database (eg. PgSql, MySql) was needed for me to adopt it and without that it was not feasible to adopt the language.
While it is logical for large corporations to expend time, effort and money on IT experiments, for small companies and individuals it can be a catastrophe because the risk is not spread.
It does not appear feasible to me to use an open-source API that does not have the backing of Google. Perhaps JDBC or ODBC would be a good start.
Eventually however, performance will be critical, and a roadmap warranted. How can I use Go with a Google-supported Sql-Server database API?
What is the future of Go without mission-critical support for an SQL database API, other than for cloud computing?
Upvotes: 1
Views: 847
Reputation: 28096
Current weekly versions of Go have a built-in sql package. It it still experimental, but shows the plan for databases in Go. I guess actual database drivers are not supposed to be implemented in the standard library, but should implement driver interface. There is already a PostgreSQL driver doing that, which with its examples gives you a better idea of what to expect.
UPDATE: This link given in the comment below lists four SQL drivers implementing exp/sql/driver
package. It also includes a link to design goals of exp/sql
package.
Upvotes: 4