1- # apijson-mongodb [ ![ ] ( https://jitpack.io/v/APIJSON/apijson-mongodb .svg )] ( https://jitpack.io/#APIJSON/apijson-mongodb )
2- 腾讯 [ APIJSON] ( https://github.com/Tencent/APIJSON ) 的 MongoDB 数据库插件,可通过 Maven, Gradle 等远程依赖。<br />
3- A MongoDB plugin for Tencent [ APIJSON] ( https://github.com/Tencent/APIJSON )
1+ # apijson-milvus [ ![ ] ( https://jitpack.io/v/APIJSON/apijson-milvus .svg )] ( https://jitpack.io/#APIJSON/apijson-milvus )
2+ 腾讯 [ APIJSON] ( https://github.com/Tencent/APIJSON ) 6.4.0+ 的 Milvus 数据库插件,可通过 Maven, Gradle 等远程依赖。<br />
3+ A Milvus plugin for Tencent [ APIJSON] ( https://github.com/Tencent/APIJSON ) 6.4.0+
44
5- ![ image] ( https://github-production-user-asset-6210df.s3.amazonaws.com/5738175/293696252-36406e20-b157-4121-bca7-280491462481 .png )
5+ ![ image] ( https://github-production-user-asset-6210df.s3.amazonaws.com/5738175/294214558-1a438f32-b33b-4140-b128-3afc0e97877f .png )
66
77## 添加依赖
88## Add Dependency
@@ -23,19 +23,19 @@ A MongoDB plugin for Tencent [APIJSON](https://github.com/Tencent/APIJSON)
2323
2424<br />
2525
26- #### 2. 在 pom.xml 中添加 apijson-mongodb 依赖
27- #### 2. Add the apijson-mongodb dependency to pom.xml
26+ #### 2. 在 pom.xml 中添加 apijson-milvus 依赖
27+ #### 2. Add the apijson-milvus dependency to pom.xml
2828``` xml
2929 <dependency >
3030 <groupId >com.github.APIJSON</groupId >
31- <artifactId >apijson-mongodb </artifactId >
31+ <artifactId >apijson-milvus </artifactId >
3232 <version >LATEST</version >
3333 </dependency >
3434```
3535
3636<br />
3737
38- https://github.com/APIJSON/APIJSON-Demo/blob/master/APIJSON-Java-Server/APIJSONBoot/pom.xml
38+ https://github.com/APIJSON/APIJSON-Demo/blob/master/APIJSON-Java-Server/APIJSONBoot-MultiDataSource /pom.xml
3939
4040<br />
4141<br />
@@ -52,11 +52,11 @@ https://github.com/APIJSON/APIJSON-Demo/blob/master/APIJSON-Java-Server/APIJSONB
5252```
5353<br />
5454
55- #### 2. 在项目某个 module 目录(例如 ` app ` ) build.gradle 中添加 apijson-mongodb 依赖
56- #### 2. Add the apijson-mongodb dependency in one of your modules(such as ` app ` )
55+ #### 2. 在项目某个 module 目录(例如 ` app ` ) build.gradle 中添加 apijson-milvus 依赖
56+ #### 2. Add the apijson-milvus dependency in one of your modules(such as ` app ` )
5757``` gradle
5858 dependencies {
59- implementation 'com.github.APIJSON:apijson-mongodb :latest'
59+ implementation 'com.github.APIJSON:apijson-milvus :latest'
6060 }
6161```
6262
@@ -67,19 +67,22 @@ https://github.com/APIJSON/APIJSON-Demo/blob/master/APIJSON-Java-Server/APIJSONB
6767## 使用
6868## Usage
6969
70- 在你项目继承 AbstractSQLExecutor 的子类重写方法 getValue <br />
71- Override getValue in your SQLExecutor extends AbstractSQLExecutor
70+ 在你项目继承 AbstractSQLExecutor 的子类重写方法 execute <br />
71+ Override execute in your SQLExecutor extends AbstractSQLExecutor
7272``` java
7373 @Override
74- protected Object getValue(SQLConfig<Long > config, ResultSet rs, ResultSetMetaData rsmd, int tablePosition, JSONObject table, int columnIndex, String lable, Map<String , JSONObject > childMap) throws Exception {
75- Object v = super . getValue(config, rs, rsmd, tablePosition, table, columnIndex, lable, childMap);
76- return MongoUtil . getValue(v);
74+ public JSONObject execute(@NotNull SQLConfig<Long > config, boolean unknownType) throws Exception {
75+ if (config. isMilvus()) {
76+ return MilvusUtil . execute(config, unknownType);
77+ }
78+
79+ return super . execute(config, unknownType);
7780 }
7881```
7982
80- #### 见 [ MongoUtil ] ( /apijson/milvus/MongoUtil .java ) 的注释及 [ APIJSONBoot] ( https://github.com/APIJSON/APIJSON-Demo/blob/master/APIJSON-Java-Server/APIJSONBoot ) 的 [ DemoSQLExecutor] ( https://github.com/APIJSON/APIJSON-Demo/blob/master/APIJSON-Java-Server/APIJSONBoot/src/main/java/apijson/demo/DemoSQLExecutor.java ) <br />
83+ #### 见 [ MilvusUtil ] ( /apijson/milvus/MilvusUtil .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 />
8184
82- #### See document in [ MongoUtil ] ( /apijson/milvus/MongoUtil .java ) and [ DemoSQLExecutor] ( https://github.com/APIJSON/APIJSON-Demo/blob/master/APIJSON-Java-Server/APIJSONBoot/src/main/java/apijson/demo/DemoSQLExecutor.java ) in [ APIJSONBoot] ( https://github.com/APIJSON/APIJSON-Demo/blob/master/APIJSON-Java-Server/APIJSONBoot )
85+ #### See document in [ MilvusUtil ] ( /apijson/milvus/MilvusUtil .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 )
8386
8487<br />
8588<br />
@@ -92,4 +95,4 @@ https://github.com/Tencent/APIJSON/issues/36
9295
9396#### 点右上角 ⭐Star 支持一下,谢谢 ^_ ^
9497#### Please ⭐Star this project ^_ ^
95- https://github.com/APIJSON/apijson-mongodb
98+ https://github.com/APIJSON/apijson-milvus
0 commit comments