Skip to content

Commit e87089e

Browse files
authored
Merge pull request #6 from psilberk/pom_and_demos1
Pom and demos1
2 parents 92339ab + 32f3ddc commit e87089e

16 files changed

Lines changed: 1412 additions & 102 deletions

File tree

data/semantickernel-data-jdbc/pom.xml

Lines changed: 38 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>com.microsoft.semantic-kernel</groupId>
66
<artifactId>semantickernel-parent</artifactId>
7-
<version>1.4.4-RC2-SNAPSHOT</version>
7+
<version>1.4.4-SNAPSHOT</version>
88
<relativePath>../../pom.xml</relativePath>
99
</parent>
1010

@@ -14,12 +14,13 @@
1414

1515
<dependencies>
1616
<dependency>
17-
<groupId>org.slf4j</groupId>
18-
<artifactId>slf4j-api</artifactId>
17+
<groupId>com.microsoft.semantic-kernel</groupId>
18+
<artifactId>semantickernel-api</artifactId>
1919
</dependency>
20+
2021
<dependency>
21-
<groupId>com.microsoft.semantic-kernel</groupId>
22-
<artifactId>semantickernel-api-data</artifactId>
22+
<groupId>org.slf4j</groupId>
23+
<artifactId>slf4j-api</artifactId>
2324
</dependency>
2425
<dependency>
2526
<groupId>com.fasterxml.jackson.core</groupId>
@@ -31,9 +32,41 @@
3132
<artifactId>jackson-core</artifactId>
3233
<scope>compile</scope>
3334
</dependency>
35+
<dependency>
36+
<groupId>com.github.jknack</groupId>
37+
<artifactId>handlebars</artifactId>
38+
</dependency>
39+
<dependency>
40+
<groupId>com.google.code.findbugs</groupId>
41+
<artifactId>jsr305</artifactId>
42+
</dependency>
43+
<dependency>
44+
<groupId>com.fasterxml.jackson.dataformat</groupId>
45+
<artifactId>jackson-dataformat-yaml</artifactId>
46+
<scope>compile</scope>
47+
</dependency>
3448
<dependency>
3549
<groupId>com.github.spotbugs</groupId>
3650
<artifactId>spotbugs-annotations</artifactId>
3751
</dependency>
52+
<dependency>
53+
<groupId>org.apache.commons</groupId>
54+
<artifactId>commons-text</artifactId>
55+
</dependency>
56+
<dependency>
57+
<groupId>org.postgresql</groupId>
58+
<artifactId>postgresql</artifactId>
59+
<version>42.7.4</version>
60+
</dependency>
61+
<dependency>
62+
<groupId>org.xerial</groupId>
63+
<artifactId>sqlite-jdbc</artifactId>
64+
<version>3.47.0.0</version>
65+
</dependency>
66+
<dependency>
67+
<groupId>com.oracle.database.jdbc</groupId>
68+
<artifactId>ojdbc11</artifactId>
69+
<version>23.7.0.25.01</version>
70+
</dependency>
3871
</dependencies>
3972
</project>

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ public class JDBCVectorStoreRecordCollection<Record>
3434
implements SQLVectorStoreRecordCollection<String, Record> {
3535

3636
private final String collectionName;
37-
private final VectorStoreRecordDefinition recordDefinition;
38-
private final VectorStoreRecordMapper<Record, ResultSet> vectorStoreRecordMapper;
37+
protected final VectorStoreRecordDefinition recordDefinition;
38+
protected final VectorStoreRecordMapper<Record, ResultSet> vectorStoreRecordMapper;
3939
private final JDBCVectorStoreRecordCollectionOptions<Record> options;
40-
private final SQLVectorStoreQueryProvider queryProvider;
40+
protected final SQLVectorStoreQueryProvider queryProvider;
4141

4242
/**
4343
* Creates a new instance of the {@link JDBCVectorStoreRecordCollection}.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package com.microsoft.semantickernel.data.jdbc.oracle;
2+
3+
/**
4+
* Defines oracle database type constants for supported field types.
5+
*/
6+
public class OracleDataTypesMapping {
7+
public static final String STRING_VARCHAR = "NVARCHAR2(%s)";
8+
public static final String STRING_CLOB = "CLOB";
9+
public static final String BOOLEAN = "BOOLEAN";
10+
public static final String BYTE = "NUMBER(3)";
11+
public static final String BYTE_ARRAY = "RAW(2000)";
12+
public static final String SHORT = "NUMBER(5)";
13+
public static final String INTEGER = "NUMBER(10)";
14+
public static final String LONG = "NUMBER(19)";
15+
public static final String FLOAT = "BINARY_FLOAT";
16+
public static final String DOUBLE = "BINARY_DOUBLE";
17+
public static final String DECIMAL = "NUMBER";
18+
public static final String OFFSET_DATE_TIME = "TIMESTAMP(7) WITH TIME ZONE";
19+
public static final String UUID = "RAW(16)";
20+
public static final String JSON = "JSON";
21+
public static final String VECTOR_FLOAT = "VECTOR(%s, FLOAT32)";
22+
}

0 commit comments

Comments
 (0)