data

package
v0.0.0-...-c891680 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package data contains a Database interface with multiple implementations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewJSON

func NewJSON(filepath string) (db *json.Database, err error)

func NewMemory

func NewMemory() (db *memory.Database, err error)

func NewPostgres

func NewPostgres(config settings.PostgresDatabase, logger log.LeveledLogger) (
	db *psql.Database, err error)

Types

This section is empty.

Directories

Path Synopsis
Package errors contains database errors common to all implementations.
Package errors contains database errors common to all implementations.
Package json implements a data store using a single JSON file and the memory package.
Package json implements a data store using a single JSON file and the memory package.
Package memory implements a data store in memory only.
Package memory implements a data store in memory only.
Package psql implements a data store using a client to a Postgres database.
Package psql implements a data store using a client to a Postgres database.

Jump to

Keyboard shortcuts

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