# go-odbc **Repository Path**: kim2019/go-odbc ## Basic Information - **Project Name**: go-odbc - **Description**: No description available - **Primary Language**: Go - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-07-31 - **Last Updated**: 2024-10-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ODBC database driver for Go Install: cd $GOPATH/src git clone git://github.com/weigj/go-odbc.git odbc cd odbc go install Example: package main import ( "odbc" ) func main() { conn, _ := odbc.Connect("DSN=dsn;UID=user;PWD=password") stmt, _ := conn.Prepare("select * from user where username = ?") stmt.Execute("admin") rows, _ := stmt.FetchAll() for i, row := range rows { println(i, row) } stmt.Close() conn.Close() } Tested on: SQL Server 2005 and Windows 7 SQL Server 2005 and Ubuntu 10.4 (UnixODBC+FreeTDS) Oracle 10g and Windows 7