database

package
v0.0.0-...-27145f1 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type PostgresDatabase

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

func (*PostgresDatabase) Delete

func (r *PostgresDatabase) Delete(ctx context.Context, id string) error

func (*PostgresDatabase) FindAll

func (r *PostgresDatabase) FindAll(ctx context.Context, filter map[string]interface{}) (docs []*documents.Document, err error)

func (*PostgresDatabase) FindByID

func (r *PostgresDatabase) FindByID(ctx context.Context, id string) (*documents.Document, error)

func (*PostgresDatabase) Insert

func (r *PostgresDatabase) Insert(ctx context.Context, doc *documents.Document) error

func (*PostgresDatabase) UpdateDocument

func (r *PostgresDatabase) UpdateDocument(_ context.Context, doc documents.Document) (result documents.Document, err error)

func (*PostgresDatabase) UpsertStream

func (r *PostgresDatabase) UpsertStream(ctx context.Context, input <-chan *documents.Document) error

Jump to

Keyboard shortcuts

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