pebble

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DirName string
	pebble.Options
}

func (*Config) AfterInject

func (c *Config) AfterInject()

AfterInject calls Init after config fields are populated.

func (*Config) BeforeInject

func (c *Config) BeforeInject()

BeforeInject is a no-op satisfying the Config interface.

func (*Config) Build

func (c *Config) Build() (*pebble.DB, error)

Build opens a Pebble database at the configured directory.

func (*Config) Init

func (c *Config) Init()

Init is a no-op placeholder for future default initialization.

type DB

type DB struct {
	*pebble.DB
	Conf Config
}

func (*DB) Close

func (p *DB) Close() error

Close closes the Pebble database.

func (*DB) Config

func (p *DB) Config() any

Config returns the embedded Conf as the configuration for injection.

func (*DB) Init

func (p *DB) Init() error

Init opens the Pebble database and stores it.

Jump to

Keyboard shortcuts

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