I see, so I didn't quite understand the relationship between sqlalchemy and
the sqlalchemy_utils libraries, but I think I've got it all straight now.
To answer your question as to why I would need the dashes, it's because
the other dependencies expect to be able to look up uuid by the standard
Hey guys !
I recently worked on an app with which you can generate classes for any
number of SQL tables automatically , just by giving in the table names
and database name through command line .
https://github.com/shravan97/ORM-Creator
I would certainly love to integrate this with SqlAlchem
What I need is a complete .py file that sets up a *minimal* version of
*every* class required, then the Query object, then prints it. I'll
mangle it to do the right thing.
Like this:
from sqlalchemy import *
from sqlalchemy.orm import *
from sqlalchemy.ext.declarative import declarative_base
So I managed to get something to return using this definition of the
@expression, however, I'm not quite there yet.
@hybrid_property
def restwave(self):
if self.target:
redshift = self.target.NSA_objects[0].z
wave = np.array(self.wavelength.wavelength)
So I managed to get something to return using this definition of the
@expression, however, I'm not quite there yet.
@hybrid_property
def restwave(self):
if self.target:
redshift = self.target.NSA_objects[0].z
wave = np.array(self.wavelength.wavelength)
On 08/02/2016 10:14 AM, Lenar Imamutdinov wrote:
The only problem with after_flush() is that it's a session event. Why
there is no such event on instance level?
because it would involve adding a loop that iterates through all the
objects that were flushed and searching each one for event han
The only problem with after_flush() is that it's a session event. Why there
is no such event on instance level?
On Tuesday, August 2, 2016 at 4:37:19 PM UTC+3, Mike Bayer wrote:
>
>
>
> On 08/02/2016 04:24 AM, Lenar Imamutdinov wrote:
> > Thank you for the comprehensive answer. Without going too
I'd recommend trying psycopg2 as the driver as it may handle this
failure mode more gracefully.
On 08/02/2016 04:34 AM, Simon King wrote:
It looks like an exception is occurring, which SQLAlchemy has caught
and is now trying to roll back the transaction before re-raising the
initial exception
On 08/02/2016 04:24 AM, Lenar Imamutdinov wrote:
Thank you for the comprehensive answer. Without going too much into
details, I have a table where file associated with each database record,
and the name of that file is based on object id. This is what's
happening now when I'm doing an INSERT:
1
On 07/22/2016 05:13 PM, Simon King wrote:
On Fri, Jul 22, 2016 at 3:25 PM, TomS. wrote:
On 07/19/2016 06:41 PM, Mike Bayer wrote:
On 07/19/2016 11:51 AM, TomS. wrote:
Hi,
We have Flask app which uses SQLAlchemy. Weird error started to happen
recently. The difficulty is that we can't repro
It looks like an exception is occurring, which SQLAlchemy has caught
and is now trying to roll back the transaction before re-raising the
initial exception. However, a second exception has occurred during the
rollback, so you can no longer see the original exception.
The second exception looks lik
Thank you for the comprehensive answer. Without going too much into
details, I have a table where file associated with each database record,
and the name of that file is based on object id. This is what's happening
now when I'm doing an INSERT:
1. Model instance is created
2. Explicit flush is d
12 matches
Mail list logo