dsextensions package - github.com/daotl/go-datastore-extensions - Go Packages

dsextensions

package module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2021 License: MIT Imports: 4 Imported by: 1

README

go-datastore-extensions

DAOT Labs' fork of textileio/go-datastore-extensions.

Made by Textile GitHub license Go Report Card

go-datastore extension interfaces

This fork adds support for bytes-backed keys in addition to original string-backed keys, which could improve performance in some cases by preventing type conversion and reducing key size.

Table of Contents

Overview

This repository contains some extension interfaces stacked on top of daotl/go-datastore.

License

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DatastoreExtensions

type DatastoreExtensions interface {
	NewTransactionExtended(ctx context.Context, readOnly bool) (TxnExt, error)
	QueryExtensions
}

type QueryExt

type QueryExt struct {
	query.Query
	SeekPrefix key.Key
}

type QueryExtensions

type QueryExtensions interface {
	QueryExtended(ctx context.Context, q QueryExt) (query.Results, error)
}

type TxnExt

type TxnExt interface {
	datastore.Txn
	QueryExtensions
}

Jump to

Keyboard shortcuts

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