db

package
v0.0.0-...-99ae904 Latest Latest
Warning

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

Go to latest
Published: May 9, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitDB

func InitDB() error

TODO: write a class that stores dbPath

func UpdateRecord

func UpdateRecord(record ChangeRecord) (string, error)

func WriteRecord

func WriteRecord(record Record) (string, error)

Types

type ChangeRecord

type ChangeRecord struct {
	Id                 string
	Url                string
	ReplacementSummary string
}

type Record

type Record struct {
	Url                string
	ReplacementSummary string
}

func ReadRecord

func ReadRecord(id string) (Record, error)

Jump to

Keyboard shortcuts

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