Skip to content

Commit 1fe7848

Browse files
committed
feat(driver): 重写 Redis Driver
1 parent 6804d62 commit 1fe7848

38 files changed

+2047
-5018
lines changed

core/datacap-parser/src/main/antlr4/io/edurt/datacap/sql/parser/SqlBase.g4

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,12 +692,13 @@ defaultValue
692692
// Names and Identifiers
693693
catalogName: identifier;
694694
columnName: identifier;
695-
tableName: (databaseName '.')? identifier;
695+
tableName: (databaseName '.')? identifier | patternIdentifier;
696696
databaseName: identifier;
697697
indexName: identifier;
698698
constraintName: identifier;
699699
alias: identifier;
700700
functionName: identifier;
701+
patternIdentifier: PATTERN_IDENTIFIER;
701702

702703
identifier
703704
: IDENTIFIER
@@ -818,6 +819,12 @@ STRING
818819
| '"' ( ~('"'|'\\') | ('\\' .) )* '"'
819820
;
820821

822+
PATTERN_IDENTIFIER
823+
: '*'
824+
| (LETTER | DIGIT | '_')+ (':' (LETTER | DIGIT | '_' | '*' | '?')+)+
825+
| (LETTER | DIGIT | '_')+ ':' '*'
826+
;
827+
821828
IDENTIFIER
822829
: (LETTER | '_') (LETTER | DIGIT | '_')*
823830
;
Lines changed: 13 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,31 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
32
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
43
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
54
<modelVersion>4.0.0</modelVersion>
65
<parent>
7-
<artifactId>datacap</artifactId>
86
<groupId>io.edurt.datacap</groupId>
7+
<artifactId>datacap</artifactId>
98
<version>2025.1.2</version>
109
<relativePath>../../pom.xml</relativePath>
1110
</parent>
1211

1312
<name>datacap-driver-redis</name>
1413
<artifactId>datacap-driver-redis</artifactId>
15-
<description>DataCap - Driver</description>
16-
17-
<properties>
18-
<redis.version>4.3.1</redis.version>
19-
</properties>
14+
<description>DataCap - Redis - Driver</description>
2015

2116
<dependencies>
2217
<dependency>
23-
<groupId>redis.clients</groupId>
24-
<artifactId>jedis</artifactId>
25-
<version>${redis.version}</version>
18+
<groupId>org.redisson</groupId>
19+
<artifactId>redisson</artifactId>
20+
</dependency>
21+
<dependency>
22+
<groupId>io.edurt.datacap</groupId>
23+
<artifactId>datacap-parser</artifactId>
24+
</dependency>
25+
<dependency>
26+
<groupId>ch.qos.logback</groupId>
27+
<artifactId>logback-classic</artifactId>
28+
<version>${logback.version}</version>
2629
</dependency>
2730
</dependencies>
28-
29-
<build>
30-
<plugins>
31-
<plugin>
32-
<groupId>org.apache.maven.plugins</groupId>
33-
<artifactId>maven-checkstyle-plugin</artifactId>
34-
<version>${plugin.maven.checkstyle.version}</version>
35-
<configuration>
36-
<skip>true</skip>
37-
</configuration>
38-
</plugin>
39-
<plugin>
40-
<groupId>com.github.spotbugs</groupId>
41-
<artifactId>spotbugs-maven-plugin</artifactId>
42-
<version>${plugin.maven.findbugs.version}</version>
43-
<configuration>
44-
<skip>true</skip>
45-
</configuration>
46-
</plugin>
47-
</plugins>
48-
</build>
4931
</project>

driver/datacap-driver-redis/src/main/java/io/edurt/datacap/core/Hint.java

Lines changed: 0 additions & 22 deletions
This file was deleted.

driver/datacap-driver-redis/src/main/java/io/edurt/datacap/core/HintKey.java

Lines changed: 0 additions & 19 deletions
This file was deleted.

driver/datacap-driver-redis/src/main/java/io/edurt/datacap/core/Logger.java

Lines changed: 0 additions & 26 deletions
This file was deleted.

driver/datacap-driver-redis/src/main/java/io/edurt/datacap/core/Op.java

Lines changed: 0 additions & 36 deletions
This file was deleted.

driver/datacap-driver-redis/src/main/java/io/edurt/datacap/core/RedisClient.java

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)