code: func AuthUserUserPermissionsByUserID(db XODB, userID float64) ([]*AuthUserUserPermission, error) {
  	var err error
  
  	// sql query
  	const sqlstr = `SELECT ` +
  		`id, user_id, permission_id ` +
  		`FROM django.auth_user_user_permissions ` +
  		`WHERE user_id = :1`
  
  	// run query
  	XOLog(sqlstr, userID)
  	q, err := db.Query(sqlstr, userID)
  	if err != nil {
  		return nil, err
  	}
  	defer q.Close()
  
  	// load results
  	res := []*AuthUserUserPermission{}
  	for q.Next() {
  		auup := AuthUserUserPermission{
  			_exists: true,
  		}
  
  		// scan
  		err = q.Scan(&auup.ID, &auup.UserID, &auup.PermissionID)
  		if err != nil {
  			return nil, err
  		}
  
  		res = append(res, &auup)
  	}
  
  	return res, nil
  }
docs: // AuthUserUserPermissionsByUserID retrieves a row from 'django.auth_user_user_permissions' as a AuthUserUserPermission.
  //
  // Generated from index 'auth_user_user_permissions1cca'.