Multi-Database Support: Oracle, DB2, HANA, MSSQL
· One min read
TeaQL gained four new database backends in a single sprint.
New Databases
+ teaql-oracle: Oracle database support
+ teaql-db2: IBM DB2 support
+ teaql-hana: SAP HANA support
+ teaql-mssql: Microsoft SQL Server support
Each module includes:
- Database-specific DDL generation (
ensureTables) - Java ↔ SQL type mapping
- Custom SQL syntax handling
JdbcTemplate Migration
Migrated from raw JDBC to Spring JdbcTemplate for better resource management, connection pooling, and exception handling.
MySQL Improvements
tinyint→Booleanmappingint→Integermappingtimestamp→LocalDateTimemapping- GBK charset
ORDER BYsorting fix - Semicolon handling fix
Oracle Customizations
- Primary table
INNER JOIN, auxiliary tableLEFT JOIN - Partition fix
- Column label handling
Pagination
Native pagination with page and pageSize:
Q.orders()
.filter(Q.orders().status().eq("ACTIVE"))
.page(1, 20)
.executeForList(ctx);
