code: func (s *Store) PreparedQueryGet(ws memdb.WatchSet, queryID string) (uint64, *structs.PreparedQuery, error) {
  	tx := s.db.Txn(false)
  	defer tx.Abort()
  
  	// Get the table index.
  	idx := maxIndexTxn(tx, "prepared-queries")
  
  	// Look up the query by its ID.
  	watchCh, wrapped, err := tx.FirstWatch("prepared-queries", "id", queryID)
  	if err != nil {
  		return 0, nil, fmt.Errorf("failed prepared query lookup: %s", err)
  	}
  	ws.Add(watchCh)
  	return idx, toPreparedQuery(wrapped), nil
  }
docs: // PreparedQueryGet returns the given prepared query by ID.