dbfake

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: AGPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnimplemented = xerrors.New("unimplemented")

ErrUnimplemented is returned by methods only used by the enterprise/tailnet.pgCoord. This coordinator explicitly depends on postgres triggers that announce changes on the pubsub. Implementing support for this in the fake database would strongly couple the fakeQuerier to the pubsub, which is undesirable. Furthermore, it makes little sense to directly test the pgCoord against anything other than postgres. The fakeQuerier is designed to allow us to test the Coderd API, and for that kind of test, the in-memory, AGPL tailnet coordinator is sufficient. Therefore, these methods remain unimplemented in the fakeQuerier.

Functions

func New

func New() database.Store

New returns an in-memory fake of the database.

Types

This section is empty.

Jump to

Keyboard shortcuts

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