psqlwrapper

package
v0.0.0-...-3e974fb Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package psqlwrapper contains a benchmark wrapper for PostgreSQL based databases.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterSQL

func RegisterSQL(name string, connect ConnectFunc)

Types

type ConnectFunc

type ConnectFunc func(opts benchmark.ConnectOpts) *sql.DB

type SQLDatabase

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

func (*SQLDatabase) Clear

func (w *SQLDatabase) Clear()

func (*SQLDatabase) Connect

func (w *SQLDatabase) Connect(opts benchmark.ConnectOpts)

func (*SQLDatabase) Get

func (w *SQLDatabase) Get(id string) benchmark.Document

func (*SQLDatabase) GetAll

func (w *SQLDatabase) GetAll() []benchmark.Document

func (*SQLDatabase) Put

func (w *SQLDatabase) Put(doc benchmark.Document)

func (*SQLDatabase) Update

func (w *SQLDatabase) Update(doc benchmark.Document)

Jump to

Keyboard shortcuts

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