dummy

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package dummy provides a dummy database adapter for testing purposes. It returns mock data and does not connect to any real database.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(dsn string) (core.Source, error)

New creates a new dummy database adapter.

Types

type DummyAdapter

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

DummyAdapter is a mock database adapter that returns fake data. Useful for testing and development without a real database connection.

func (*DummyAdapter) Close

func (d *DummyAdapter) Close(ctx context.Context) error

func (*DummyAdapter) Connect

func (d *DummyAdapter) Connect(ctx context.Context) error

func (*DummyAdapter) ExecuteQuery

func (d *DummyAdapter) ExecuteQuery(ctx context.Context, query string, args ...any) (*core.QueryResult, error)

func (*DummyAdapter) GetSchema

func (d *DummyAdapter) GetSchema(ctx context.Context) ([]core.TableSchema, error)

func (*DummyAdapter) Name

func (d *DummyAdapter) Name() string

Jump to

Keyboard shortcuts

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