# Possible to get results from postgres table function?

**URL:** <https://discourse.diesel.rs/t/possible-to-get-results-from-postgres-table-function/101>\
**Category:** Uncategorized\
**Created:** [July 3, 2019, 7:03am UTC](https://discourse.diesel.rs/t/possible-to-get-results-from-postgres-table-function/101 "2019-07-03T07:03:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hrbigelow](https://avatars.discourse-cdn.com/v4/letter/h/eb9ed0/32.png) [@hrbigelow](https://discourse.diesel.rs/u/hrbigelow)\
**Post date:** [July 3, 2019, 7:03am UTC](https://discourse.diesel.rs/t/possible-to-get-results-from-postgres-table-function/101/1 "2019-07-03T07:03:31Z")

</div>

Can `sql_function!` support PostgreSQL table functions, such as?

```auto
create function get(my_id integer) 
returns table (a integer, b text, c uuid)
as
$$
select a, b, c, from source
where id = my_id;
$$ language sql

```

If so, what would be the appropriate way to construct and then call it in Diesel?

Thanks in advance!
