package
0.0.0-20211212194252-0d40728414ff
Repository: https://github.com/uncharted-distil/distil.git
Documentation: pkg.go.dev

# Functions

DefaultPostgresValueFromD3MType generates a default postgres value from a d3m type.
GetIndexStatement returns the index SQL statement for a field of the provided type.
GetValidTypes returns all of the supported types in the DB.
GetViewField returns a SQL string that does a typed select, defaulting as necessary.
IsColumnType can be use to check columns potential types.
IsNullable indicates whether or not a database type can be empty.
MapD3MTypeToPostgresType generates a postgres type from a d3m type.
MapPostgresTypeToD3MType converts postgres types to D3M types.
NewClient instantiates and returns a new postgres client constructor.
NewDatabase creates a new database instance.
NewDataset creates a new dataset instance.
ValueForFieldType generates the select field value for a given variable type.

# Constants

PredictionTableName is the name of the table for prediction requests.
RequestFeatureTableName is the name of the table for the request features.
RequestFilterTableName is the name of the table for the request filters.
RequestTableName is the name of the table for solution requests.
SolutionFeatureWeightTableName is the name of the table for solution feature weights.
SolutionResultExplainOutputTableName is the name of the table for the result explain output.
SolutionResultTableName is the name of the table for the result.
SolutionScoreTableName is the name of the table for the score.
SolutionStateTableName is the name of the table for solution state.
SolutionTableName is the name of the table for solutions.
WordStemTableName is the name of the table for the word stems.

# Structs

Config has the necessary configuration values for a postgres connection.
Database is a struct representing a full logical database.
Dataset is a struct containing the metadata of a dataset being processed.
IntegratedClient is a postgres client that can be used to query a postgres database.
WordStem contains the pairing of a word and its stemmed version.

# Interfaces

DatabaseDriver defines the behaviour of the querying engine.

# Type aliases

ClientCtor repressents a client constructor to instantiate a postgres client.
CopyFromSource represents a function that can use the CopyFrom operation to bulk load the data to SQL.