vecadmin

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package vecadmin provides an administrative virtual table to manage vector indexes. It currently supports forcing an index rebuild for a given shadow table using a simple SELECT with MATCH on the requested shadow name.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(db *sql.DB) error

Types

type Cursor

type Cursor struct {
	// contains filtered or unexported fields
}

func (*Cursor) Close

func (c *Cursor) Close() error

func (*Cursor) Column

func (c *Cursor) Column(col int) (vtab.Value, error)

func (*Cursor) Eof

func (c *Cursor) Eof() bool

func (*Cursor) Filter

func (c *Cursor) Filter(idxNum int, idxStr string, vals []vtab.Value) error

func (*Cursor) Next

func (c *Cursor) Next() error

func (*Cursor) Rowid

func (c *Cursor) Rowid() (int64, error)

type Module

type Module struct {
	// contains filtered or unexported fields
}

Module provides administrative operations via a virtual table. Usage:

CREATE VIRTUAL TABLE vec_admin USING vec_admin(op);
SELECT op FROM vec_admin WHERE op MATCH 'main._vec_vec_knn:rootA'; -- rebuild dataset slice

Returns a single row with op='reindexed:<count>' on success.

func (*Module) Connect

func (m *Module) Connect(ctx vtab.Context, args []string) (vtab.Table, error)

func (*Module) Create

func (m *Module) Create(ctx vtab.Context, args []string) (vtab.Table, error)

type Table

type Table struct {
	// contains filtered or unexported fields
}

func (*Table) BestIndex

func (t *Table) BestIndex(info *vtab.IndexInfo) error

func (*Table) Destroy

func (t *Table) Destroy() error

func (*Table) Disconnect

func (t *Table) Disconnect() error

func (*Table) Open

func (t *Table) Open() (vtab.Cursor, error)

Jump to

Keyboard shortcuts

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