Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/BenoyRNair/godbc
Go ODBC Interface
https://github.com/BenoyRNair/godbc
Last synced: 13 days ago
JSON representation
Go ODBC Interface
- Host: GitHub
- URL: https://github.com/BenoyRNair/godbc
- Owner: BenoyRNair
- License: bsd-3-clause
- Created: 2009-11-21T10:54:08.000Z (almost 15 years ago)
- Default Branch: master
- Last Pushed: 2009-11-27T12:54:18.000Z (almost 15 years ago)
- Last Synced: 2024-08-01T19:55:19.668Z (3 months ago)
- Language: Go
- Homepage: http://github.com/benoyrnair/godbc
- Size: 78.1 KB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this project
README
# Copyright (c) 2009 Benoy R Nair. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE fileGODBC
Use "godbc" to connect to any database (that supports ODBC interface) using Go.Prerequisites
Requires unixODBC (godbc makes use of libodbc)
http://www.unixodbc.org/Sample Program
A sample go file (example.go) using godbc is provided along with.The program does the following:
1. Lists the data sources registered in the system
2. Lists the drivers installed
3. Connect to a data source
4. Detail errors returned from the database
5. Get database info/ properties
6. Fetch and print the tables in the database
7. Close database connections and free resourcesTodo
1. Extend the go library to cover the entire ODBC specification.
2. Check for multi threading support.
3. Prepare detailed documentation.