code: func (m *DbMap) DynamicTableFor(tableName string, checkPK bool) (*TableMap, error) {
  	table, found := m.dynamicTableFind(tableName)
  	if !found {
  		return nil, fmt.Errorf("gorp: no table found for name: %v", tableName)
  	}
  
  	if checkPK && len(table.keys) < 1 {
  		e := fmt.Sprintf("gorp: no keys defined for table: %s",
  			table.TableName)
  		return nil, errors.New(e)
  	}
  
  	return table, nil
  }
docs: // DynamicTableFor returns the *TableMap for the dynamic table corresponding
  // to the input tablename
  // If no table is mapped to that tablename an error is returned.
  // If checkPK is true and the mapped table has no registered PKs, an error is returned.