Module: Timescaledb::Database::HypertableStatements

Included in:
Timescaledb::Database
Defined in:
lib/timescaledb/database/hypertable_statements.rb

Instance Method Summary collapse

Instance Method Details

#chunks_detailed_size_sql(hypertable) ⇒ String

Returns The chunks_detailed_size SQL statementh.

Parameters:

  • hypertable (String)

    The name of the hypertable

Returns:

  • (String)

    The chunks_detailed_size SQL statementh

See Also:



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.

Parameters:

  • hypertable (String)

    The hypertable to show detailed size of

Returns:

  • (String)

    The hypertable_detailed_size SQL statementh

See Also:



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.

Parameters:

  • index_name (String)

    The name of the index on a hypertable

Returns:

  • (String)

    The hypertable_detailed_size SQL statementh

See Also:



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.

Parameters:

  • hypertable (String)

    The hypertable to show size of

Returns:

  • (String)

    The hypertable_size SQL statement

See Also:



8
9
10
# File 'lib/timescaledb/database/hypertable_statements.rb', line 8

def hypertable_size_sql(hypertable)
  "SELECT hypertable_size(#{quote(hypertable)});"
end