db

package
v0.0.0-...-b2af7ea Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MediaDBCols = "" /* 177-byte string literal not displayed */

)

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
	WriteDuplicates(meta map[string]*fastdu.Meta) // write duplicates 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 DBImpl

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

func (*DBImpl) Close

func (d *DBImpl) Close()

func (*DBImpl) WriteDuplicates

func (d *DBImpl) WriteDuplicates(meta map[string]*fastdu.Meta)

func (*DBImpl) WriteMeta

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

Jump to

Keyboard shortcuts

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