All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
CRUDRouteSet
for creating a set of endpoints that handle CRUD related functionalityCRUDRouteSetSettings
for initializingCRUDRouteSet
route set
- All usable items from the
lilly.routing
package can now be accessed directly from thelilly.routing
package itself and not fromlilly.routing.ext
CreateOneAction
for creating a single item in the respective repositoryCreateManyAction
for creating multiple item in the respective repositoryUpdateOneAction
for updating a single item from the respective repositoryUpdateManyAction
for updating multiple item in the respective repositoryDeleteOneAction
for deleting a single item from the respective repositoryDeleteManyAction
for deleting multiple items from the respective repositoryReadOneAction
for reading a single item from the respective repositoryReadManyAction
for reading many items from the respective repositorycreate_name
route to the stubcreate_many_name
route to the stubupdate_name
route to the stubupdate_many_names
route to the stubupdate_name_partially
route to the stubread_many_names
route to the stubread_name
route to the stubdelete_many_names
route to the stubdelete_name
route to the stub
- The type of the
record
/new_record
parameter in all repository major methods that need it has changed fromAny
toBaseModel
. - The type of the
record
/new_record
parameter in all action major methods that need it has changed fromAny
toBaseModel
.
- Filtering using text SQL in sqlalchemy was fixed by initially coercing them using
text(string_sql)
and then ensuringupdate
anddelete
statements useexecution_options.synchronize_session="fetch"
SQLAlchemyRepository
which is a repository that can inherited to make repositories that connect to sqlalchemyexample.env
file for setting some environment variables likeTEST_DATABASE_URL
for running tests
- The
NamesRepository
class in the sample service is now a subclass ofSQLAlchemyRepository
- Output type of
DataSource.connect()
to be aContextManager
- Section of "How to Run tests" on README.md now includes copying the
.example.env
file - The
ci.yml
file in.github/workflows
folder got a test postgreSQL service for running postgreSQL-related tests
- Hanging of the app when a database other than sqlite was used in tests for
SQLAlchemyRepository
SQLAlchemyDataSource
which is aDataSource
child class that can be used out-of-the-box to connect to RDBMs via sqlalchemy
- The
NamesDb
class in the sample service is now a subclass ofSQLAlchemyDataSource