File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,6 +5,9 @@ All notable changes to this project will be documented in this file.
55The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
66and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
77
8+ ## [ 0.0.2] - 2021-11-28 :sheep :
9+ - Unpins the ` SQLAlchemy ` version from requirements
10+
811## [ 0.0.1] - 2021-05-22 :four_leaf_clover :
912- First working implementation, with integration offering injection of
1013 db connections and ORM sessions provided by SQLAlchemy
Original file line number Diff line number Diff line change @@ -40,10 +40,6 @@ def session_factory() -> AsyncSession:
4040 app .services .add_scoped_by_factory (session_factory )
4141 app .services .add_alias (db_session_alias , AsyncSession )
4242
43- # TODO: configure an exception handler for
44- # sqlalchemy.exc.IntegrityError: (sqlite3.IntegrityError) UNIQUE constraint failed,
45- # to return an HTTP Conflict response in such case!
46-
4743
4844def use_sqlalchemy (
4945 app : Application ,
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ def readme():
88
99setup (
1010 name = "blacksheep-sqlalchemy" ,
11- version = "0.0.1 " ,
11+ version = "0.0.2 " ,
1212 description = "Extension for BlackSheep to use SQLAlchemy" ,
1313 long_description = readme (),
1414 long_description_content_type = "text/markdown" ,
@@ -28,7 +28,7 @@ def readme():
2828 keywords = "blacksheep sqlalchemy orm database" ,
2929 license = "MIT" ,
3030 packages = ["blacksheepsqlalchemy" ],
31- install_requires = ["blacksheep" , "SQLAlchemy==1.4.15 " ],
31+ install_requires = ["blacksheep" , "SQLAlchemy" ],
3232 include_package_data = True ,
3333 zip_safe = False ,
3434)
You can’t perform that action at this time.
0 commit comments