View Source Timescale.Migration (Timescale v0.0.1-alpha.2)

This module provides helpers for installing TimescaleDB, as well as creating, modifying, and configuring Timescale resources.

Link to this section Summary

Functions

Adds a compression policy to a hypertable using the add_compression_policy function

Creates a new hypertable in an Ecto Migration.

Adds TimescaleDB as a Postgres extension

Drops TimescaleDB as a Postgres extension

Enables compression on an existing hypertable

Link to this section Functions

Link to this macro

add_compression_policy(table, compress_after)

View Source (macro)

Adds a compression policy to a hypertable using the add_compression_policy function

Link to this macro

create_hypertable(table, field, opts \\ [])

View Source (macro)

Creates a new hypertable in an Ecto Migration.

create_hypertable(:conditions, :time)
Link to this macro

create_timescaledb_extension()

View Source (macro)

Adds TimescaleDB as a Postgres extension

Link to this macro

drop_timescaledb_extension()

View Source (macro)

Drops TimescaleDB as a Postgres extension

Link to this macro

enable_hypertable_compression(table, opts)

View Source (macro)

Enables compression on an existing hypertable

See the ALTER TABLE (Compression) documentation