storage

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage[PK, Col comparable] interface {
	Migrate(target Storage[PK, Col], primaryKes ...PK)

	SetColumn(col Col, defaultGetter func() any)

	Get(primaryKey PK, col Col) any

	GetRow(primaryKey PK) map[Col]any

	AddRow(primaryKey PK)

	AddRows(primaryKeys []PK)

	AddRowsWithValues(primaryKeys []PK, values map[Col][]any)

	DelRow(primaryKey PK)

	DelRows(primaryKeys []PK)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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