document

package
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

Store represents a new document store utility instance.

func NewStoreWith

func NewStoreWith(docStore plugin.DocumentStore, opts ...StoreOption) *Store

NewStoreWith returns a new document store utility instance with the specified store.

func (*Store) Dump

func (store *Store) Dump() ([]string, error)

Dump returns a string array representation of the document store.

func (*Store) DumpCollection

func (store *Store) DumpCollection(ctx context.Context, db store.Database, col store.Collection, txn store.Transaction) ([]string, error)

func (*Store) DumpDatabase

func (store *Store) DumpDatabase(ctx context.Context, db store.Database) ([]string, error)

DumpDatabase returns a string array representation of the specified database.

type StoreOption

type StoreOption func(*Store)

StoreOption represents a store option.

func WithStoreDumpChildren

func WithStoreDumpChildren(v bool) StoreOption

Jump to

Keyboard shortcuts

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