private JavaTypeMap.Rule bitRule() {
        return (sqlTypeMapping, md) -> {
            // Map a BIT(1) to boolean
            if ("BIT".equalsIgnoreCase(md.getTypeName()) && md.getColumnSize() == 1) {
                return Optional.of(Boolean.class);
            } else return Optional.empty();
        };
    }
Created by fdirlikl on 11/13/2015.

@author Fatih Dirlikli
@author Emil Forslund
runtime-parent/runtime-connector-parent/postgres/src/main/java/com/speedment/runtime/connector/postgres/internal/PostgresDbmsMetadataHandler.java