postgresql

package
v0.0.0-...-97a8b9d Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2018 License: MIT Imports: 8 Imported by: 5

Documentation

Overview

Package postgresql provides a PostgreSQL implementation of the bebop data store interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

Store is a postgresql implementation of store.

func Connect

func Connect(address, username, password, database, sslmode, sslrootcert string) (*Store, error)

Connect connects to a store.

func (*Store) Comments

func (s *Store) Comments() store.CommentStore

Comments returns a comment store.

func (*Store) Drop

func (s *Store) Drop() error

Drop drops the store database.

func (*Store) Migrate

func (s *Store) Migrate() error

Migrate migrates the store database.

func (*Store) Reset

func (s *Store) Reset() error

Reset resets the store database.

func (*Store) Topics

func (s *Store) Topics() store.TopicStore

Topics returns a topic store.

func (*Store) Users

func (s *Store) Users() store.UserStore

Users returns a user store.

Jump to

Keyboard shortcuts

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