View Source EctoForge.Extension.Get.Select (ecto_forge v0.1.12)
Use with your EctoForge.CreateInstance
use EctoForge.CreateInstance,
extensions_get: [
EctoForge.Extension.Get.Select,
],
repo: MyApp.Repo
## When you coonnect You can select yours fields ### Example
MyApp.Model.get_all(select: MyApp.Model.fields())
Summary
Functions
After with result
Handle your functions find_all
get_all
get!
get
find
before
You can use {:stop, query, attrs} -> Don't execute another extensions before
Before with your query
Handle your functions find_all
get_all
get!
get
find
before
Functions
Link to this function
after_query_add_extension_to_get(module, mode, repo, list_exetensions_executed, prev_query, result, attrs)
View SourceAfter with result
Handle your functions find_all
get_all
get!
get
find
before
You can use {:stop, query, attrs} -> Don't execute another extensions before
Link to this function
before_query_add_extension_to_get(module, mode, repo, list_exetensions_executed, query, attrs)
View SourceBefore with your query
Handle your functions find_all
get_all
get!
get
find
before
return {query, attrs} # required to return
You can use {:stop, query, attrs} -> Don't execute another extensions before You can use {:reusult, result, attrs} -> Don't execute repo extensions before