mock

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct{}

func (DB) Close

func (DB) Close() error

func (DB) Open

func (DB) Open() error

func (DB) RunTransaction

func (DB) RunTransaction(ctx context.Context, handler func(ctx context.Context, tx db.Tx) error) error

type ErrDB

type ErrDB struct{}

func (ErrDB) Close

func (ErrDB) Close() error

func (ErrDB) Open

func (ErrDB) Open() error

func (ErrDB) RunTransaction

func (ErrDB) RunTransaction(ctx context.Context, handler func(ctx context.Context, tx db.Tx) error) error

type ErrRowClearer

type ErrRowClearer struct{}

func (ErrRowClearer) ClearRows

func (ErrRowClearer) ClearRows(ctx context.Context, tx db.Tx, tableName string) error

type ErrRowCreator

type ErrRowCreator struct{}

func (ErrRowCreator) CreateRows

func (ErrRowCreator) CreateRows(
	ctx context.Context,
	tx db.Tx,
	tableName string,
	schema db.Schema,
	rows []tables.Row,
) error

type ErrRowLister

type ErrRowLister struct{}

func (ErrRowLister) ListRows

func (ErrRowLister) ListRows(ctx context.Context, tx db.Tx, tableName string, schema db.Schema) ([]db.Row, error)

type ErrSchemaGetter

type ErrSchemaGetter struct{}

func (ErrSchemaGetter) GetSchema

func (ErrSchemaGetter) GetSchema(ctx context.Context, tx db.Tx, tableName string) (db.Schema, error)

type RowClearer

type RowClearer struct{}

func (RowClearer) ClearRows

func (RowClearer) ClearRows(ctx context.Context, tx db.Tx, tableName string) error

type RowCreator

type RowCreator struct{}

func (RowCreator) CreateRows

func (RowCreator) CreateRows(
	ctx context.Context,
	tx db.Tx,
	tableName string,
	schema db.Schema,
	rows []tables.Row,
) error

type RowLister

type RowLister struct{}

func (RowLister) ListRows

func (RowLister) ListRows(ctx context.Context, tx db.Tx, tableName string, schema db.Schema) ([]db.Row, error)

type SchemaGetter

type SchemaGetter struct{}

func (SchemaGetter) GetSchema

func (SchemaGetter) GetSchema(ctx context.Context, tx db.Tx, tableName string) (db.Schema, error)

Jump to

Keyboard shortcuts

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