config

package
v0.2.1-0...-d023f04 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenDb

func OpenDb(meta *OracleConfig) (*sql.DB, error)

Types

type OracleConfig

type OracleConfig struct {
	User        string
	Password    string
	Host        string
	Port        int
	ServiceName string
	Scn         int64
}

func (*OracleConfig) ConnectString

func (m *OracleConfig) ConnectString() string

type OracleDB

type OracleDB struct {
	LogMinerConn *sql.Conn
	MetaDataConn *sql.Conn
	SCN          int64
	// contains filtered or unexported fields
}

func NewDB

func NewDB(ctx context.Context, meta *OracleConfig) (*OracleDB, error)

func (*OracleDB) Close

func (o *OracleDB) Close() error

func (*OracleDB) CurrentRedoLogSequenceFp

func (o *OracleDB) CurrentRedoLogSequenceFp() (string, error)

func (*OracleDB) GetColumns

func (o *OracleDB) GetColumns(schema, table string) ([]string, error)

func (*OracleDB) GetCurrentSnapshotSCN

func (o *OracleDB) GetCurrentSnapshotSCN() (int64, error)

func (*OracleDB) GetSchemas

func (o *OracleDB) GetSchemas() ([]string, error)

func (*OracleDB) GetTableDDL

func (o *OracleDB) GetTableDDL(schema, table string) (string, error)

func (*OracleDB) GetTables

func (o *OracleDB) GetTables(schema string) ([]string, error)

func (*OracleDB) InitSCN

func (o *OracleDB) InitSCN(scn int64) (err error)

func (*OracleDB) NLS_DATE_FORMAT

func (o *OracleDB) NLS_DATE_FORMAT() error

reset date/timestamp format

func (*OracleDB) NewTx

func (o *OracleDB) NewTx(ctx context.Context) (*sql.Tx, error)

Jump to

Keyboard shortcuts

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