Skip to content

Commit bd544fe

Browse files
quaffericbottard
authored andcommitted
PgVectorSchemaValidator should be package-private
Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
1 parent e4926e5 commit bd544fe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

vector-stores/spring-ai-pgvector-store/src/main/java/org/springframework/ai/vectorstore/pgvector/PgVectorSchemaValidator.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@
3333
* @author Christian Tzolov
3434
* @since 1.0.0
3535
*/
36-
public class PgVectorSchemaValidator {
36+
class PgVectorSchemaValidator {
3737

3838
private static final Logger logger = LoggerFactory.getLogger(PgVectorSchemaValidator.class);
3939

4040
private final JdbcTemplate jdbcTemplate;
4141

42-
public PgVectorSchemaValidator(JdbcTemplate jdbcTemplate) {
42+
PgVectorSchemaValidator(JdbcTemplate jdbcTemplate) {
4343
this.jdbcTemplate = jdbcTemplate;
4444
}
4545

@@ -64,7 +64,7 @@ static boolean isValidNameForDatabaseObject(String name) {
6464

6565
}
6666

67-
public boolean isTableExists(String schemaName, String tableName) {
67+
boolean isTableExists(String schemaName, String tableName) {
6868
String sql = "SELECT 1 FROM information_schema.tables WHERE table_schema = ? AND table_name = ?";
6969
try {
7070
// Query for a single integer value, if it exists, table exists

0 commit comments

Comments
 (0)