Versions in this module Expand all Collapse all v0 v0.1.1 Feb 11, 2024 Changes in this version + const DefaultColumn + const IDColumn + const RecordIDColumn + type Collection struct + Name string + Settings Settings + TableName string + func (c Collection) Capped() bool + type CollectionCreateParams struct + CappedDocuments int64 + CappedSize int64 + DBName string + Name string + func (ccp *CollectionCreateParams) Capped() bool + type IndexInfo struct + Key []IndexKeyPair + Name string + Unique bool + type IndexKeyPair struct + Descending bool + Field string + type Registry struct + func NewRegistry(u string, l *zap.Logger, sp *state.Provider) (*Registry, error) + func (r *Registry) Close() + func (r *Registry) Collect(ch chan<- prometheus.Metric) + func (r *Registry) CollectionCreate(ctx context.Context, params *CollectionCreateParams) (bool, error) + func (r *Registry) CollectionDrop(ctx context.Context, dbName, collectionName string) (bool, error) + func (r *Registry) CollectionGet(ctx context.Context, dbName, collectionName string) *Collection + func (r *Registry) CollectionList(ctx context.Context, dbName string) ([]*Collection, error) + func (r *Registry) CollectionRename(ctx context.Context, dbName, oldCollectionName, newCollectionName string) (bool, error) + func (r *Registry) DatabaseDrop(ctx context.Context, dbName string) bool + func (r *Registry) DatabaseGetExisting(ctx context.Context, dbName string) *fsql.DB + func (r *Registry) DatabaseGetOrCreate(ctx context.Context, dbName string) (*fsql.DB, error) + func (r *Registry) DatabaseList(ctx context.Context) []string + func (r *Registry) Describe(ch chan<- *prometheus.Desc) + func (r *Registry) IndexesCreate(ctx context.Context, dbName, collectionName string, indexes []IndexInfo) error + func (r *Registry) IndexesDrop(ctx context.Context, dbName, collectionName string, indexNames []string) error + type Settings struct + CappedDocuments int64 + CappedSize int64 + Indexes []IndexInfo + UUID string + func (s *Settings) Scan(src any) error + func (s Settings) Value() (driver.Value, error) v0.1.0 Feb 11, 2024