spring - 使用 gradle 生成 Schema
问题描述
Jdbc getJdbc() {
return new Jdbc().withDriver("com.mysql.cj.jdbc.Driver")
.withUrl("jdbc:mysql://localhost/ztbl")
.withUsername("")
.withPassword("");
}
Database getDatabase() {
return new Database()
.withName("org.jooq.meta.mysql.MySQLDatabase")
.withSchemata(
new SchemaMappingType().withInputSchema("ztbl").withOutputSchema("bpc"),
new SchemaMappingType().withInputSchema("tes_inbound").withOutputSchema("ib"),
new SchemaMappingType().withInputSchema("tesoutbound").withOutputSchema("ob"),
new SchemaMappingType().withInputSchema("tesob_calling").withOutputSchema("obcall"),
new SchemaMappingType().withInputSchema("hosting").withOutputSchema("cms"),
new SchemaMappingType().withInputSchema("hosting_new").withOutputSchema("cmm"),
new SchemaMappingType().withInputSchema("hosting_new").withOutputSchema("cmm")
//new SchemaMappingType().withInputSchema("stats").withOutputSchema("stats")
);
}
嗨,我是使用 gradle 生成 jooq 模式的新用户,以前我使用 maven 生成 jooq 模式,但目前我正在使用 gradle 转换,我不知道如何生成 jooq 模式。我的 genSchema 项目中有此代码。我正在尝试找到如何生成此架构的任何帮助。
解决方案
推荐阅读
- python - ValueError: int() 以 10 为底的无效文字:'-f'
- ruby-on-rails - Rails 应用程序中的数据和业务逻辑历史
- r - windows下为多个用户设置R_USER
- c# - 在转换 TXT 文件(C# 或任何其他语言)时处理空记录
- html - NodeJS foreach JSON 数据表
- google-cloud-storage - 谷歌计算引擎和桶中没有文件
- c - 制作落沙游戏时C raylib中的常量表达式错误
- c++ - 读取文本文件时出现分段错误
- javascript - 石头剪刀布使用 JS 但不是玩家赢了多少次不起作用
- sas - 如何使用 SAS Enterprise Guide 中的 PROC SQL 删除前 4 个和后 3 个字母、数字或标点符号?