oracle

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package oracle 实现 Oracle 数据库驱动(纯 Go,经 go-ora/v2,无 CGO / 无 Instant Client)。

本包在被 import 时通过 init() 自动注册到 driver 注册表,注册名 "oracle"。 CLI 只需在 main 里空导入本包(import _ "github.com/golango-cn/dbm-cli/internal/oracle"), 即可使配置里 type: oracle 生效——这正是「自注册 + 注册表」模式的收益。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver struct{}

Driver 实现 driver.Driver,注册名 "oracle"。

func (*Driver) Description

func (d *Driver) Description() string

Description 返回面向 manifest 的描述。

func (*Driver) Name

func (d *Driver) Name() string

Name 返回驱动名。

func (*Driver) Open

func (d *Driver) Open(cfg *driver.DatasourceConfig) (driver.Conn, error)

Open 依据配置创建连接。

func (*Driver) SupportedVersions

func (d *Driver) SupportedVersions() string

SupportedVersions 返回支持的 Oracle 版本范围。

Jump to

Keyboard shortcuts

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