db

package
v0.1.3-beta Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2023 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Db

func Db(opts ...Option) plugin.Plugin

func GetDriver

func GetDriver() *sql.Driver

Types

type Option

type Option func(db *PlugDB)

func Config

func Config(c *conf.Db) Option

func Weight

func Weight(w int) Option

type PlugDB

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

func (*PlugDB) ConfPrefix

func (db *PlugDB) ConfPrefix() string

func (*PlugDB) DependsOn

func (db *PlugDB) DependsOn(config.Value) []string

func (*PlugDB) Load

func (db *PlugDB) Load(b config.Value) (plugin.Plugin, error)

func (*PlugDB) Name

func (db *PlugDB) Name() string

func (*PlugDB) Unload

func (db *PlugDB) Unload() error

func (*PlugDB) Weight

func (db *PlugDB) Weight() int

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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