Git Product home page Git Product logo

Comments (4)

Blackdread avatar Blackdread commented on August 18, 2024

You are using postgresql but I only support mysql.

I think it is possible to support it but you need to check.
Can you try to create postgresql repositories that gives same data contract as current repositories?
Then you can use @ConditionalOnProperty of Spring to either enable postgresql or mysql and add a property in application.yml
(but in fact it might still not compile due to missing jooq classes... -> instead I could include those generated classes in codebase and set jooq as false to auto-generate)

from sql-to-jdl.

relio avatar relio commented on August 18, 2024

Hi Yoann,
thanks for you reply, I completely miss that Postgres is not supported. So, if I'm not wrong, are you suggesting that if InformationSchemaRepository would be an Interface, it should be enough to rewrite the actual queries taylored on MySQL Information_schema to retrieve from some Postgres metadata system tables:

  • TableRelationInformation and its properties:
    private final String tableName;
    private final String columnName;
    private final String referencedTableName;
    private final String referencedColumnName;

  • ColumnInformation
    private final String name;
    private final String type;
    private final String collation;
    private final boolean isNullable;
    private final boolean isPrimary;
    private final boolean isUnique;
    private final String defaultValue;
    private final String extra;
    private final String comment;

  • TableInformation
    private final String name;
    private final String comment;

and finally the list of all table name to feed the getAllTableName method?

TIA,

R

from sql-to-jdl.

Blackdread avatar Blackdread commented on August 18, 2024

Yes exactly, it would be necessary to have InformationSchemaRepository as an Interface, then use a configuration class that expose beans of that interface, both on Conditional but only one at once (depending on option mysql or postgres).

After there is the issue of compiling the code when jOOQ generated code is missing.
For now you can either simply delete the mysql code in your local pc, do a bridge with postgres and the rest should be alright.

from sql-to-jdl.

Blackdread avatar Blackdread commented on August 18, 2024

Closed as not supported but can be done manually

from sql-to-jdl.

Related Issues (20)

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.