2016-06-09 13:04 GMT+03:00 <[email protected]>:
> How do I execute a createTableIfNotExists correctly
>
> Calling the method is not creating the table. Is there an additional step
> to execute the statement?
>
The answer is in your question :)
>
> DSLContext create = DSL.using(conn, SQLDialect.MYSQL);
>
>
> logger.info("CREATING TABLES");
>
> create.createTableIfNotExists(Keystore.KEYSTORE);
>
> Append ".execute()" Of course, you will need to first append also some
columns.
Some examples can be found here in the manual:
http://www.jooq.org/doc/latest/manual/sql-building/ddl-statements/create-statement
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.