sqlite

package
v0.0.0-...-db81e0d Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package sqlite provides NEO storage backend that uses SQLite database for persistence.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

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

func Open

func Open(dburl string) (_ *Backend, err error)

Open opens Backend connected to SQLite3 database @ dburl.

dburl can be just filesystem path or SQLite3 database URI.

func (*Backend) Close

func (b *Backend) Close() (err error)

func (*Backend) LastOid

func (b *Backend) LastOid(ctx context.Context) (zodb.Oid, error)

func (*Backend) LastTid

func (b *Backend) LastTid(ctx context.Context) (zodb.Tid, error)

func (*Backend) Load

func (b *Backend) Load(ctx context.Context, xid zodb.Xid) (_ *proto.AnswerObject, err error)

Jump to

Keyboard shortcuts

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