db

package
v0.0.0-...-a4fceb9 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB interface {
	WriteMeta(meta map[string]*fastdu.Meta) // write metadata to db
	Close()                                 // close database
}

func New

func New() (DB, error)

New creates a new db and tables associated with it if they don't exist

type Db

type Db struct {
	*sql.DB
}

func (*Db) Close

func (d *Db) Close()

func (*Db) WriteMeta

func (d *Db) WriteMeta(meta map[string]*fastdu.Meta)

Jump to

Keyboard shortcuts

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