Sha256: c81ebe4564f7aacfbd4196b3c4cc2083db625f57c9af0db2ea6fdb11d987a32e
Contents?: true
Size: 1.45 KB
Versions: 3
Compression:
Stored size: 1.45 KB
Contents
module Timescaledb class Database module HypertableStatements # @see https://docs.timescale.com/api/latest/hypertable/hypertable_size/ # # @param [String] hypertable The hypertable to show size of # @return [String] The hypertable_size SQL statement def hypertable_size_sql(hypertable) "SELECT hypertable_size(#{quote(hypertable)});" end # @see https://docs.timescale.com/api/latest/hypertable/hypertable_detailed_size/ # # @param [String] hypertable The hypertable to show detailed size of # @return [String] The hypertable_detailed_size SQL statementh def hypertable_detailed_size_sql(hypertable) "SELECT * FROM hypertable_detailed_size(#{quote(hypertable)});" end # @see https://docs.timescale.com/api/latest/hypertable/hypertable_index_size/ # # @param [String] index_name The name of the index on a hypertable # @return [String] The hypertable_detailed_size SQL statementh def hypertable_index_size_sql(index_name) "SELECT hypertable_index_size(#{quote(index_name)});" end # @see https://docs.timescale.com/api/latest/hypertable/chunks_detailed_size/ # # @param [String] hypertable The name of the hypertable # @return [String] The chunks_detailed_size SQL statementh def chunks_detailed_size_sql(hypertable) "SELECT * FROM chunks_detailed_size(#{quote(hypertable)});" end end end end
Version data entries
3 entries across 3 versions & 1 rubygems