public interface DatabaseDriver
Modifier and Type | Method and Description |
---|---|
void |
bulkCopy(String path,
String delimiter,
boolean hasTruth,
PredicateInfo predicateInfo,
Partition partition)
Perform a bulk copy operation to load the file directly into the database.
|
void |
close()
Close out any outstanding connections and cleanup.
|
String |
finalizeCreateTable(com.healthmarketscience.sqlbuilder.CreateTableQuery createTable)
Gives the driver a chance to perform any final
manipulations to the CREATE TABLE statement.
|
Connection |
getConnection()
Returns a connection to the database.
|
String |
getDoubleTypeName()
Get the type name for a double type.
|
String |
getStringAggregate(String columnName,
String delimiter,
boolean distinct)
Get a string aggregating expression (one that
would appear in the SELECT clause of a grouping query.
|
String |
getSurrogateKeyColumnDefinition(String columnName)
Get the SQL definition for a primary, surrogate (auto-increment) key
for use in a CREATE TABLE statement.
|
String |
getTypeName(ConstantType type)
Get the type name for each argument type.
|
String |
getUpsert(String tableName,
String[] columns,
String[] keyColumns)
Get the SQL for an upsert (merge) on the specified table and columns.
|
boolean |
supportsBulkCopy()
Returns whether the underline database supports bulk copying operations.
|
void close()
Connection getConnection()
boolean supportsBulkCopy()
void bulkCopy(String path, String delimiter, boolean hasTruth, PredicateInfo predicateInfo, Partition partition)
String getTypeName(ConstantType type)
String getSurrogateKeyColumnDefinition(String columnName)
String getDoubleTypeName()
String getUpsert(String tableName, String[] columns, String[] keyColumns)
String finalizeCreateTable(com.healthmarketscience.sqlbuilder.CreateTableQuery createTable)
Copyright © 2018 University of California, Santa Cruz. All rights reserved.