code: func TsRewrite(db XODB, v0 pgtypes.Tsquery, v1 string, v2 pgtypes.Tsquery, v3 pgtypes.Tsquery, v4 pgtypes.Tsquery) (pgtypes.Tsquery, error) {
  	var err error
  
  	// sql query
  	const sqlstr = `SELECT pg_catalog.ts_rewrite($1, $2, $3, $4, $5)`
  
  	// run query
  	var ret pgtypes.Tsquery
  	XOLog(sqlstr, v0, v1, v2, v3, v4)
  	err = db.QueryRow(sqlstr, v0, v1, v2, v3, v4).Scan(&ret)
  	if err != nil {
  		return pgtypes.Tsquery{}, err
  	}
  
  	return ret, nil
  }
docs: // TsRewrite calls the stored procedure 'pg_catalog.ts_rewrite(tsquery, text, tsquery, tsquery, tsquery) tsquery' on db.