Module: Timescaledb::Database::HypertableStatements
- Included in:
- Timescaledb::Database
- Defined in:
- lib/timescaledb/database/hypertable_statements.rb
Instance Method Summary collapse
-
#chunks_detailed_size_sql(hypertable) ⇒ String
The chunks_detailed_size SQL statementh.
-
#hypertable_detailed_size_sql(hypertable) ⇒ String
The hypertable_detailed_size SQL statementh.
-
#hypertable_index_size_sql(index_name) ⇒ String
The hypertable_detailed_size SQL statementh.
-
#hypertable_size_sql(hypertable) ⇒ String
The hypertable_size SQL statement.
Instance Method Details
#chunks_detailed_size_sql(hypertable) ⇒ String
Returns The chunks_detailed_size SQL statementh.
32 33 34 |
# File 'lib/timescaledb/database/hypertable_statements.rb', line 32 def chunks_detailed_size_sql(hypertable) "SELECT * FROM chunks_detailed_size(#{quote(hypertable)});" end |
#hypertable_detailed_size_sql(hypertable) ⇒ String
Returns The hypertable_detailed_size SQL statementh.
16 17 18 |
# File 'lib/timescaledb/database/hypertable_statements.rb', line 16 def hypertable_detailed_size_sql(hypertable) "SELECT * FROM hypertable_detailed_size(#{quote(hypertable)});" end |
#hypertable_index_size_sql(index_name) ⇒ String
Returns The hypertable_detailed_size SQL statementh.
24 25 26 |
# File 'lib/timescaledb/database/hypertable_statements.rb', line 24 def hypertable_index_size_sql(index_name) "SELECT hypertable_index_size(#{quote(index_name)});" end |
#hypertable_size_sql(hypertable) ⇒ String
Returns The hypertable_size SQL statement.
8 9 10 |
# File 'lib/timescaledb/database/hypertable_statements.rb', line 8 def hypertable_size_sql(hypertable) "SELECT hypertable_size(#{quote(hypertable)});" end |