View Source Timescale.Migration (Timescale v0.1.1)
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
Adds the TimescaleDB toolkit as a Postgres Extension
Disables compression on an existing hypertable. Note that chunks must be decompressed before its called
Drops TimescaleDB as a Postgres extension
Drops the TimescaleDB toolkit as a Postgres Extension
Enables compression on an existing hypertable
Removes a compression policy from a hypertable using the remove_compression_policy function
Updates the existing TimescaleDB toolkit extension
Link to this section Functions
add_compression_policy(hypertable, compress_after, opts \\ [])
View Source (macro)Adds a compression policy to a hypertable using the add_compression_policy function
Creates a new hypertable in an Ecto Migration.
create_hypertable(:conditions, :time)
Adds TimescaleDB as a Postgres extension
Adds the TimescaleDB toolkit as a Postgres Extension
Disables compression on an existing hypertable. Note that chunks must be decompressed before its called
See the ALTER TABLE (Compression) documentation
Drops TimescaleDB as a Postgres extension
Drops the TimescaleDB toolkit as a Postgres Extension
Enables compression on an existing hypertable
See the ALTER TABLE (Compression) documentation
required-arguments
Required arguments
:segment_by
- Column list on which to key the compressed segments
Removes a compression policy from a hypertable using the remove_compression_policy function
Updates the existing TimescaleDB toolkit extension