Help us shape the future of Go! Take the 2026 Go Developer Survey

coredb

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2025 License: MIT Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDBIsNotInitialized   = errors.New("db is not initialized")
	ErrDBIsDifferentVersion = errors.New("db is different version")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Path     string
	ReadOnly bool

	// S3 for now only supports s3://
	S3Region   string
	S3Key      string
	S3Secret   string
	S3UseSSL   bool
	S3Endpoint string
}

type Source

type Source struct {
	// contains filtered or unexported fields
}

func New

func New(c Config) *Source

func (*Source) Attach

func (s *Source) Attach(ctx context.Context, db *db.Pool) error

func (*Source) Catalog

func (s *Source) Catalog(ctx context.Context) cs.Source

func (*Source) Engine

func (s *Source) Engine() engines.Engine

func (*Source) IsReadonly

func (s *Source) IsReadonly() bool

func (*Source) Name

func (s *Source) Name() string

Jump to

Keyboard shortcuts

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