On 11/18/2012 03:48 PM, Michael Bayer wrote:
There's a lot of documentation on this, not sure how you're not finding it,
unless you're not using 0.8 (which is required):
1. documentation for SQL bind/result column processing:
http://docs.sqlalchemy.org/en/latest/core/types.html#types-sql-value
There's a lot of documentation on this, not sure how you're not finding it,
unless you're not using 0.8 (which is required):
1. documentation for SQL bind/result column processing:
http://docs.sqlalchemy.org/en/latest/core/types.html#types-sql-value-processing
2. a full example using PostGIS:
Hello list,
I can't find an example for a user defined type that has to produce
custom SQL. What I want is to implement a PostGIS geometry column and it
basically has to do two things:
1. Implement own SQL for insert/update, to produce for example:
INSERT INTO (..., xyzzy, ) VAL
Just for the archive,
On 08/02/2012 16:47, Michael Bayer wrote:
@hybrid_property
def namesandvar(self):
nVar = self.name
if self.name2:
nVar += ', ' + self.name2
if self.variety:
nVar += ', ' + self.variety
return nVar
I must be do
On Feb 8, 2012, at 10:40 AM, werner wrote:
> Hi,
>
> I am using some custom types which "just about" work, i.e. I just have an
> issue when I do this type of query.
>
> result = result.filter(db.Drinkinfo.namesandvar.startswith('cloudy'))
>
> It throws the following exception, which is due to
Hi,
I am using some custom types which "just about" work, i.e. I just have
an issue when I do this type of query.
result = result.filter(db.Drinkinfo.namesandvar.startswith('cloudy'))
It throws the following exception, which is due to my custom type not
being correctly setup.
sqlalchemy.ex