Git Product home page Git Product logo

auto-table's Introduction

logo

你只负责维护实体,数据表的事情交给我

img img

什么是AutoTable?

顾名思义-自动表格,根据Bean实体,自动映射成数据库的表结构。

用过JPA的都知道,JPA有一项重要的能力就是表结构自动维护,这让我们可以可以专注于业务逻辑和实体,而不需要关心数据库的表、列的配置,尤其是开发过程中频繁的新增表及变更表结构,节省了大量手动工作。

但是在Mybatis圈子中,一直缺少这种体验,所以AutoTable应运而生了。

兼容多款Mybatis拓展框架

AutoTable分别在表名、字段名、主键、主键策略、枚举处理、多数据源等多方面进行接口化抽取,兼容了大部分主流Mybatis拓展框架,如Mybatis-plus、Mybatis-flex等。

mybatis-plus拓展包

mybatis-plus-ext 是mybatis-plus框架的拓展包,在框架原有基础上做了进一步的轻度封装,增强内容:免手写Mapper、多数据源自动建表(auto-table)、数据自动填充、自动关联查询、冗余数据自动更新、动态查询条件等。

mybatis-flex拓展包

mybatis-flex-ext 是mybatis-flex框架的拓展包,在框架原有基础上做了进一步的轻度封装,增强内容:多数据源自动建表(auto-table)、数据自动填充(类似JPA中的审计)。

支持的数据库

以下的测试版本是我本地的版本或者部分小伙伴测试过的版本,更低的版本未做详细测试,但不代表不能用,所以有测试过其他更低版本的小伙伴欢迎联系我修改相关版本号,感谢🫡

数据库 测试版本 说明
✅ MySQL 5.7
✅ MariaDB 对应MySQL的版本 协议使用MySQL,即jdbc:mysql://
✅ PostgreSQL 15.5
✅ SQLite 3.35.5
✅ H2 2.2.220
其他数据库 暂未支持 期待你的PR😉

流程图

框架运行图

官方教程

AutoTable教程

联系作者(微信)

微信

特别感谢

感谢JetBrains提供的软件支持

JetBrains Logo (Main) logo.

auto-table's People

Contributors

imtzc avatar foxmale007 avatar lhzsdnu avatar mxyyyy369 avatar

Stargazers

 avatar  avatar

Watchers

Micro avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.