Git Product home page Git Product logo

schemacrawler-database-plugins's Introduction

GitHub Repo stars Quick Build Integration Tests codecov Codacy Badge

The Central Repository Main distribution Docker Pulls Scoop Chocolatey

SchemaCrawler

Note:

About

SchemaCrawler is a free database schema discovery and comprehension tool. SchemaCrawler has a good mix of useful features for data governance. You can search for database schema objects using regular expressions, and output the schema and data in a readable text format. The output serves for database documentation, and is designed to be diff-ed against other database schemas. SchemaCrawler also generates schema diagrams. You can execute scripts in any standard scripting language against your database. You can find potential schema design issues with lint.

SchemaCrawler supports almost any database that has a JDBC driver, but for convenience is bundled with drivers for some commonly used RDBMS systems. SchemaCrawler works with any operating system that supports Java SE 8 or better.

SchemaCrawler is also a Java API that makes working with database metadata as easy as working with plain old Java objects.

Licensing

SchemaCrawler is available under a number of licenses.

Distributions and Downloads

Explore the SchemaCrawler command-line with a live online tutorial.

SchemaCrawler is available in a number of formats, including a download with examples, source code examples, plugin starters, a Maven reporting plugin, Docker containers, operating system specific installers, and jars on The Central Repository. For a complete list, see downloads and distributions.

Support

Please get support on Stack Overflow, following the Guidelines for Support.

schemacrawler-database-plugins's People

Contributors

dependabot[bot] avatar sualeh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

schemacrawler-database-plugins's Issues

SAP IQ connector appears to "support" all jdbc URLs (causing wrong selector to be chosen from DatabaseConnectorRegistry)

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,

Fix SybaseIQDatabaseConnector

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.