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.
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. |
Click to show internal directories.
Click to hide internal directories.