“You can sell your time, but you can never buy it back. So the price of everything in life is the amount of time you spend on it.” @yanaga
This lib requires Erlang 19 or newer. Because I use
:os.system_time(:nanosecond)
If available in Hex, the package can be installed
by adding prevayler_iex
to your list of dependencies in mix.exs
:
def deps do
[{:prevayler_iex, "~> 0.1.7"}]
end
Add application to start
def application do
[applications: [:prevayler_iex]]
end
And configure database location, if you don't change this are the default config
config :prevayler_iex, Prevalent.Journaling,
snapshot_path: "db/snapshot",
commands_path: "db/commands"
You can see how it works in this file
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/prevayler_iex.