Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
MockCsvGlobal = NewMockSource()
)
Functions ¶
Types ¶
type MockCsvSource ¶
type MockCsvSource struct {
// contains filtered or unexported fields
}
Mock Data source for testing
- creates an in memory b-tree per "table"
- not thread safe
func NewMockSource ¶
func NewMockSource() *MockCsvSource
func (*MockCsvSource) Close ¶
func (m *MockCsvSource) Close() error
func (*MockCsvSource) CreateTable ¶
func (m *MockCsvSource) CreateTable(tableName, csvRaw string)
func (*MockCsvSource) Table ¶
func (m *MockCsvSource) Table(tableName string) (*schema.Table, error)
func (*MockCsvSource) Tables ¶
func (m *MockCsvSource) Tables() []string
Click to show internal directories.
Click to hide internal directories.