we use JOOQ/Liquibase for database access abstraction and they work quite fine. The only minor annoyance that both use own table metadata info and type system and we continuously have to convert/maintain consistency between the two representation (and a third one, which is our legacy stuff :) It would be really grate if the two system can be merged.
"Merging" sounds easy, but it isn't :-) Consider merging licenses, copyrights, ownership, responsibility, mission statements, etc. etc.
So in a more realistic scenario, the two tools could improve cooperation. Could you be specific about your use-cases? Where do you run into trouble, when meta data info is duplicated? How could this be improved (on the jOOQ side, on the Liquibase side?)
"Merging" sounds easy, but it isn't :-) Consider merging licenses, copyrights, ownership, responsibility, mission statements, etc. etc.Sorry, for the confusion: by merging I just mean the merging of the metadata/connection handling (or come up with some common interface).
So in a more realistic scenario, the two tools could improve cooperation. Could you be specific about your use-cases? Where do you run into trouble, when meta data info is duplicated? How could this be improved (on the jOOQ side, on the Liquibase side?)We use both tool to create an abstraction over the database specific syntax. We cannot generate classes with JOOQ (as schema is on the fly constructed) and we do not use change-set management feature of the liquibase.One of the usage scenario: we import csv like files into a database:-- process the file: metadata like column names, types (and length), table names are inferred-- the table is created with the help of liquibase
--- we convert column names to liquibase.database.structure.Column and use the its TypeConverter class to get the right type mapping--- then we create the table-- the content is loaded by jooq--- we convert column names to org.jooq.Field and lookup the type representation in org.jooq.impl.SQLDataType--- then we load the data
So in a more realistic scenario, the two tools could improve cooperation. Could you be specific about your use-cases? Where do you run into trouble, when meta data info is duplicated? How could this be improved (on the jOOQ side, on the Liquibase side?)We use both tool to create an abstraction over the database specific syntax. We cannot generate classes with JOOQ (as schema is on the fly constructed) and we do not use change-set management feature of the liquibase.One of the usage scenario: we import csv like files into a database:-- process the file: metadata like column names, types (and length), table names are inferred-- the table is created with the help of liquibase
--- we convert column names to liquibase.database.structure.Column and use the its TypeConverter class to get the right type mapping--- then we create the table-- the content is loaded by jooq--- we convert column names to org.jooq.Field and lookup the type representation in org.jooq.impl.SQLDataType--- then we load the dataSo from what I understand, there is a bit of potential here, in writing adapters for these types:LB Database <-> jOOQ Executor (previously, jOOQ Factory)LB ForeignKey <-> jOOQ ForeignKeyLB PrimaryKey / UniqueConstraint <-> jOOQ UniqueKeyLB Schema <-> jOOQ SchemaLB Sequence <-> jOOQ SequenceLB Table / View <-> jOOQ TableLB Column <-> jOOQ FieldLB DataType <-> jOOQ DataTypeLB TypeConverter <-> jOOQ ConverterIn a first step, I'd suggest that a Liquibase adapter for jOOQ would be written. This would cover your use-case, as the master meta-information is managed by Liquibase. This could then be further evolved into a "both-ways" adapter solution, if possible. I have filed a feature request for this:I'll evaluate feasibility and usefulness of such an addition for jOOQ 3.1. I'll keep you posted. Any further implementation hints, partial contributions are very welcome, of course
Hi,
--
You received this message because you are subscribed to a topic in the Google Groups "jOOQ User Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jooq-user/CQv7i4jDyCc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jooq-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "jOOQ User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jooq-user+...@googlegroups.com.
Does this help?I shall write some blog article to give more details, I'll try to do it this week.
--
You received this message because you are subscribed to the Google Groups "jOOQ User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jooq-user+...@googlegroups.com.