apijson milvus
支持增、删;getClient, closeClient 等方法
The Milvus database plug-in of Tencent APIJSON 6.4.0+ can be relied on remotely through Maven, Gradle, etc.
A Milvus plugin for Tencent APIJSON 6.4.0+
< repositories >
< repository >
< id >jitpack.io</ id >
< url >https://jitpack.io</ url >
</ repository >
</ repositories >
< dependency >
< groupId >com.github.APIJSON</ groupId >
< artifactId >apijson-milvus</ artifactId >
< version >LATEST</ version >
</ dependency >https://github.com/APIJSON/APIJSON-Demo/blob/master/APIJSON-Java-Server/APIJSONBoot-MultiDataSource/pom.xml
allprojects {
repositories {
maven { url ' https://jitpack.io ' }
}
}app ) build.gradle app ) dependencies {
implementation ' com.github.APIJSON:apijson-milvus:latest '
} Rewrite method executed in your project's subclass inheritance of AbstractSQLExecutor
Override execute in your SQLExecutor extends AbstractSQLExecutor
@ Override
public JSONObject execute ( @ NotNull SQLConfig < Long > config , boolean unknownType ) throws Exception {
if ( config . isMilvus ()) {
return MilvusUtil . execute ( config , null , unknownType );
}
return super . execute ( config , unknownType );
} If you have any questions, you can go to Tencent/APIJSON to issue
Tencent/APIJSON#36
https://github.com/APIJSON/apijson-milvus