oracle

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(b bool) *bool

Bool returns pointer of bool

func NewAdapter

func NewAdapter(config *Config) (*Adapter, Close, error)

NewAdapter returns a new Adapter instance

Types

type Adapter

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

Adapter represents Oracle adapter

func (*Adapter) GetAllTableNames

func (a *Adapter) GetAllTableNames() ([]string, error)

GetAllTableNames returns all table names in database

func (*Adapter) GetTable

func (a *Adapter) GetTable(tableName string) (*db.Table, error)

GetTable returns table info

type Close

type Close func() error

Close represents function for close database

type Config

type Config struct {
	Username       string
	Password       string
	Host           string
	Port           int
	ServiceName    string
	Loc            string
	Isolation      string
	Questionph     *bool
	PrefetchRows   int
	PrefetchMemory int
	As             string
}

Config represents configuration for Oracle connection

func NewConfig

func NewConfig() *Config

NewConfig returns a new Config instance

func (Config) FormatDSN

func (c Config) FormatDSN() string

FormatDSN formats the given Config into a DSN string which can be passed to the driver.

Jump to

Keyboard shortcuts

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