database

package
v0.0.0-...-7fb1235 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCleanFolder

func GetCleanFolder() (string, error)

func QueryDB

func QueryDB[T any](sql string, mapper RowMapper[T]) ([]T, error)

Types

type RowMapper

type RowMapper[T any] func(scanner ScannerFunction) T

type ScannerFunction

type ScannerFunction func(dest ...any)

type TblConfig

type TblConfig struct {
	Name  string
	Value string
}

type TblDirtyFiles

type TblDirtyFiles struct {
	Id             uint64
	Name           string
	Path           string
	Type           string
	Clean          bool
	Md5sum         sql.NullString
	ParentFolderId sql.NullInt64
	Mtime          string
}

func GetDirtyRootFolders

func GetDirtyRootFolders() ([]*TblDirtyFiles, error)

Jump to

Keyboard shortcuts

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