module LuckyPgExtras

Included Modules

Defined in:

lucky_pg_extras.cr

Constant Summary

HABITAT_SETTINGS = [{decl: database : Avram::Database.class, example: nil, validation: nil}] of Nil
QUERIES = ["bloat", "blocking", "cache_hit", "calls", "extensions", "table_cache_hit", "index_cache_hit", "index_size", "index_usage", "locks", "all_locks", "long_running_queries", "mandelbrot", "outliers", "records_rank", "seq_scans", "table_indexes_size", "table_size", "total_index_size", "total_table_size", "unused_indexes", "vacuum_stats", "kill_all"]
VERSION = "0.2.0"

Class Method Summary

Instance Method Summary

Class Method Detail

def self.all_locks #

[View source]
def self.bloat #

[View source]
def self.blocking #

[View source]
def self.cache_hit #

[View source]
def self.calls #

[View source]
def self.configure(&) #

[View source]
def self.create_table(description, result) #

[View source]
def self.description_for(query_name) #

[View source]
def self.empty_table(description) #

[View source]
def self.execute_query(query) #

[View source]
def self.extensions #

[View source]
def self.index_cache_hit #

[View source]
def self.index_size #

[View source]
def self.index_usage #

[View source]
def self.kill_all #

[View source]
def self.locks #

[View source]
def self.long_running_queries #

[View source]
def self.mandelbrot #

[View source]
def self.outliers #

[View source]
def self.records_rank #

[View source]
def self.seq_scans #

[View source]
def self.settings #

[View source]
def self.sql_for(query_name) #

[View source]
def self.sql_path_for(query_name) #

[View source]
def self.table_cache_hit #

[View source]
def self.table_indexes_size #

[View source]
def self.table_size #

[View source]
def self.total_index_size #

[View source]
def self.total_table_size #

[View source]
def self.unused_indexes #

[View source]
def self.vacuum_stats #

[View source]

Instance Method Detail

def settings #

[View source]