# Tempus SQL v1.0.0-rc.0 - Table of Contents

> Ecto support for `Tempus` library

## Pages

- [TempusSQL](readme.md)

## Modules

- [Tempus.Ecto.Query.API](Tempus.Ecto.Query.API.md): Provides several helpers to query DB for the `Tempus.Slot` type.
- [Tempus.SQL](Tempus.SQL.md): The set of functions bringing DB support to `Tempus` library.

- Types
  - [Tempus.Ecto.Composite.Type](Tempus.Ecto.Composite.Type.md): Implements the `Ecto.Type` behaviour for a user-defined
  [postgres composite type](https://www.postgresql.org/docs/current/rowtypes.html)
  called `:tempus_slot` to store instances of `Tempus.Slot`.
  - [Tempus.Ecto.Map.Type](Tempus.Ecto.Map.Type.md): Implements `Ecto.Type` behaviour for `Tempus.Slot`,
  where the underlying schema type is a map.

## Mix Tasks

- [mix tempus.gen.postgres.tempus_slot](Mix.Tasks.Tempus.Gen.Postgres.TempusSlot.md): Generates a migration to add a composite type called `:tempus_slot`
  to a Postgres database.
- [mix tempus.gen.postgres.update_tempus_slot](Mix.Tasks.Tempus.Gen.Postgres.UpdateTempusSlot.md): Generates a migration to alter the composite type `:tempus_slot` in Postgres
to include `from_open` and `to_open` boolean attributes.

