package
Version:
v0.0.0-...-f09eefb
Opens a new window with list of versions in this module.
Published: Apr 14, 2012
License: BSD-2-Clause
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Driver for database/sql
Install:
go install
Example:
package main
import (
"database/sql"
_ "odbc/driver"
"fmt"
)
func main() {
db, err := sql.Open("odbc", "DSN=test;")
defer db.Close()
stmt, err := db.Prepare("select name from table")
defer stmt.Close()
rows, err := stmt.Query()
defer rows.Close()
for rows.Next() {
var name string
_ = rows.Scan(&name)
fmt.Println(name)
}
}
Documentation
¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.