简体   繁体   English

在这种情况下如何使用jOOQ(或其他方式)

[英]how to use jOOQ (or something else) in such condition

jOOQ runs on generated classes (from database schema). jOOQ在生成的类上运行(来自数据库模式)。 In my apps, there are many tables created while excuting . 在我的应用中,执行时创建了许多表格 Then how can I query them using jOOQ? 那我怎么用jOOQ查询它们呢? Or can I use something else to do this? 还是我可以使用其他方法来做到这一点?

We just use jOOQ to generate SQL, not doing any CRUD operation. 我们仅使用jOOQ生成SQL,而不执行任何CRUD操作。

While being the main use case for using jOOQ , you do not have to generate any source code with jOOQ. 作为使用jOOQ的主要用例,您不必使用jOOQ生成任何源代码。 Several users have used jOOQ the way you do, by supplying dynamic table/column names at runtime to Factory methods such as: 通过在运行时向Factory方法提供动态表/列名称,一些用户已经使用了jOOQ,例如:

These methods take care of correctly escaping your schema, table, field, alias names, etc, in order to guarantee SQL syntax correctness and SQL injection protection. 这些方法负责正确地转义您的架构,表,字段,别名等,以保证SQL语法的正确性和SQL注入保护。

Some related discussions on the jOOQ User Group are here: 关于jOOQ用户组的一些相关讨论在这里:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM