Releases: teqfw/db
Releases · teqfw/db
Enhanced selection DTO handling and order-by consistency
- Refactored
TeqFw_Db_Shared_Dto_List_Selection: separated class definition from metadata and improved DTO
initialization via.create(). - Added
TeqFw_Db_Shared_Util_Selectutility for composing selection DTOs from basic JS objects with support for
filtering, sorting, and pagination. - Aligned all method signatures in
Crud,Repository, andQueryBuilderto accept unifiedselectionobjects
instead ofconditions,sorting, andpaginationseparately. - Deprecated
createDto()method in selection DTO, usecreate()instead for consistency. - Updated docblocks and type annotations across repository and query interfaces for clarity and correctness.
- Minor refactorings to improve internal consistency and readability in database-related modules.
Support for `rowsLimit` and `rowsOffset` in selection
- Added support for
rowsLimitandrowsOffsetparameters in selection queries.
Added `onCommit` and `onRollback` callbacks in TrxWrapper
- Added
onCommitandonRollbackcallbacks in TrxWrapper for handling post-transaction results. - Implemented
fetchTablesByDependencyOrderin RdbTables and Schema to list tables by dependency order, enhanced date
item formatting for exports. - Corrected export mechanisms in Export to properly handle table dependencies and data types.
- Enhanced data import processing in Import, including proper sequence restoration and error handling during data
insertion. - Refactored
readManyand related methods in Crud and Schema for improved readability and extensibility, added
selection parameters for data reading operations.
Use Selection in CRUD Base for `readMany`
- Implemented selection functionality in the CRUD base for the
readManyoperation.
Use operations in `where` clause
- Enhanced the query builder to handle array values in
whereclauses (e.g.,('id', ['<=', 4])becomes
('id', '<=', 4)). - Improve JSDoc in
TeqFw_Db_Back_App_Crud.updateOneto prevent IDEA highlights.
Enhanced Database Abstraction, New CRUD Engine, and SQLite Support
0.23.0
- Introduced the
TeqFw_Db_Back_Api_RDb_Schema_Objectinterface, deprecatingTeqFw_Db_Back_RDb_Meta_IEntity. - Added a new CRUD engine
TeqFw_Db_Back_App_Crud. - Introduced the transaction wrapper
TeqFw_Db_Back_App_TrxWrapperfor better transaction management. - Added the
TeqFw_Db_Back_Api_RDb_Repositoryinterface to define repository operations. - Enhanced support for SQLite in the CRUD engine, including better handling of primary keys.
- Improved unit tests for CRUD operations with detailed scenarios.
- Updated DEM loading logic to include optional test-specific data for schema initialization.
- Added utilities for grouping and selecting columns in database queries.
Detect `Client_BetterSQLite3` constructor
- Detect
Client_BetterSQLite3constructor.
Drop/create FK separately from the tables
- Add the selection DTO for listing queries.
- Add the model to convert the selection DTO to the knex query.
- Extract the
TeqFw_Db_Shared_Enum_Directionenumeration. - Fix the error in
TeqFw_Db_Back_Cli_Exportwith the export from missed table. - Drop/create FK separately from the tables.
- Remove the legacy format for depIds
Add the common export/import CLI commands
- Add the common export/import CLI commands.
- Add the
TeqFw_Db_Back_Act_Dem_Tablesaction. - Use platform specific paths separators (win/*nix).
- The class-based form for the
TeqFw_Db_Back_Util.
Knex password and logger
- WF-674 Update knex version in RA
- WF-677 Add postprocessor chunk for loggers