# Get function name, module and arity from function capture

**URL:** <https://forum.elixirforum.com/t/get-function-name-module-and-arity-from-function-capture/69968>\
**Category:** Questions\
**Tags:** reflection\
**Created:** [March 14, 2025, 9:23pm UTC](https://forum.elixirforum.com/t/get-function-name-module-and-arity-from-function-capture/69968 "2025-03-14T21:23:12Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![derek-zhou](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/derek-zhou/32/19943_2.png) [@derek-zhou](https://forum.elixirforum.com/u/derek-zhou)\
**Post date:** [March 14, 2025, 9:41pm UTC](https://forum.elixirforum.com/t/get-function-name-module-and-arity-from-function-capture/69968/5 "2025-03-14T21:41:52Z")

</div>

> [@stjefim](#):
>
> So to answer your question - I agree I just need to store these 3 pieces in the DB, however, how to obtain them from a function capture.

I don’t think there is a general solution as function can be anonymous. Also, storing function in a db may not be the best idea. Code will change, db record last for a long time. Also, think of the security implication.

---

_[View the full topic](https://forum.elixirforum.com/t/get-function-name-module-and-arity-from-function-capture/69968)._
