@@ -57,7 +57,7 @@ public DemoSQLConfig(RequestMethod method, String table) {
5757 DEFAULT_DATABASE = DATABASE_MYSQL ; //TODO 默认数据库类型,改成你自己的。TiDB, MariaDB, OceanBase 这类兼容 MySQL 的可当做 MySQL 使用
5858 // DEFAULT_NAMESPACE = "root"; //TODO 默认数据库名/模式,改成你自己的,仅对 SurrealDB: root 等数据库有效
5959 // 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:
6161
6262 // 表名和数据库不一致的,需要配置映射关系。只使用 APIJSONORM 时才需要;
6363 // 这个 Demo 用了 apijson-framework 且调用了 APIJSONApplication.init 则不需要
@@ -249,7 +249,7 @@ public String getDBUri() {
249249 return "http://localhost:19530" ; //TODO 改成你自己的
250250 }
251251 //if (isManticore()) {
252- // return "jdbc:mysql://localhost:3306 ?characterEncoding=utf8&maxAllowedPacket=512000"; //TODO 改成你自己的
252+ // return "jdbc:mysql://localhost:9306 ?characterEncoding=utf8&maxAllowedPacket=512000"; //TODO 改成你自己的
253253 //}
254254 // if (isIoTDB()) {
255255 // return "jdbc:iotdb://localhost:6667"; // ?charset=GB18030 加参数会报错 URI 格式错误 //TODO 改成你自己的
@@ -322,7 +322,7 @@ public String getDBAccount() {
322322 return "root" ;
323323 }
324324 //if (isManticore()) {
325- // return "root";
325+ // return null; // "root";
326326 //}
327327 // if (isIoTDB()) {
328328 // return "root";
@@ -546,6 +546,7 @@ protected int getMaxCombineCount() {
546546 public String getSQLTable () {
547547 String t = super .getSQLTable ();
548548 return isInfluxDB () ? t .toLowerCase () : t ;
549+ //return isInfluxDB() || isManticore() ? t.toLowerCase() : t;
549550 // return isInfluxDB() || isIoTDB() ? t.toLowerCase() : t;
550551 // return isInfluxDB() ? t.toLowerCase() : StringUtil.firstCase(JSONRequest.recoverUnderline(t, false), false);
551552 }
0 commit comments