Skip to content

Latest commit

 

History

History
48 lines (37 loc) · 1.96 KB

README.md

File metadata and controls

48 lines (37 loc) · 1.96 KB

prevayler_iex

Build Status Deps Status Inline docs Coverage Status hex.pm version Ebert

“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

Important

This lib requires Erlang 19 or newer. Because I use

:os.system_time(:nanosecond)

Installation

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.