Vadim Markovtsev
Vadim Markovtsev
Yep, it should.
@campoy The use case is to classify the licenses. Wdym?
It can work at the row level analyzing one file at a time @ajnavarro
@campoy Regarding the functions. License audit is one of those nasty problems everybody hates to do in the enterprises yet many have to do (and pay for it).
FWIW tagging @marnovo as he is supposed to decide on the product features.
This is (almost) a duplicate of https://github.com/encode/databases/issues/176 I posted some workarounds there. I am opening new connections in my prod and that works very well; my opinion is that this...
The locks exist per connection, so unless you have `force_rollback=True` every call to `database` creates a separate `Connection` *in each coroutine*. Your example apparently runs both calls in the same...
There is another way with subclassing: ```python class ParallelDatabase(databases.Database): """Override connection() to ignore the task context and spawn a new Connection every time.""" def connection(self) -> "databases.core.Connection": """Bypass self._connection_context.""" return...
Depending on the surrounding code, yes or no. For example, this will **not** work: ```python async for row in database.iterate("SELECT * FROM table"): await asyncio.create_task(database.execute("UPDATE table SET ... WHERE ..."))...
That teased my brain, too. This is how it's currently implemented: https://github.com/encode/databases/blob/master/databases/core.py#L176 ```python def connection(self) -> "Connection": if self._global_connection is not None: return self._global_connection try: return self._connection_context.get() except LookupError: connection...