Skip to content

xxm1995/table-modify

Repository files navigation

Table-Modify(表结构管理工具)

star Build Status Build Status

🍈项目介绍

本项目Fork自 A.C.Table,之前在其他项目中用到了A.C.Table, 并对功能进行了改造。因为该A.C.Table项目近期发生了停更,所以打算把这些功能给开源出来,同时继续将这个项目完善下去。

🍎 路线图

  • 1.5.4 主要目标
    • 支持PostgreSQL数据库的表维护
    • 不再依赖Mybatis和Mybatis Plus,SQL执行使用JdbcTemplate
  • 1.5.x 目标:
    • 支持SQL Server数据库的表维护
    • 支持Oracle数据库的表维护
    • 支持达梦数据库的表维护
    • 提供接入其他类型数据库的插件机制
  • 1.6.x 目标:
    • 支持非Spring中间件的项目接入

📚 使用文档

🥂 使用说明

推荐只在开发时使用,生产环境停用自动更新。如何使用可以参考示例项目示例项目: table-modify-example ,以及项目使用文档

添加pom依赖

<dependency>
    <groupId>cn.bootx</groupId>
    <artifactId>table-modify-mysql-boot-starter</artifactId>
    <version>${table-modify.version}</version>
</dependency>

最新版本

配置文件配置

mybatis-table:
  # 更新类型
  update-type: create
  # 扫描包路径, 可以用 ,和 ; 分隔
  scan-package: cn.bootx.**.entity
  # 是否开启快速失败模式, 出现错误项目直接中止启动
  fail-fast: false

其他配置

无论是使用MyBatis还是MyBatis Plus,需要保证项目中的mapper被扫描到,否则会报错无法启动,

项目中mapper文件所在的路径为 classpath*:cn/bootx/mybatis/table/modify/impl/*/mapper/*TableModifyMapper.xml

MyBatis配置扫描

mybatis:
  mapper-locations: classpath*:mapper/**/*Mapper.xml

MyBatis Plus配置扫描

# mp配置
mybatis-plus:
  mapper-locations: classpath*:mapper/**/*Mapper.xml

🍁 Bootx 项目合集

🥪 关于我们

QQ扫码加入QQ交流群

🍻 鸣谢

感谢 JetBrains 提供的免费开源 License:

JetBrains

🍷License

Apache License Version 2.0

About

通过在Entity上添加注解来创建表和维护数据库表结构,支持了mybatis和mybatis plus,本项目是A.CTable项目的一个fork分支,感谢原作者

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages