From 6c587049c179744fc8386c60406e99ba36846566 Mon Sep 17 00:00:00 2001 From: Elena Felder <41136058+elefeint@users.noreply.github.com> Date: Wed, 27 Mar 2024 06:42:15 -0700 Subject: [PATCH] format for readability --- src/sql_generator.cpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/sql_generator.cpp b/src/sql_generator.cpp index 4062f6f..148b260 100644 --- a/src/sql_generator.cpp +++ b/src/sql_generator.cpp @@ -125,10 +125,16 @@ std::vector describe_table(duckdb::Connection &con, // TBD scale/precision std::vector columns; - auto query = "SELECT column_name, data_type_id, NOT is_nullable, " - "numeric_precision, numeric_scale FROM " - "duckdb_columns() WHERE database_name=? AND " - "schema_name=? AND table_name=?"; + auto query = "SELECT " + "column_name, " + "data_type_id, " + "NOT is_nullable, " + "numeric_precision, " + "numeric_scale " + "FROM duckdb_columns() " + "WHERE database_name=? " + "AND schema_name=? " + "AND table_name=?"; mdlog::info("describe_table: " + std::string(query)); auto statement = con.Prepare(query); duckdb::vector params = {duckdb::Value(table.db_name),