LoadTable MockCsv is used for mocking so has a global data source we can load data into
(schemaName, name, csvRaw string)
| 48 | |
| 49 | // LoadTable MockCsv is used for mocking so has a global data source we can load data into |
| 50 | func LoadTable(schemaName, name, csvRaw string) { |
| 51 | CsvGlobal.CreateTable(name, csvRaw) |
| 52 | schema.DefaultRegistry().SchemaRefresh(SchemaName) |
| 53 | } |
| 54 | |
| 55 | // Source DataSource for testing creates an in memory b-tree per "table". |
| 56 | // Is not thread safe. |