db

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttachContext

func AttachContext(ctx context.Context, driver Driver) context.Context

Types

type Driver

type Driver interface {
	URI(ctx context.Context) string
	Connection(ctx context.Context) (*sql.DB, error)
	List(ctx context.Context) ([]string, error)
	Clone(ctx context.Context, source string, target string) error
	Create(ctx context.Context, target string) error
	Remove(ctx context.Context, target string) error
	PruneList(ctx context.Context) ([]string, error)
	Prune(ctx context.Context) error
}

func FromContext

func FromContext(ctx context.Context) Driver

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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