exclude-tables #1355
Replies: 11 comments
-
@adrianboangiu I do not understand exactly what you did. Please include your command-line as well as your SchemaCrawler config file for more clarity. It will be helpful to include the log as well. Take a look at Guidelines for Support for information on how to capture logs. |
Beta Was this translation helpful? Give feedback.
-
I was not sure that the exclude-tables option does not exist (I did not find it in the help but I sais to myself, who knows). I tried the following:
and in the output I had all the TEMP_... tables:
Therefore, I am sure now that the option does not exist. So I wonder if an option exclude-tables can be implemented? And additionally I think that an error should be provided when wrong or unexisting options are used. |
Beta Was this translation helpful? Give feedback.
-
The definition of the excluded tables in the above post is |
Beta Was this translation helpful? Give feedback.
-
@adrianboangiu For advanced configuration, you will need to use a SchemaCrawler config file. You can set |
Beta Was this translation helpful? Give feedback.
-
I will look into reporting on unknown options that are provided to commands. |
Beta Was this translation helpful? Give feedback.
-
I have modified the file schemacrawler.config.properties to uncomment the following line: I have used the following limit and command:
Unfortunatelly, the result still contains the "temporary" tables I want to be excuded: COSWIN.TEMP_ATTRIBUTE_VALUES [table] Can you please tell me what am I doing wrong? |
Beta Was this translation helpful? Give feedback.
-
Try using the |
Beta Was this translation helpful? Give feedback.
-
Hello, I have modified the config file to exlude some tables and get the tables from some schemas:
I was obliged to use the following limit since I couldn't find a way to take only tables via the config file
and I use the config file in the following way:
But the temporary tables I want to exclude are still in the output file. Please advise how to exclude some tables while doing a report with only tables. Thank you |
Beta Was this translation helpful? Give feedback.
-
@adrianboangiu You seem to be mixing up many commands here. Please could you try this:
|
Beta Was this translation helpful? Give feedback.
-
The solution with the config file worked. Thank you. However, I think it would be a good idea to have the option exclude-tables available in the shell (command line).
To realize the 1st point I need config file (for table exclusion) and limit for table type since it is not possible to limit to table type in config file and it is not possible to exclude some tables in command line option. It would have been easier if the options from config were also available somehow in the shell. What do you think? |
Beta Was this translation helpful? Give feedback.
-
@adrianboangiu The SchemaCrawler command-line options cover the majority of the common use cases, and the config file is for detailed tweaking. Since the table types option is not in the configuration file, I can add it in, but you can as well use it with the limit command for now. For your use cases, you will probably need to create 3 config files. The exclusion regular expression is just a convenience. You can do what you need to do with the include pattern. Regular expressions are very powerful and can "look-ahead" for "_TEMP" in your case. Please ask ChatGPT to help with a prompt like "How do I exclude strings that contain "_TEMP" in them using a regular expression?". The "execute" command runs a SchemaCrawler command, and depending on the command, other options become available. Commands that show results support the In other words, you should be able to do everything you need to do without resorting to config files. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I need to exclude some tables from the output. I tried exclude-tables (a little bit like exclude-columns). I got no error but my excluded tables were present into the output. Would it be possible to implement such a feature?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions