metadata

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetadataStore

type MetadataStore interface {
	// matches gorm.DB
	AutoMigrate(...interface{}) error
	Create(interface{}) *gorm.DB
	DB() *gorm.DB
	First(interface{}) *gorm.DB
	Order(interface{}) *gorm.DB
	Where(interface{}, ...interface{}) *gorm.DB

	// Our specific functions
	Close() error
	GetCommitTimestamp() (int64, error)
	SetCommitTimestamp(*gorm.DB, int64) error
	Transaction() *gorm.DB
}

func New

func New(
	pluginName, dataDir string,
	logger *slog.Logger,
) (MetadataStore, error)

For now, this always returns a sqlite plugin

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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