From 6661628a1c3ff519ba17d474acd0ea295c6d99ec Mon Sep 17 00:00:00 2001 From: Santi Adavani Date: Fri, 10 Feb 2023 23:50:35 +0000 Subject: [PATCH 1/2] snapshots join with available tables --- pgml-dashboard/Cargo.lock | 2 +- pgml-dashboard/src/models.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pgml-dashboard/Cargo.lock b/pgml-dashboard/Cargo.lock index 4d9318ea3..0039ab137 100644 --- a/pgml-dashboard/Cargo.lock +++ b/pgml-dashboard/Cargo.lock @@ -1529,7 +1529,7 @@ dependencies = [ [[package]] name = "pgml-dashboard" -version = "0.1.1" +version = "2.2.0" dependencies = [ "anyhow", "bigdecimal", diff --git a/pgml-dashboard/src/models.rs b/pgml-dashboard/src/models.rs index 45c78f9b4..1c9fbc352 100644 --- a/pgml-dashboard/src/models.rs +++ b/pgml-dashboard/src/models.rs @@ -549,7 +549,7 @@ impl Snapshot { analysis, created_at, updated_at - FROM pgml.snapshots + FROM pgml.snapshots JOIN pg_class ON oid::regclass::text = relation_name " ) .fetch_all(pool) @@ -568,7 +568,7 @@ impl Snapshot { analysis, created_at, updated_at - FROM pgml.snapshots + FROM pgml.snapshots JOIN pg_class ON oid::regclass::text = relation_name WHERE id = $1", id, ) From 49930e10ca71c78fb2d88e0f33697d0be2a275f3 Mon Sep 17 00:00:00 2001 From: Santi Adavani Date: Tue, 21 Feb 2023 23:23:10 +0000 Subject: [PATCH 2/2] dashboard snapshot fix --- pgml-dashboard/src/models.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pgml-dashboard/src/models.rs b/pgml-dashboard/src/models.rs index 1c9fbc352..196acb871 100644 --- a/pgml-dashboard/src/models.rs +++ b/pgml-dashboard/src/models.rs @@ -549,8 +549,7 @@ impl Snapshot { analysis, created_at, updated_at - FROM pgml.snapshots JOIN pg_class ON oid::regclass::text = relation_name - " + FROM pgml.snapshots JOIN pg_class ON oid::regclass::text = relation_name" ) .fetch_all(pool) .await?) pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy