internal

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2026 License: Unlicense Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDBAdapter

type MockDBAdapter struct {
	ExecContextFn  func(ctx context.Context, query string, args ...interface{}) (ksql.Result, error)
	QueryContextFn func(ctx context.Context, query string, args ...interface{}) (ksql.Rows, error)
}

MockDBAdapter mocks the ksql.DBAdapter interface

func (MockDBAdapter) ExecContext

func (m MockDBAdapter) ExecContext(ctx context.Context, query string, args ...interface{}) (ksql.Result, error)

func (MockDBAdapter) QueryContext

func (m MockDBAdapter) QueryContext(ctx context.Context, query string, args ...interface{}) (ksql.Rows, error)

type MockResult

type MockResult struct {
	LastInsertIdFn func() (int64, error)
	RowsAffectedFn func() (int64, error)
}

MockResult mocks the ksql.Result interface

func (MockResult) LastInsertId

func (m MockResult) LastInsertId() (int64, error)

func (MockResult) RowsAffected

func (m MockResult) RowsAffected() (int64, error)

type MockRows

type MockRows struct {
	ScanFn    func(...interface{}) error
	CloseFn   func() error
	NextFn    func() bool
	ErrFn     func() error
	ColumnsFn func() ([]string, error)
}

func (MockRows) Close

func (m MockRows) Close() error

func (MockRows) Columns

func (m MockRows) Columns() ([]string, error)

func (MockRows) Err

func (m MockRows) Err() error

func (MockRows) Next

func (m MockRows) Next() bool

func (MockRows) Scan

func (m MockRows) Scan(values ...interface{}) error

Jump to

Keyboard shortcuts

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