private static Optional<Class<?>> patternMapper(Pattern pattern, ColumnMetaData md, Class<?> expected) {
        return Optional.of(md.getTypeName())
            .map(String::toUpperCase)
            .map(pattern::matcher)
            .filter(Matcher::find)
            .map(match -> {
                final String group = match.group(1);
                if (group == null) {
                    return expected;
                } else {
                    final int digits = Integer.parseInt(group);
                    if      (digits > 11) return Long.class;
                    else if (digits > 4)  return Integer.class;
                    else if (digits > 2)  return Short.class;
                    else                  return Byte.class;
                }
            });
    }
'true' below might speed up metadata retrieval since approximations can
be used. See https://github.com/speedment/speedment-enterprise/issues/168
runtime-parent/runtime-connector-parent/sqlite/src/main/java/com/speedment/runtime/connector/sqlite/internal/SqliteMetadataHandlerImpl.java