Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 772 Bytes

README.md

File metadata and controls

40 lines (29 loc) · 772 Bytes

ICalendar RRULE Type

This adds an Ecto custom type for RRULE for use in your schemas.

Usage

  # for a single RRULE
  schema "somethings" do
    field :rrule, ICalendar.RRULE.Type
    ...
  end

  # or when allowing for multiple rrules
  schema "somethings" do
    field :rrules, {:array, ICalendar.RRULE.Type}, default: []
    ...
  end

WARNING

This is a pre-release work-in-progress that has a dependency on an unmerged walter/icalendar:feature/rrule branch version of icalendar. Use at your own risk.

Installation

The package can be installed by adding icalendar_rrule_type to your list of dependencies in mix.exs via github:

def deps do
  [
    {:icalendar_rrule_type, github: "walter/icalendar_rrule_type"}
  ]
end