code: func GetDeviceQueueItemsForDevEUI(db sqlx.Queryer, devEUI lorawan.EUI64) ([]DeviceQueueItem, error) {
  	var items []DeviceQueueItem
  	err := sqlx.Select(db, &items, `
          select
              *
          from
              device_queue
          where
              dev_eui = $1
          order by
              f_cnt`,
  		devEUI,
  	)
  	if err != nil {
  		return nil, handlePSQLError(err, "select error")
  	}
  
  	return items, nil
  }
docs: // GetDeviceQueueItemsForDevEUI returns all device-queue items for the given
  // DevEUI, ordered by id (keep in mind FCnt rollover).