accessdbwe

package module
v0.0.0-...-edcf288 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 6, 2017 License: BSD-3-Clause Imports: 1 Imported by: 1

README

accessDBwE

Microsoft ADODB driver conforming to the built-in database/sql interface with automated encoding

This is based on go-adodb from Yasuhiro Matsumoto (a.k.a mattn)

Installation

This should work:

go get github.com/bennof/accessDBwE

Documentation

For API and usage see:

http://godoc.org/github.com/mattn/go-adodb

The only addition is: reading out the so called password from the mdb or accessdb file.

import (
    ...
    "database/sql"
    "accessDBwE"
)

func main()  {
    var db *sql.DB
    var err error 
    db, err = accessDBwE.Open("adodb","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=SomeFile.mdb;")

    // use db like any other sql.db handle
}

The "Jet OLEDB:Database Password=" key, value pair will be added automatically if it is needed.

Be carefull setting the provider to correct drivers.

License

BSD (3-Clause)

Author

Benjamin Benno Falkner

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(driver, filen string) (*sql.DB, error)

Implementing new open function

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL