From 8170a1c91a80ec1ad6361b5b4b0b1337c3cdc9f8 Mon Sep 17 00:00:00 2001 From: David Beal Date: Tue, 29 Oct 2024 19:55:50 +0100 Subject: [PATCH] fixup --- polars_db_schema/models/db_config.py | 5 ++--- polars_db_schema/views/db_type.xml | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/polars_db_schema/models/db_config.py b/polars_db_schema/models/db_config.py index aae1c92c1..8e721d795 100644 --- a/polars_db_schema/models/db_config.py +++ b/polars_db_schema/models/db_config.py @@ -12,10 +12,9 @@ class DbConfig(models.Model): def get_db_metadata(self): self.ensure_one() - connexion = self._get_connexion() if self.row_count_query: - self._read_sql(connexion, "SELECT 1") - df = self._read_sql(connexion, self.row_count_query) + self._read_sql("SELECT 1") + df = self._read_sql(self.row_count_query) if self.db_type_id.code == "sqlite": # https://docs.pola.rs/user-guide/expressions/user-defined-functions/#processing-individual-values-with-map_elements df = ( diff --git a/polars_db_schema/views/db_type.xml b/polars_db_schema/views/db_type.xml index c5d19523d..71c119ae5 100644 --- a/polars_db_schema/views/db_type.xml +++ b/polars_db_schema/views/db_type.xml @@ -23,7 +23,7 @@ - + db.type