-
Hello @sualeh , I would like to use SchemaCrawler for the output of database schemas. My problem is that I want to document for each column of a table whether the column contains personal data in the sense of the GDPR. I use MariaDB version 10.4 and have created a new table called "gdpr_column_information" within the database called "testing".
In addition to this table, there are a number of other tables within the "testing" database. The columns of these tables are documented in "gdpr_column_information". According to this article https://www.schemacrawler.com/data-dictionary-extensions.html, I thought I could simply write additional attributes for a column in the output. I created a schemacrawler.properties file with the following content.
With the following command I wanted to create an output in JSON format that contains the attribute "is_sensitive".
Unfortunately, the attribute "is_sensitive" is not included in the JSON. What am I doing wrong? Best regards |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
@escalate I will have to look at your logs to see what is going on. Please could you provide me with your logs, using these instructions? |
Beta Was this translation helpful? Give feedback.
-
@escalate I was able to reproduce and get it to work. The MySQL/ MariaDB JDBC driver does not report the table catalog and schema the same way as
and your SchemaCrawler command will look something like this: schemacrawler \
--log-level=OFF \
--config-file=schemacrawler.properties \
--server=mysql \
--host=mariadb \
--database=testing \
--user=testing \
--password=REDACTED \
--command=serialize \
--info-level=maximum |
Beta Was this translation helpful? Give feedback.
-
Thank you @sualeh for your help. It now also works with the JSON output. |
Beta Was this translation helpful? Give feedback.
-
Excellent. Thanks. |
Beta Was this translation helpful? Give feedback.
@escalate I was able to reproduce and get it to work. The MySQL/ MariaDB JDBC driver does not report the table catalog and schema the same way as
INFORMATION_SCHEMA.COLUMNS
, so you will need to modify your join like this:and your SchemaCrawler command will look something like this: