Skip to content

Commit 90f5060

Browse files
committed
文档:新增 SQLConfig 子类重写 getSchema 和 getSQLSchema 的说明
1 parent 1140bcf commit 90f5060

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,21 @@ Override execute in your SQLExecutor extends AbstractSQLExecutor
8282
}
8383
```
8484

85+
<br/>
86+
在你项目继承 AbstractSQLConfig 的子类重写方法 execute <br/>
87+
Override execute in your SQLConfig extends AbstractSQLConfig
88+
```java
89+
@Override
90+
public String getSchema() {
91+
return InfluxDBUtil.getSchema(super.getSchema(), DEFAULT_SCHEMA, isInfluxDB());
92+
}
93+
94+
@Override
95+
public String getSQLSchema() {
96+
return InfluxDBUtil.getSQLSchema(super.getSQLSchema(), isInfluxDB());
97+
}
98+
```
99+
85100
#### [InfluxDBUtil](/src/main/java/apijson/influxdb/InfluxDBUtil.java) 的注释及 [APIJSONBoot-MultiDataSource](https://github.com/APIJSON/APIJSON-Demo/blob/master/APIJSON-Java-Server/APIJSONBoot-MultiDataSource)[DemoSQLExecutor](https://github.com/APIJSON/APIJSON-Demo/blob/master/APIJSON-Java-Server/APIJSONBoot-MultiDataSource/src/main/java/apijson/demo/DemoSQLExecutor.java) <br />
86101

87102
#### See document in [InfluxDBUtil](/src/main/java/apijson/influxdb/InfluxDBUtil.java) and [DemoSQLExecutor](https://github.com/APIJSON/APIJSON-Demo/blob/master/APIJSON-Java-Server/APIJSONBoot-MultiDataSource/src/main/java/apijson/demo/DemoSQLExecutor.java) in [APIJSONBoot-MultiDataSource](https://github.com/APIJSON/APIJSON-Demo/blob/master/APIJSON-Java-Server/APIJSONBoot-MultiDataSource)

0 commit comments

Comments
 (0)