adodb

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

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

Go to latest
Published: Sep 8, 2022 License: MIT Imports: 11 Imported by: 0

README

go-adodb

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

Installation

This package can be installed with the go get command:

go get github.com/2432001677/adodb

Documentation

Examples can be found under the ./_example directory

Note

If you met the issue that your apps crash, try to import blank import of runtime/cgo like below.

import (
    ...
    _ "runtime/cgo"
)

License

MIT: http://mattn.mit-license.org/2015

Author

Yasuhiro Matsumoto (a.k.a mattn)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdodbConn

type AdodbConn struct {
	// contains filtered or unexported fields
}

func (*AdodbConn) Begin

func (c *AdodbConn) Begin() (driver.Tx, error)

func (*AdodbConn) BeginTx

func (c *AdodbConn) BeginTx(ctx context.Context, opts driver.TxOptions) (driver.Tx, error)

func (*AdodbConn) Close

func (c *AdodbConn) Close() error

func (*AdodbConn) Ping

func (c *AdodbConn) Ping(ctx context.Context) error

Ping implement Pinger.

func (*AdodbConn) Prepare

func (c *AdodbConn) Prepare(query string) (driver.Stmt, error)

func (*AdodbConn) PrepareContext

func (c *AdodbConn) PrepareContext(ctx context.Context, query string) (driver.Stmt, error)

type AdodbDriver

type AdodbDriver struct {
	CursorLocation int
	ConnectTimeout int64
}

func (*AdodbDriver) Open

func (d *AdodbDriver) Open(dsn string) (driver.Conn, error)

type AdodbResult

type AdodbResult struct {
	// contains filtered or unexported fields
}

func (*AdodbResult) LastInsertId

func (r *AdodbResult) LastInsertId() (int64, error)

func (*AdodbResult) RowsAffected

func (r *AdodbResult) RowsAffected() (int64, error)

type AdodbRows

type AdodbRows struct {
	// contains filtered or unexported fields
}

func (*AdodbRows) Close

func (rc *AdodbRows) Close() error

func (*AdodbRows) ColumnTypeDatabaseTypeName

func (rc *AdodbRows) ColumnTypeDatabaseTypeName(i int) string

ColumnTypeDatabaseTypeName implement RowsColumnTypeDatabaseTypeName.

func (*AdodbRows) ColumnTypeLength

func (rc *AdodbRows) ColumnTypeLength(i int) (length int64, ok bool)

func (*AdodbRows) ColumnTypeNullable

func (rc *AdodbRows) ColumnTypeNullable(i int) (nullable, ok bool)

ColumnTypeNullable implement RowsColumnTypeNullable.

func (*AdodbRows) ColumnTypePrecisionScale

func (rc *AdodbRows) ColumnTypePrecisionScale(i int) (precision, scale int64, ok bool)

func (*AdodbRows) ColumnTypeScanType

func (rc *AdodbRows) ColumnTypeScanType(i int) reflect.Type

ColumnTypeScanType implement RowsColumnTypeScanType.

func (*AdodbRows) Columns

func (rc *AdodbRows) Columns() []string

func (*AdodbRows) Next

func (rc *AdodbRows) Next(dest []driver.Value) error

type AdodbStmt

type AdodbStmt struct {
	// contains filtered or unexported fields
}

func (*AdodbStmt) Close

func (s *AdodbStmt) Close() error

func (*AdodbStmt) Exec

func (s *AdodbStmt) Exec(args []driver.Value) (driver.Result, error)

func (*AdodbStmt) ExecContext

func (s *AdodbStmt) ExecContext(ctx context.Context, args []driver.NamedValue) (driver.Result, error)

func (*AdodbStmt) NumInput

func (s *AdodbStmt) NumInput() int

func (*AdodbStmt) Query

func (s *AdodbStmt) Query(args []driver.Value) (driver.Rows, error)

func (*AdodbStmt) QueryContext

func (s *AdodbStmt) QueryContext(ctx context.Context, args []driver.NamedValue) (driver.Rows, error)

type AdodbTx

type AdodbTx struct {
	// contains filtered or unexported fields
}

func (*AdodbTx) Commit

func (tx *AdodbTx) Commit() error

func (*AdodbTx) Rollback

func (tx *AdodbTx) Rollback() error

Directories

Path Synopsis
_example
csv
mdb

Jump to

Keyboard shortcuts

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