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) 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)
Click to show internal directories.
Click to hide internal directories.