Documentation ¶
Index ¶
- type Database
- func (d *Database) AddWordStems(data []string) error
- func (d *Database) CreateResultTable(tableName string) error
- func (d *Database) CreateSolutionMetadataTables() error
- func (d *Database) DeleteDataset(name string)
- func (d *Database) DropTable(tableName string) error
- func (d *Database) DropView(viewName string) error
- func (d *Database) IngestRow(tableName string, data []string) error
- func (d *Database) InitializeDataset(meta *api.Metadata) (*model.Dataset, error)
- func (d *Database) InitializeTable(tableName string, ds *model.Dataset) error
- func (d *Database) InsertRemainingRows() error
- func (d *Database) StoreMetadata(tableName string) error
- type WordStem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
Database is a struct representing a full logical database.
func NewDatabase ¶
NewDatabase creates a new database instance.
func (*Database) AddWordStems ¶
AddWordStems builds the word stemming lookup in the database.
func (*Database) CreateResultTable ¶
CreateResultTable creates an empty table for the solution results.
func (*Database) CreateSolutionMetadataTables ¶
CreateSolutionMetadataTables creates an empty table for the solution results.
func (*Database) DeleteDataset ¶
DeleteDataset deletes all tables & views for a dataset.
func (*Database) IngestRow ¶
IngestRow parses the raw csv data and stores it to the table specified. The previously parsed metadata is used to map columns.
func (*Database) InitializeDataset ¶
InitializeDataset initializes the dataset with the provided metadata.
func (*Database) InitializeTable ¶
InitializeTable generates and runs a table create statement based on the schema.
func (*Database) InsertRemainingRows ¶
InsertRemainingRows empties all batches and inserts the data to the database.
func (*Database) StoreMetadata ¶
StoreMetadata stores the variable information to the specified table.