Skip to content

Commit 61576c0

Browse files
authored
Implemented JDBC for IoTDB based on tables
1 parent 650bbcc commit 61576c0

File tree

7 files changed

+3813
-3211
lines changed

7 files changed

+3813
-3211
lines changed

iotdb-client/jdbc/pom.xml

Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,9 @@
175175
<configuration>
176176
<archive>
177177
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
178+
<manifestEntries>
179+
<Implementation-Version>${project.version}</Implementation-Version>
180+
</manifestEntries>
178181
</archive>
179182
</configuration>
180183
</plugin>
@@ -209,6 +212,31 @@
209212
</execution>
210213
</executions>
211214
</plugin>
215+
<plugin>
216+
<artifactId>maven-assembly-plugin</artifactId>
217+
<version>${maven.assembly.version}</version>
218+
<configuration>
219+
<descriptorRefs>
220+
<descriptorRef>jar-with-dependencies</descriptorRef>
221+
</descriptorRefs>
222+
<archive>
223+
<manifest>
224+
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
225+
</manifest>
226+
</archive>
227+
</configuration>
228+
<executions>
229+
<execution>
230+
<id>make-assembly</id>
231+
<!-- bind to the packaging phase -->
232+
<goals>
233+
<goal>single</goal>
234+
</goals>
235+
<!-- this is used for inheritance merges -->
236+
<phase>package</phase>
237+
</execution>
238+
</executions>
239+
</plugin>
212240
</plugins>
213241
</build>
214242
<profiles>
@@ -275,32 +303,5 @@
275303
<jdbc.ut.skip>true</jdbc.ut.skip>
276304
</properties>
277305
</profile>
278-
<profile>
279-
<id>get-jar-with-dependencies</id>
280-
<build>
281-
<plugins>
282-
<plugin>
283-
<artifactId>maven-assembly-plugin</artifactId>
284-
<version>${maven.assembly.version}</version>
285-
<configuration>
286-
<descriptorRefs>
287-
<descriptorRef>jar-with-dependencies</descriptorRef>
288-
</descriptorRefs>
289-
</configuration>
290-
<executions>
291-
<execution>
292-
<id>make-assembly</id>
293-
<!-- bind to the packaging phase -->
294-
<goals>
295-
<goal>single</goal>
296-
</goals>
297-
<!-- this is used for inheritance merges -->
298-
<phase>package</phase>
299-
</execution>
300-
</executions>
301-
</plugin>
302-
</plugins>
303-
</build>
304-
</profile>
305306
</profiles>
306307
</project>

iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/Constant.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ public class Constant {
2424
private Constant() {}
2525

2626
public static final String GLOBAL_DB_NAME = "IoTDB";
27+
public static final String TABLE_DIALECT = "table";
28+
public static final String TREE_DIALECT = "tree";
2729

28-
static final String METHOD_NOT_SUPPORTED = "Method not supported";
30+
public static final String METHOD_NOT_SUPPORTED = "Method not supported";
2931
static final String PARAMETER_NOT_NULL = "The parameter cannot be null";
3032
static final String PARAMETER_SUPPORTED =
3133
"Parameter only supports BOOLEAN,INT32,INT64,FLOAT,DOUBLE,TEXT data type";

0 commit comments

Comments
 (0)