Documentation
¶
Overview ¶
Package dbspec implements a string notation for referring to a database. A DB specification can take one of these forms:
pebble:DIR[~VECTOR_NAMESPACE]
A Pebble database in the directory DIR. DIR can be relative or absolute.
firestore:PROJECT,DATABASE[~VECTOR_NAMESPACE]
A Firestore DB in the given GCP project and Firestore database.
mem[~VECTOR_NAMESPACE]
An in-memory database.
If a VECTOR_NAMESPACE is present, the spec refers to the vector DB portion of the database. The namespace can be empty, in which case the spec ends with a '~'.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Spec ¶
type Spec struct { Kind string // "pebble", "firestore", etc. Location string // directory, project, etc. Name string // database name, for firestore IsVector bool // spec refers to the vector part of the database Namespace string // namespace of vector DB, possibly empty }
A Spec is the parsed representation of a DB specification string.
Click to show internal directories.
Click to hide internal directories.