feat: 添加SQLite数据库支持并迁移数据转换脚本
- 新增init_sqlite.py脚本,用于将MySQL转储文件转换为SQLite数据库 - 实现MySQL到SQLite的语法转换,包括数据类型映射、表结构清理等功能 - 在pom.xml中替换MySQL驱动为SQLite驱动,并添加JDBC依赖 - 更新application.yml配置文件,切换数据库连接从MySQL到SQLite - 配置HikariCP连接池参数以适配SQLite数据库特性
This commit is contained in:
13
pom.xml
13
pom.xml
@@ -25,11 +25,22 @@
|
||||
<artifactId>spring-boot-starter-web</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!--mysql-->
|
||||
<!--mysql
|
||||
<dependency>
|
||||
<groupId>com.mysql</groupId>
|
||||
<artifactId>mysql-connector-j</artifactId>
|
||||
</dependency>
|
||||
-->
|
||||
<!-- sqlite -->
|
||||
<dependency>
|
||||
<groupId>org.xerial</groupId>
|
||||
<artifactId>sqlite-jdbc</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-jdbc</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.baomidou</groupId>
|
||||
|
||||
Reference in New Issue
Block a user