specbase

package
v1.1.25 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2024 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

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

func (*Filter) Build

func (f *Filter) Build() error

func (*Filter) Filter

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

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

func (Mode) Convert

func (m Mode) Convert() Mode

func (Mode) IsSupport

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