specbase

package
v4.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package specbase is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter added in v4.1.0

type Filter struct {
	Expr string `yaml:"expr,omitempty"`
	// contains filtered or unexported fields
}

func (*Filter) Build added in v4.1.0

func (f *Filter) Build() error

func (*Filter) Filter added in v4.1.0

func (f *Filter) Filter(record Record) (bool, error)

type MockStatementBuilder

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

MockStatementBuilder is a mock of StatementBuilder interface.

func NewMockStatementBuilder

func NewMockStatementBuilder(ctrl *gomock.Controller) *MockStatementBuilder

NewMockStatementBuilder creates a new mock instance.

func (*MockStatementBuilder) Build

func (m *MockStatementBuilder) Build(records ...Record) (string, int, error)

Build mocks base method.

func (*MockStatementBuilder) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

type MockStatementBuilderMockRecorder

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

MockStatementBuilderMockRecorder is the mock recorder for MockStatementBuilder.

func (*MockStatementBuilderMockRecorder) Build

func (mr *MockStatementBuilderMockRecorder) Build(records ...interface{}) *gomock.Call

Build indicates an expected call of Build.

type Mode added in v4.1.0

type Mode string
const (
	DefaultMode      = InsertMode
	InsertMode  Mode = "INSERT"
	UpdateMode  Mode = "UPDATE"
	DeleteMode  Mode = "DELETE"
)

func (Mode) Convert added in v4.1.0

func (m Mode) Convert() Mode

func (Mode) IsSupport added in v4.1.0

func (m Mode) IsSupport() bool

type Record

type Record []string

type Records

type Records []Record

type StatementBuilder

type StatementBuilder interface {
	Build(records ...Record) (statement string, nRecord int, err error)
}

StatementBuilder is the interface to build statement

type StatementBuilderFunc

type StatementBuilderFunc func(records ...Record) (statement string, nRecord int, err error)

func (StatementBuilderFunc) Build

func (f StatementBuilderFunc) Build(records ...Record) (statement string, nRecord int, err error)

Jump to

Keyboard shortcuts

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