Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

api.explore_view

Description

explore_view web view

Table Definition
CREATE VIEW explore_view AS (
 WITH raw_metrics AS (
         SELECT m."time",
            m.metrics
           FROM api.metrics m
          ORDER BY m."time" DESC
         LIMIT 1
        )
 SELECT raw_metrics."time",
    jsonb_each_text.key,
    jsonb_each_text.value
   FROM raw_metrics,
    LATERAL jsonb_each_text(raw_metrics.metrics) jsonb_each_text(key, value)
  ORDER BY jsonb_each_text.key
)

Columns

NameTypeDefaultNullable
keytexttrue
timetimestamp with time zonetrue
valuetexttrue

Referenced Tables

NameColumnsCommentType
api.metrics11Stores metrics from vesselBASE TABLE

Relations

erDiagram


"api.explore_view" {
  text key ""
  timestamp_with_time_zone time ""
  text value ""
}

Generated by tbls