@@ -57,7 +57,7 @@ public DemoSQLConfig(RequestMethod method, String table) {
57
57
DEFAULT_DATABASE = DATABASE_MYSQL ; //TODO 默认数据库类型,改成你自己的。TiDB, MariaDB, OceanBase 这类兼容 MySQL 的可当做 MySQL 使用
58
58
// DEFAULT_NAMESPACE = "root"; //TODO 默认数据库名/模式,改成你自己的,仅对 SurrealDB: root 等数据库有效
59
59
// DEFAULT_CATALOG = "postgres"; //TODO 默认数据库名/模式,改成你自己的,仅对 PostgreSQL: posgres 等数据库有效
60
- DEFAULT_SCHEMA = "sys" ; // "apijson"; //TODO 默认数据库名/模式,改成你自己的,默认情况是 MySQL: sys, PostgreSQL: sys, SQL Server: dbo, Oracle:
60
+ DEFAULT_SCHEMA = "sys" ; // "apijson"; //TODO 默认数据库名/模式,改成你自己的,默认情况是 MySQL: sys, PostgreSQL: sys, SQL Server: dbo, Manticore: Manticore, Oracle:
61
61
62
62
// 表名和数据库不一致的,需要配置映射关系。只使用 APIJSONORM 时才需要;
63
63
// 这个 Demo 用了 apijson-framework 且调用了 APIJSONApplication.init 则不需要
@@ -249,7 +249,7 @@ public String getDBUri() {
249
249
return "http://localhost:19530" ; //TODO 改成你自己的
250
250
}
251
251
//if (isManticore()) {
252
- // return "jdbc:mysql://localhost:3306 ?characterEncoding=utf8&maxAllowedPacket=512000"; //TODO 改成你自己的
252
+ // return "jdbc:mysql://localhost:9306 ?characterEncoding=utf8&maxAllowedPacket=512000"; //TODO 改成你自己的
253
253
//}
254
254
// if (isIoTDB()) {
255
255
// return "jdbc:iotdb://localhost:6667"; // ?charset=GB18030 加参数会报错 URI 格式错误 //TODO 改成你自己的
@@ -322,7 +322,7 @@ public String getDBAccount() {
322
322
return "root" ;
323
323
}
324
324
//if (isManticore()) {
325
- // return "root";
325
+ // return null; // "root";
326
326
//}
327
327
// if (isIoTDB()) {
328
328
// return "root";
@@ -546,6 +546,7 @@ protected int getMaxCombineCount() {
546
546
public String getSQLTable () {
547
547
String t = super .getSQLTable ();
548
548
return isInfluxDB () ? t .toLowerCase () : t ;
549
+ //return isInfluxDB() || isManticore() ? t.toLowerCase() : t;
549
550
// return isInfluxDB() || isIoTDB() ? t.toLowerCase() : t;
550
551
// return isInfluxDB() ? t.toLowerCase() : StringUtil.firstCase(JSONRequest.recoverUnderline(t, false), false);
551
552
}
0 commit comments