db

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Db

type Db[V any] struct {
	// contains filtered or unexported fields
}

func NewDb

func NewDb[V any]() *Db[V]

func (*Db[V]) Add

func (db *Db[V]) Add(record Record[V]) Record[V]

func (*Db[V]) Delete

func (db *Db[V]) Delete(id vector.ID)

func (*Db[V]) Get

func (db *Db[V]) Get(vectors []vector.Vector, n int) []Record[V]

type Record

type Record[V any] struct {
	ID     vector.ID
	Vector vector.Vector
	Data   V
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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