Skip to content

Commit 458ace8

Browse files
committed
Added Oracle store
1 parent 376d8d2 commit 458ace8

11 files changed

Lines changed: 1407 additions & 2 deletions

File tree

data/semantickernel-data-jdbc/src/main/java/com/microsoft/semantickernel/data/jdbc/JDBCVectorStoreQueryProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ public Map<Class<?>, String> getSupportedVectorTypes() {
220220
@Override
221221
public void prepareVectorStore() {
222222
String createCollectionsTable = formatQuery(
223-
"CREATE TABLE IF NOT EXISTS %s (collectionId VARCHAR(255) PRIMARY KEY);",
223+
"CREATE TABLE IF NOT EXISTS %s (collectionId VARCHAR(255) PRIMARY KEY)",
224224
validateSQLidentifier(collectionsTable));
225225

226226
try (Connection connection = dataSource.getConnection();
Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
<parent>
5+
<groupId>com.microsoft.semantic-kernel</groupId>
6+
<artifactId>semantickernel-parent</artifactId>
7+
<version>1.4.4-RC2-SNAPSHOT</version>
8+
<relativePath>../../pom.xml</relativePath>
9+
</parent>
10+
11+
<artifactId>semantickernel-data-oracle</artifactId>
12+
<name>Semantic Kernel Oracle connector</name>
13+
<description>Provides a Oracle connector for the Semantic Kernel</description>
14+
15+
<properties>
16+
<testcontainers.version>1.20.4</testcontainers.version>
17+
</properties>
18+
19+
<dependencyManagement>
20+
<dependencies>
21+
<dependency>
22+
<groupId>org.testcontainers</groupId>
23+
<artifactId>testcontainers-bom</artifactId>
24+
<version>${testcontainers.version}</version>
25+
<type>pom</type>
26+
<scope>import</scope>
27+
</dependency>
28+
</dependencies>
29+
</dependencyManagement>
30+
31+
<dependencies>
32+
<dependency>
33+
<groupId>com.microsoft.semantic-kernel</groupId>
34+
<artifactId>semantickernel-api-data</artifactId>
35+
</dependency>
36+
<dependency>
37+
<groupId>com.microsoft.semantic-kernel</groupId>
38+
<artifactId>semantickernel-data-jdbc</artifactId>
39+
</dependency>
40+
<dependency>
41+
<groupId>org.slf4j</groupId>
42+
<artifactId>slf4j-api</artifactId>
43+
</dependency>
44+
<dependency>
45+
<groupId>com.fasterxml.jackson.core</groupId>
46+
<artifactId>jackson-databind</artifactId>
47+
<scope>compile</scope>
48+
</dependency>
49+
<dependency>
50+
<groupId>com.fasterxml.jackson.core</groupId>
51+
<artifactId>jackson-core</artifactId>
52+
<scope>compile</scope>
53+
</dependency>
54+
<dependency>
55+
<groupId>com.github.jknack</groupId>
56+
<artifactId>handlebars</artifactId>
57+
</dependency>
58+
<dependency>
59+
<groupId>com.google.code.findbugs</groupId>
60+
<artifactId>jsr305</artifactId>
61+
<scope>provided</scope>
62+
</dependency>
63+
<dependency>
64+
<groupId>com.fasterxml.jackson.dataformat</groupId>
65+
<artifactId>jackson-dataformat-yaml</artifactId>
66+
<scope>compile</scope>
67+
</dependency>
68+
<dependency>
69+
<groupId>com.github.spotbugs</groupId>
70+
<artifactId>spotbugs-annotations</artifactId>
71+
</dependency>
72+
<dependency>
73+
<groupId>org.apache.commons</groupId>
74+
<artifactId>commons-text</artifactId>
75+
</dependency>
76+
<dependency>
77+
<groupId>org.postgresql</groupId>
78+
<artifactId>postgresql</artifactId>
79+
<version>42.7.4</version>
80+
</dependency>
81+
<dependency>
82+
<groupId>org.xerial</groupId>
83+
<artifactId>sqlite-jdbc</artifactId>
84+
<version>3.47.0.0</version>
85+
</dependency>
86+
<dependency>
87+
<groupId>com.oracle.database.jdbc</groupId>
88+
<artifactId>ojdbc11</artifactId>
89+
<version>23.7.0.25.01</version>
90+
</dependency>
91+
<dependency>
92+
<groupId>com.oracle.database.jdbc</groupId>
93+
<artifactId>ojdbc-provider-jackson-oson</artifactId>
94+
<version>1.0.4</version>
95+
</dependency>
96+
<dependency>
97+
<groupId>org.junit.jupiter</groupId>
98+
<artifactId>junit-jupiter</artifactId>
99+
<scope>test</scope>
100+
</dependency>
101+
<dependency>
102+
<groupId>org.junit.jupiter</groupId>
103+
<artifactId>junit-jupiter-api</artifactId>
104+
<scope>test</scope>
105+
</dependency>
106+
<!-- Tests use TestContainers to create an Oracle Database -->
107+
<dependency>
108+
<groupId>org.testcontainers</groupId>
109+
<artifactId>testcontainers</artifactId>
110+
<scope>test</scope>
111+
</dependency>
112+
<dependency>
113+
<groupId>org.testcontainers</groupId>
114+
<artifactId>junit-jupiter</artifactId>
115+
<scope>test</scope>
116+
</dependency>
117+
<dependency>
118+
<groupId>org.testcontainers</groupId>
119+
<artifactId>oracle-free</artifactId>
120+
<scope>test</scope>
121+
</dependency>
122+
</dependencies>
123+
</project>

0 commit comments

Comments
 (0)