memorydb

package
v4.2.3 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 15 Imported by: 1

README

Go Reference

Kivik MemoryDB

Experimental memory driver for Kivik.

This driver stores documents in memory only, and is intended for testing purposes only. Not all Kivik features are or will be supported. This package is still under active development.

Usage

This package provides an implementation of the github.com/go-kivik/kivik/driver interface. You must import the driver and can then use the full Kivik API.

package main

import (
    "context"

    "github.com/go-kivik/kivik/v4"
    _ "github.com/go-kivik/kivik/v4/x/memorydb" // The Memory driver
)

func main() {
    client, err := kivik.New(context.TODO(), "memory", "")
    // ...
}

License

This software is released under the terms of the Apache 2.0 license. See LICENCE.md, or read the full license.

Documentation

Overview

Package memorydb provides a memory-backed Kivik driver, intended for testing. This driver is an experimental work in progress, and subject to change without notice.

Index

Constants

View Source
const (
	Version = "0.0.1"
	Vendor  = "Kivik Memory Adaptor"
)

Identifying constants

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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