public static OrderType getOrderType(ResultSet rsIndex) throws SQLException {
        final String ascOrDesc = rsIndex.getString("ASC_OR_DESC");
        if ("A".equalsIgnoreCase(ascOrDesc)) {
            return OrderType.ASC;
        } else if ("D".equalsIgnoreCase(ascOrDesc)) {
            return OrderType.DESC;
        } else {
            return OrderType.NONE;
        }
    }
Returns the {@link OrderType} of the index queried.

@param rsIndex  the result set of the index metadata query
@return  the appropriate {@link OrderType}
@throws SQLException  if the result set could not be read
runtime-parent/runtime-connector-parent/sqlite/src/main/java/com/speedment/runtime/connector/sqlite/internal/util/MetaDataUtil.java