oracle

package
v0.11.310 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(c Config) (*Client, error)

func (*Client) GetDatabaseSummary added in v0.11.275

func (db *Client) GetDatabaseSummary(ctx context.Context) (*ansisql.DBDatabase, error)

func (*Client) Ping added in v0.11.275

func (db *Client) Ping(ctx context.Context) error

func (*Client) RunQueryWithoutResult added in v0.11.275

func (db *Client) RunQueryWithoutResult(ctx context.Context, query *query.Query) error

func (*Client) Select added in v0.11.275

func (db *Client) Select(ctx context.Context, query *query.Query) ([][]interface{}, error)

func (*Client) SelectWithSchema added in v0.11.275

func (db *Client) SelectWithSchema(ctx context.Context, queryObj *query.Query) (*query.QueryResult, error)

type Config

type Config struct {
	Username     string
	Password     string
	Host         string
	Port         string
	ServiceName  string
	SID          string
	Role         string
	SSL          bool
	SSLVerify    bool
	PrefetchRows int
	TraceFile    string
	Wallet       string
}

func (*Config) DSN added in v0.11.275

func (c *Config) DSN() (string, error)

func (*Config) GetIngestrURI

func (c *Config) GetIngestrURI() string

Jump to

Keyboard shortcuts

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