private static ResultTable.Builder createBuilder(@NotNull ResultSetMetaData metaData) throws SQLException {
int columnCount = metaData.getColumnCount();
ColumnMetadata[] result = new ColumnMetadata[columnCount];
for (int i = 0; i < columnCount; i++)
result[i] = new ColumnMetadata(i, metaData.getColumnLabel(i + 1), getColumnType(metaData, i+1), metaData.getColumnType(i+1), metaData.getColumnTypeName(i+1));
return ResultTable.builder(asList(result));
}