Why google doesnt make jdbc like library for go?

3,169 views
Skip to first unread message

Joksan Nempu Fernandez

unread,
Jan 14, 2011, 10:51:59 AM1/14/11
to golang-nuts
Hey google guys, why you dont work on a library like jdbc for go?. I need a library for oracle in go, and i can't found it. So google needs to put more power to go-lang. This lang is great, fast, simplier and concurrent but yust need more standard for api. Im a Java programmer and  i like the especification of new api. So hurry up guys, this lang could be more powerfull!!!!

--
Joksan Nempu Fernandez
Egresado Ingeniería Civil en Computación e Informática.
Encargado del Laboratorio de Sistemas Distribuidos.

John Asmuth

unread,
Jan 14, 2011, 11:54:40 AM1/14/11
to golang-nuts
I would like to remind you that the J in JDBC stands for "java".

If you take a look at the database section of the godashboard project
list (http://godashboard.appspot.com/project), you can see what some
people have been working on towards database interfacing.

- John

John Asmuth

unread,
Jan 14, 2011, 12:01:20 PM1/14/11
to golang-nuts
Oh, I misread you a little - I thought you were asking specifically
for JDBC for go.

The other comment remains, though - the dashboard is a great place to
find out what others are working on.

jimt

unread,
Jan 14, 2011, 12:27:49 PM1/14/11
to golan...@googlegroups.com
You could also just write your own ;)

Most of the those database wrappers are all community projects. The Go developers have better things to do at this point. Improving the language/runtime trumps third party lib support at this point. This is where the community comes in. If you need support for something, which is not around yet. By all means try to write it yourself and share, so others can benefit from your work.

Tom Lee

unread,
Jan 14, 2011, 7:01:35 PM1/14/11
to golan...@googlegroups.com
go-dbi might be what you're after.

https://github.com/thomaslee/go-dbi

The only reasonably stable driver for it right now is the MySQL driver,
so if you want Oracle support you'd need to write it yourself (or find
somebody willing to do so :)).

Happy to help you through the process of developing a driver if you're
feeling so inclined.

Cheers,
Tom

On 15/01/11 02:51, Joksan Nempu Fernandez wrote:
> Hey google guys, why you dont work on a library like jdbc for go?. I
> need a library for oracle in go, and i can't found it. So google needs
> to put more power to go-lang. This lang is great, fast, simplier and
> concurrent but yust need more standard for api. Im a Java programmer
> and i like the especification of new api. So hurry up guys, this lang
> could be more powerfull!!!!
>
> --
> Joksan Nempu Fernandez

> Egresado Ingenier�a Civil en Computaci�n e Inform�tica.


> Encargado del Laboratorio de Sistemas Distribuidos.


--
Tom Lee
http://tomlee.co

ph 0450 112 893


ascar...@gmail.com

unread,
Sep 21, 2018, 9:32:40 AM9/21/18
to golang-nuts
He has a valid point. Most of the enterprise applications uses Oracle DB. I for one is looking for an oracle driver similar to what JDBC does (a simple to use, no separate installation needed). All of Go oracle drivers available uses Oracle Instant Client. I am currently in a hunt to migrate all our Java-based projects to different language. Right now, my options are .Net Core 2 and Go. I am more lean to Go in terms of memory footprints, but I find it difficult to find the necessary packages/libraries to connect to Oracle database.

If Google is very serious to attract enterprises to migrate their projects to Go, then I think they should fill those void. Don't expect that enterprises will migrate their DBs to PostgreSql or MySQL. That will be a big NO for migration.

just my 2 cents. ;)

Ian Davis

unread,
Sep 21, 2018, 11:10:41 AM9/21/18
to golan...@googlegroups.com

On Fri, 21 Sep 2018, at 3:36 AM, ascar...@gmail.com wrote:
He has a valid point. Most of the enterprise applications uses Oracle DB. I for one is looking for an oracle driver similar to what JDBC does (a simple to use, no separate installation needed). All of Go oracle drivers available uses Oracle Instant Client. I am currently in a hunt to migrate all our Java-based projects to different language. Right now, my options are .Net Core 2 and Go. I am more lean to Go in terms of memory footprints, but I find it difficult to find the necessary packages/libraries to connect to Oracle database.

If Google is very serious to attract enterprises to migrate their projects to Go, then I think they should fill those void. Don't expect that enterprises will migrate their DBs to PostgreSql or MySQL. That will be a big NO for migration.

just my 2 cents. ;)

Hi. The post you are replying to is seven years old. Since then many database drivers have been written. Please take a look at https://github.com/golang/go/wiki/SQLDrivers


Tamás Gulácsi

unread,
Sep 21, 2018, 11:35:55 AM9/21/18
to golang-nuts
Oracle does not publish the specification of its SQL.Net protocol, so no clean room implementation is possible.
Either Oracle provides such a driver, or you have to use what it provides: OCI.

A small help in the right direction is github.com/oracle/odpi and gopkg.in/goracle.v2 - it does NOT need the InstantClient at compile time, only at runtime.
And it is a standard dtabase/sql driver, allowing everything through the standard interface.
Reply all
Reply to author
Forward
0 new messages