Comments (4)
I'm using it, and I have it installed in production to allow me sqlalchemy models when debugging. I'm working on a production feature that really needed sqlalchemy, and I had to put in some work to make this package flexible enough to work for my admittedly esoteric use-case, but @Deepwalker has been pretty helpful to allow me to get it merged. So I really don't have any complaints. It's not a major-use that is currently in production, though, so my own experience is not necessarily representative of what you might wish to do.
from aldjemy.
We use it in production but there are some workarounds like that:
# project/__init__.py
from django.core import signals as core_signals
from django.db import connections
#...
def close_connection(**_): # fix SqlAlchemy integration
for conn in connections.all():
if hasattr(conn, 'sa_session'):
conn.sa_session.close()
core_signals.request_finished.connect(close_connection)
from aldjemy.
@ADR-007 : Would you like to make a pull request to fix the workarounds? Just help me understand them, and I'll be happy to merge!
from aldjemy.
@ryanhiebert , unfortunately, I am not on the project anymore, so I cannot test it...
But the problem was in the open connections which will not be closed automatically without the hotfix)
from aldjemy.
Related Issues (20)
- Settings import conflict in aldjemy.table HOT 2
- Add DateRangeField to default types
- Transaction is rollback unconditionally on connection `connect` event HOT 3
- option to pass future=True to engine and session HOT 11
- Migration guide for v2 deprecations HOT 6
- Inconsistency with json serialization HOT 22
- sqlalchemy v2 deprecation (orm.mapper)
- ManyToMany fields with through parameter raise SA warning
- ORM layer produce some warnings with SQLA 1.4
- Should we switch to pytest (and pytest-django) ? HOT 2
- SAWarning on EmailAddress HOT 18
- Error with M2M fields that have through attribtute: TypeError: sequence item 3: expected str instance, NoneType found HOT 1
- M2M query HOT 2
- Use db_column in ForeignKey field HOT 6
- Replace current Django connection by the new, asynchronous, directly created from the SQLAlchemy HOT 8
- Switch to regular build tools HOT 1
- Is there a way to exclude a Django model or field from Aldjemy model creation? HOT 4
- Outdated comment in core.py? HOT 1
- SQLAlchemy 2 compatibility HOT 8
- Support Psycopg 3 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aldjemy.