go-datastore

module
v0.0.25 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: GPL-3.0

README

go-datastore

Data storage for apps within the organization.

Installation

go-datastore may be installed using the go get command:

go get github.com/pghq/go-datastore

Usage

import (
    "github.com/pghq/go-datastore/datastore/postgres"
    "github.com/pghq/go-datastore/datastore"
)

To create a new repo:

repo, err := datastore.New(postgres.New("postgres://postgres:postgres@db:5432"))
if err != nil{
    panic(err)
}

// TODO: See tests for specific use cases...

Directories

Path Synopsis
Package datastore provides a repository implementation.
Package datastore provides a repository implementation.
client
Package client provides resources for data persistence and retrieval.
Package client provides resources for data persistence and retrieval.
internal
Package internal provides our internal API resources.
Package internal provides our internal API resources.
internal/mock
Package mock provides a basic mock for testing the datastore.
Package mock provides a basic mock for testing the datastore.
postgres
Package postgres provides a store implementation using Postgres.
Package postgres provides a store implementation using Postgres.
postgres/integration
Package integration provides resources for doing integration testing.
Package integration provides resources for doing integration testing.

Jump to

Keyboard shortcuts

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