All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.itsallcode.jdbc.dialect.ExasolDialect Maven / Gradle / Ivy

There is a newer version: 0.7.1
Show newest version
package org.itsallcode.jdbc.dialect;

import org.itsallcode.jdbc.resultset.generic.ColumnMetaData;

/**
 * Dialect for the Exasol database.
 */
public class ExasolDialect extends BaseDbDialect {

    /**
     * Create a new instance.
     */
    public ExasolDialect() {
        super("jdbc:exa:");
    }

    @Override
    public ColumnValueExtractor createExtractor(final ColumnMetaData column) {
        return switch (column.type().jdbcType()) {
        case TIMESTAMP -> Extractors.timestampToUTCInstant();
        case CLOB -> Extractors.clobToString();
        case BLOB -> Extractors.blobToBytes();
        case DATE -> Extractors.dateToLocalDate();
        default -> Extractors.generic();
        };
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy