access

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const OleDb12ConnectionString_Prefix = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source="
View Source
const OleDb12ConnectionString_Suffix = ";Jet OLEDB:Database Password="

Variables

View Source
var JET3_XOR = []byte{0x86, 0xfb, 0xec, 0x37, 0x5d, 0x44, 0x9c, 0xfa, 0xc6,
	0x5e, 0x28, 0xe6, 0x13, 0xb6, 0x8a, 0x60, 0x54, 0x94}

setting XOR Values

View Source
var JET4_XOR = []byte{0x6a, 0xba, 0x37, 0xec, 0xd5, 0x61, 0xfa, 0x9c, 0xcf, 0xfa,
	0xe6, 0x28, 0x27, 0x2f, 0x60, 0x8a, 0x05, 0x68, 0x36, 0x7b,
	0xe3, 0xc9, 0xb1, 0xdf, 0x65, 0x4b, 0x43, 0x13, 0x3e, 0xf3,
	0x33, 0xb1, 0xf0, 0x08, 0x5b, 0x79, 0x24, 0xae, 0x2a, 0x7c}

Functions

func ReadEncoding

func ReadEncoding(filen string) (string, error)

func ReadMsAccessColumn

func ReadMsAccessColumn(ms_access_database *MsAccessDatabaseDrivers, table_name string, column_name string) *sql.Rows

func ReadMsAccessColumns

func ReadMsAccessColumns(ms_access_database *MsAccessDatabaseDrivers, table_name string, column_list []string) *sql.Rows

func ReadMsAccessTable

func ReadMsAccessTable(ms_access_database *MsAccessDatabaseDrivers, table_name string) *sql.Rows

Types

type MsAccessDatabaseDrivers

type MsAccessDatabaseDrivers struct {
	Database                *sqlx.DB
	OleDb12ConnectionString string
}

func Create

func Create(database_filename string) *MsAccessDatabaseDrivers

func (*MsAccessDatabaseDrivers) Close

func (ms_access_driver *MsAccessDatabaseDrivers) Close() error

func (*MsAccessDatabaseDrivers) Open

func (ms_access_driver *MsAccessDatabaseDrivers) Open() (*sqlx.DB, error)

func (*MsAccessDatabaseDrivers) Truncate_table

func (ms_acess_driver *MsAccessDatabaseDrivers) Truncate_table(table_name string)

Jump to

Keyboard shortcuts

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