xdb

package
v0.5.7 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDB

func NewDB(proto string, setting *Setting, opts ...xdb.Option) (obj xdb.IDB, err error)

NewDB 创建DB实例

func RegisterDbType added in v0.1.36

func RegisterDbType(dbType string, reflectType reflect.Type) error

注册自定义类型转换

Types

type Setting added in v0.2.3

type Setting struct {
	ConnName string      `json:"-"`
	Cfg      *xdb.Config `json:"-"`
	// contains filtered or unexported fields
}

DB 数据库配置

func NewConfig added in v0.2.3

func NewConfig(connName string, opts ...xdb.Option) *Setting

New 构建DB连接信息

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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