mocks

package
v0.15.2 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDriver

type MockDriver struct{}

MockDriver is a mock implementation of the bdb driver Interface

func (*MockDriver) Assemble

func (m *MockDriver) Assemble(ctx context.Context) (*drivers.DBInfo[any], error)

Assemble the DBInfo

func (*MockDriver) Capabilities added in v0.15.0

func (m *MockDriver) Capabilities() drivers.Capabilities

func (*MockDriver) Constraints

ForeignKeyInfo returns a list of mock foreignkeys

func (*MockDriver) TableDetails added in v0.15.0

func (m *MockDriver) TableDetails(_ context.Context, info drivers.TableInfo, filter drivers.ColumnFilter) (string, string, []drivers.Column, error)

Columns returns a list of mock columns

func (*MockDriver) TablesInfo added in v0.15.0

func (m *MockDriver) TablesInfo(_ context.Context, filter drivers.Filter) (drivers.TablesInfo, error)

TableNames returns a list of mock table names

Jump to

Keyboard shortcuts

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