qlc v1.0.6 Qlc.Record View Source

Record enhancement

bang!/2 macro provide erlang expression for record access in QLC expression.

example

iex> user([id: 1, name: :foo, age: 10]) 
{:user, 1, :foo, 10}
iex> List.flatten(user!({:user, 1, :foo, 10}, :name))
' element(3, {user,1,foo,10}) '
iex> "#{user!({:user, 2, :bar, 10}, :age)}"
" element(4, {user,2,bar,10}) "

Link to this section Summary

Functions

define fields/1 function for getting record definition

Link to this section Functions

Link to this macro

defrecord(tag, args) View Source (macro)

define fields/1 function for getting record definition

example