Open kewilson opened 1 year ago
I switched to using a postgres server instead of H2 and the table generation does occur but it doesn't respect the generateSingleFile=false
directive and throws and error (below). Going to play around with this a bit to see if I can't get the classes I need but looks like this plugin could use some attention.
2023-06-02T10:53:58.313-0500 [DEBUG] [schemacrawler.crawl.DatabaseInfoRetriever] Could not execute method <public abstract java.sql.RowIdLifetime java.sql.DatabaseMetaData.getRowIdLifetime() throws java.sql.SQLException>
java.sql.SQLFeatureNotSupportedException: Method org.postgresql.jdbc.PgDatabaseMetaData.getRowIdLifetime() is not yet implemented.
at org.postgresql.Driver.notImplemented(Driver.java:699)
looks like this plugin could use some attention.
Just want to +1 this. The generation is pretty broken when using the time libraries as well.
Not sure what I have wrong here but would appreciate some guidance.
I push table definitions to a local H2 db using Liquibase via build.gradle.kts, the tables are verified as present in the db using DataGrip plugin in Intellij. I then issue the generateExposedCode task which runs but generates only a single empty GeneratedTables.kt class file.
Below are the relevant bits of config:
build.gradle.kts:
exposed.properties file:
Below is a snippet of the log generated where you'll see it finds the schemas but there isn't anything shown for table count, etc. other than it saying it processed zero tables.