schemacrawler

Schemacrawler : Getting Check constraint values from Table columns using Java APIs

孤街浪徒 提交于 2021-01-29 17:23:52
问题 I'm struggling for the past few days, to get the check constraints and their values, from tables in MySQL database using latest 16.3.2 version of schemacrawler. I have been able to get the table, columns, primary keys etc, using the same, but getting the check constraints is becoming a challenge. I've gone through the website from Sualeh, but not getting the exact steps to get this information. If somebody can share the code snippets, it would be helpful. Following is POM entry <dependency>

Using Java schemacrawler, why is it scanning every table in my database?

て烟熏妆下的殇ゞ 提交于 2020-01-15 15:23:19
问题 Using Java schemacrawler, why is it scanning every table in my database? Shouldn't it just be scanning the database I specified on the command line: -database=openfire ??? :: schemacrawler batch launcher @echo off C:\JDK\bin\java.exe -classpath jtds-1.2.4.jar;schemacrawler-8.8.jar; \ schemacrawler-sqlserver-8.8.jar schemacrawler.tools.sqlserver.Main \ -user=sa -password=password -database=openfire -port=1433 -host=localhost \ -table_types=TABLE -command=schema -schemas=.*\.dbo.* -infolevel

Using Java schemacrawler, why is it scanning every table in my database?

廉价感情. 提交于 2020-01-15 15:22:53
问题 Using Java schemacrawler, why is it scanning every table in my database? Shouldn't it just be scanning the database I specified on the command line: -database=openfire ??? :: schemacrawler batch launcher @echo off C:\JDK\bin\java.exe -classpath jtds-1.2.4.jar;schemacrawler-8.8.jar; \ schemacrawler-sqlserver-8.8.jar schemacrawler.tools.sqlserver.Main \ -user=sa -password=password -database=openfire -port=1433 -host=localhost \ -table_types=TABLE -command=schema -schemas=.*\.dbo.* -infolevel

Can't retrieve comments for indexes when using SchemaCrawler and MySQL5.7

心已入冬 提交于 2020-01-07 05:53:05
问题 I can retrieve comments for tables and columns by using SchemaCrawler and MySQL5.7, but it failed for the indexes' comments. This is an example: 1) Table definition create table testtable( id bigint unsigned auto_increment, city_id varchar(256), person_id varchar(256), primary key(id) comment 'This is comment for the primary key', key idx1 (city_id, person_id) comment 'This is the comment for test index' ) comment='This is the comment for test table'; 2) Java code // jdbc:mysql://localhost

Which JAR files are required for SchemaCrawler?

半世苍凉 提交于 2019-12-25 11:58:50
问题 I'm using Eclipse, SQLite database and Hibernate. I want to use SchemaCrawler in my project, already have sqlite-jdbc library. My aim is to compare using SchemaCrawler structure of two databases. But I can't even connect to my first database. I am using this code: public class SchemaConroller { public SchemaConroller() { SchemaCrawlerOptions options = new SchemaCrawlerOptions(); options.setSchemaInfoLevel(SchemaInfoLevelBuilder.standard()); try { Connection conn = getConnection(); Catalog

Trying to connect to sqlite db using schemacrawler using OSX - why is it asking for a user?

丶灬走出姿态 提交于 2019-12-12 11:09:28
问题 See bottom for conclusion: I'm trying to use schemacrawler to diagram a sqlite database. My setup: OSX 10.8 SchemaCrawler 10.5 downloaded from Here Java version 1.7.0_45 downloaded from Oracle sqlite version: 3.7.12 2012-04-03 19:43:07 86b8481be7e76cccc92d14ce762d21bfb69504af I'm in the directory where I installed schemacrawler, and using this command line: stebro$ java -classpath lib/*:. schemacrawler.tools.sqlite.Main /Library/Application\ Support/MyApp/Data/MyApp.db -command="select count(

How to compare two database structures?

南楼画角 提交于 2019-12-11 15:17:02
问题 I'm using SQLite/Hibernate . Idea is to check each time app starts whether database structure is up to date. I have my existing database in "DB" folder and each time app start I'm creating up to date database in "DB/structure" folder. I want to compare them and if my existing database is old, copy data to up to date database. Get rid of old database and move fresh one in it's place. So far I've tried SchemaCrawler , but I was getting errors with it and couldn't figure it out. UPDATE: I

schemacrawler returning tables from all available databases

心已入冬 提交于 2019-12-08 11:21:32
问题 I am using schemacrawler for getting table list from mysql database. The problem is, the result includes table from all the available databases. It is getting tables from outside the given database name(DataSource). <bean id="schemaCrawlerOptions" class="schemacrawler.schemacrawler.SchemaCrawlerOptions"> <property name="sequenceInclusionRule"> <bean class="schemacrawler.schemacrawler.IncludeAll" /> </property> <property name="tableTypes"> <set> <value>TABLE</value> <!-- <value>VIEW</value> --

Get stored procedures using SchemaCrawler

蹲街弑〆低调 提交于 2019-12-02 18:01:24
问题 When I try to retrieve stored procedures from an SQL Server database using the SchemaCrawler API, I get this error: 12:28:07.427 [main] INFO schemacrawler.crawl.SchemaCrawler - Retrieving routines 12:28:07.767 [main] WARN schemacrawler.crawl.RoutineRetriever - JDBC driver does not support retrieving functions java.lang.AbstractMethodError: null at net.sourceforge.jtds.jdbc.JtdsDatabaseMetaData.getFunctions(JtdsDatabaseMetaData.java:3570) ~[jtds-1.3.1.jar:1.3.1] at schemacrawler.crawl

Get stored procedures using SchemaCrawler

孤街醉人 提交于 2019-12-02 09:42:46
When I try to retrieve stored procedures from an SQL Server database using the SchemaCrawler API, I get this error: 12:28:07.427 [main] INFO schemacrawler.crawl.SchemaCrawler - Retrieving routines 12:28:07.767 [main] WARN schemacrawler.crawl.RoutineRetriever - JDBC driver does not support retrieving functions java.lang.AbstractMethodError: null at net.sourceforge.jtds.jdbc.JtdsDatabaseMetaData.getFunctions(JtdsDatabaseMetaData.java:3570) ~[jtds-1.3.1.jar:1.3.1] at schemacrawler.crawl.RoutineRetriever.retrieveFunctions(RoutineRetriever.java:175) ~[schemacrawler-14.02.02.jar:na] at schemacrawler