schemacrawler / schemacrawler-database-plugins Goto Github PK
View Code? Open in Web Editor NEWSchemaCrawler plugins for additional databases
Home Page: http://www.schemacrawler.com/
License: Other
SchemaCrawler plugins for additional databases
Home Page: http://www.schemacrawler.com/
License: Other
See schemacrawler/SchemaCrawler#323 for background.
Modify the Sybase DatabaseServerType
to take a third constructor parameter for the driver class name.
Hi Sualeh, long time! Hope all is well.
I finally upgraded my Obevo project to Java 8, and so I'm upgrading my dependency to the latest SchemaCrawler version. Thus, the SchemaCrawler-Java7-Backport and SchemaCrawler-Sybase projects no longer need maintenance, and I see you've already archived them.
That said, I'd like to have the SchemaCrawler-Sybase module brought into the main SchemaCrawler project. Hopefully won't be too difficult to do from your side; I'd send a PR, but I saw your note on PRs
A note on the existing files in https://github.com/schemacrawler/SchemaCrawler-Sybase - the SybaseIQDatabaseConnector.java file had a bug; the line for databaseSpecificOverrideOptionsBuilder.doesNotSupportCatalogs() does not belong in this file; it should only be in the Odbc connector
I'd expect the SybaseIQDatabaseConnector class to look something like below
public final class SybaseIQDatabaseConnector extends DatabaseConnector {
private static final long serialVersionUID = 1L;
public SybaseIQDatabaseConnector() throws IOException {
super(new DatabaseServerType("sybaseiq", "SAP Sybase IQ"),
new ClasspathInputResource("/schemacrawler-sybaseiq.config.properties"),
(informationSchemaViewsBuilder, connection) -> informationSchemaViewsBuilder.fromResourceFolder("/sybaseiqodbc.information_schema")
);
}
@Override
protected Predicate<String> supportsUrlPredicate() {
// always return false here as this conflicts with SAP Sybase ASE
return url -> false;
}
}
and the ODBC driver would have this extra method:
@Override
public SchemaRetrievalOptionsBuilder getSchemaRetrievalOptionsBuilder(Connection connection) {
return super.getSchemaRetrievalOptionsBuilder(connection)
.withDoesNotSupportCatalogs(); // Unlike the regular JDBC driver, catalogs are not supported
}
Please let me know if you need more information
It looks like the the SAPIQDatabaseConnector is "supporting" non-Sybase URLs. Is this intentional / required?
Connection connection = .... //with JDBC URL "jdbc:h2:tcp://127.0.0.1:50491/mem:"
DatabaseConnector dbConnector = DatabaseConnectorRegistry.getDatabaseConnectorRegistry().findDatabaseConnector(connection);
assert(!dbConnector.databaseSystemIdentifier.contains('sapiq'))
Should it be changed to
url -> url.startsWith("jdbc:sybase:Tds:") || url.startsWith("jdbc:sqlanywhere:")
thanks,
Create database plugins for Teeid and Calcite in schemacrawler/SchemaCrawler-Database-Plugins. See schemacrawler/SchemaCrawler#645 @GavinRay97
No response
No response
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.