introduce
HasorDB is a full-featured database access tool that provides object mapping, rich type handling, dynamic SQL, stored procedures, 20+ built-in paging dialects, support for nested transactions, multiple data sources, conditional constructors, INSERT strategies, multiple statements/multiple result. And compatible with Spring and MyBatis usage. It does not depend on any other framework, so it can be easily integrated with any framework.
Features
-
familiar way
- JdbcTemplate interface (highly compatible with Spring JDBC)
- Mapper file method (highly compatible with MyBatis)
- LambdaTemplate (highly close to MyBatis Plus, jOOQ and BeetlSQL)
- @Insert, @Update, @Delete, @Query, @Callable annotations (similar to JPA)
-
Transaction support
- Supports 5 transaction isolation levels, 7 transaction propagation behaviors (same as Spring tx)
- Provides TransactionTemplate, TransactionManager interface mode declarative transaction control capabilities (same usage as Spring)
-
Features and advantages
- Supports paginated queries and provides multiple database dialects (20+)
- Support for INSERT strategies (INTO, UPDATE, IGNORE)
- Richer TypeHandler (MyBatis 40+, HasorDB 60+)
- Mapper XML supports multiple statements and multiple results
- Provide a unique rule expansion mechanism to make dynamic SQL easier
@{xxx, expr , xxxxx }
- Support for stored procedures
- Supports time types in JDBC 4.2 and Java8
- Support for multiple data sources
Release.Note
- The newly added interface DynamicConnection can obtain the Connection dynamically from the outside every time. to implement the requirements of an external custom thing controller.
-
Solon has completed the docking
-
-
The new interface is supported on the core classes of JdbcAccessor, JdbcConnection, JdbcTemplate, LambdaTemplate, and DalSession.
At last
- In the end, if you think this tool is not bad, you can give a start and pay more attention to this tool, the address is: https://gitee.com/zycgit/hasordb
-
In addition, if you want to know more about it, you can read the usage tips in detail on its official website https://www.hasordb.net