Open gramian opened 1 month ago
Using the debug setting I got this query was send from DbSchema:
SELECT nspname AS TABLE_SCHEM, NULL AS TABLE_CATALOG FROM pg_catalog.pg_namespace WHERE nspname <> 'pg_toast' AND (nspname !~ '^pg_temp_' OR nspname = (pg_catalog.current_schemas(true))[1]) AND (nspname !~ '^pg_toast_temp_' OR nspname = replace((pg_catalog.current_schemas(true))[1], 'pg_temp_', 'pg_toast_temp_')) ORDER BY TABLE_SCHEM
We reverse engineer the schema by calling methods from the JDBC driver. It looks like ArcadeDB has different system tables as Postgres. Do you know which queries we can use to list the schemes, tables, columns, foreign keys? Or generate the table DDL CREATE TABLE statement? We would need this to make DbSchema work with ArcadeDB. A sample Groovy script to use for tests can be found in Tools / Automation Scripts / Schema Sync / List Databases using JDBC Driver.
Hi, there is:
SELECT FROM schema:types
SELECT FROM schema:indexes
SELECT FROM schema:database
The corresponding DDL command would be CREATE DOCUMENT TYPE
.
ArcadeDB Version:
ArcadeDB Server v24.5.1-SNAPSHOT (build 7872d1acb3616c2866613dabcb7d899322bb3348/1715204385992/main)
OS and JDK Version:
Running on Mac OS X 12.7.4 - OpenJDK 64-Bit Server VM 17.0.11 (Homebrew)
I am trying to connect via DbSchema (@wise-coders) to ArcadeDB using the Postgres driver.
Expected behavior
Successful connection
Actual behavior
ArcadeDB:
DbSchema:
Steps to reproduce
sslMode=disable
andpreferQueryMode=simple
.I think maybe DbSchema sends somekind of initial command to test if the connection works and this happens to be empty and thus causing the error (just a guess).