store

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package store defines the aggregate persistence interface for Nexus.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store interface {
	Tenants() tenant.Store
	Keys() key.Store
	Usage() usage.Store

	// Lifecycle
	Migrate() error
	Close() error
}

Store is the aggregate persistence interface. Each subsystem's Store interface is composed here. Note: Audit data is NOT stored here — it flows through the audit_hook extension to Chronicle, which owns audit persistence.

func NewMemory

func NewMemory() Store

NewMemory creates an in-memory store.

Directories

Path Synopsis
internal
conv
Package conv holds the conversions every database backend uses at its model boundary, so the backends cannot each invent their own.
Package conv holds the conversions every database backend uses at its model boundary, so the backends cannot each invent their own.
Package mongo provides a MongoDB-backed store implementation for Nexus using grove ORM with the mongodriver.
Package mongo provides a MongoDB-backed store implementation for Nexus using grove ORM with the mongodriver.
Package postgres provides a PostgreSQL-backed store implementation for Nexus using grove ORM with programmatic migrations.
Package postgres provides a PostgreSQL-backed store implementation for Nexus using grove ORM with programmatic migrations.
Package sqlite provides a SQLite-backed store implementation for Nexus using grove ORM with programmatic migrations.
Package sqlite provides a SQLite-backed store implementation for Nexus using grove ORM with programmatic migrations.
Package storetest runs one conformance test body against every Nexus store backend: memory and SQLite always, PostgreSQL when NEXUS_TEST_POSTGRES_DSN is set and MongoDB when NEXUS_TEST_MONGO_URI is set.
Package storetest runs one conformance test body against every Nexus store backend: memory and SQLite always, PostgreSQL when NEXUS_TEST_POSTGRES_DSN is set and MongoDB when NEXUS_TEST_MONGO_URI is set.

Jump to

Keyboard shortcuts

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