Bill

Results 38 comments of Bill

已开始结合 https://github.com/csx-bill/quick-admin

改成. 我也试过,还是编译不成功

我是想 apijson 表 作为一个库 通过apijson 来查其他库表的数据,配置多数据源, ![image](https://github.com/Tencent/APIJSON/assets/31872268/0c216aba-9816-4a31-ad5f-1acf74ec1ee4) 但是在运行后, config.getDatabase() 是 null 值,取不到 数据库配置的 quick-boot ![image](https://github.com/Tencent/APIJSON/assets/31872268/44164234-ce04-4f56-bcd0-30ac41d251f1)

https://github.com/Tencent/APIJSON/issues/148 我看这个评论与回复 都是需要 前端 传 Datasource 来切换数据源,我理解成 access 配置了数据库名, ![image](https://github.com/Tencent/APIJSON/assets/31872268/fb4090c2-e5b8-4790-9fdf-807a386964f7) config 就能获取到数据库名了

getSQLSchema() 确实可以切换数据库查询,但是在 Connection getConnection(SQLConfig config) 还是没有 schema

> 因为没传参 @Schema,并且后端也没有实现和配置 TABLE_SCHEMA_MAP 这个功能后期会添加吗

如果两个库都有 sys_user 这个表名 TABLE_SCHEMA_MAP 会不会有问题?

> > 如果两个库都有 sys_user 这个表名 TABLE_SCHEMA_MAP 会不会有问题? > > 不用真实表名 name,而是用对外显示的表名 alias,这样就可以通过不同的 alias 名称来区分,避免冲突 代码如下; TABLE_SCHEMA_MAP.put(alias ,Schema ); 例如: TABLE_SCHEMA_MAP.put(Column.class.getSimpleName(), 此处应该如何写?);

新增处: ![image](https://github.com/Tencent/APIJSON/assets/31872268/e12f7d08-ab07-4e97-82f5-242655eb9efe) 修改 getSQLSchema() ![image](https://github.com/Tencent/APIJSON/assets/31872268/3c1d1456-22d9-46cd-afcf-23b49529dceb) 修改 : apijson-framework ![image](https://github.com/Tencent/APIJSON/assets/31872268/7e67ab3b-1a73-4b94-827f-fc39971583d1) ![image](https://github.com/Tencent/APIJSON/assets/31872268/ce25d370-b5a5-452e-b126-29c55ad1238e)