code: func (t *SwitchesTable) fetch(c context.Context) error {
  	db := database.Get(c)
  	rows, err := db.QueryContext(c, `
  		SELECT id, name, description, ports, state, rack_id
  		FROM switches
  	`)
  	if err != nil {
  		return errors.Annotate(err, "failed to select switches").Err()
  	}
  	defer rows.Close()
  	for rows.Next() {
  		s := &Switch{}
  		if err := rows.Scan(&s.Id, &s.Name, &s.Description, &s.Ports, &s.State, &s.RackId); err != nil {
  			return errors.Annotate(err, "failed to scan switch").Err()
  		}
  		t.current = append(t.current, s)
  	}
  	return nil
  }
docs: // fetch fetches the switches from the database.