Documentation
¶
Index ¶
Constants ¶
View Source
const SchemaVersion = uint(2)
SchemaVersion is the newest pgvector migration understood by this binary.
Variables ¶
This section is empty.
Functions ¶
func MigrateUp ¶
func MigrateUp(logger *slog.Logger, cfg config.PGVectorConfig) error
MigrateUp upgrades the configured optional pgvector database. It is kept separate from the primary PostgreSQL migration stream because the two databases can have different hosts, credentials, and lifecycles.
func MigrationsFS ¶
MigrationsFS returns the independently versioned pgvector migration set.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is the shared typed connection to the optional pgvector database. Schema migration and vector type registration happen once when it opens.
func (*Store) Queries ¶
func (s *Store) Queries() *pgvectorsqlc.Queries
Click to show internal directories.
Click to hide internal directories.