what video is that ?I don't use EAV's too often. If you can point me to
something I can identify what it was.
On May 13, 2013, at 8:22 PM, Lycovian wrote:
> A few months ago I watched a video conference where Mike demo'd some
> optimizations for SQLAlchemy when using EAV schemas. Does a
A few months ago I watched a video conference where Mike demo'd some
optimizations for SQLAlchemy when using EAV schemas. Does anyone know if
these optimizations will make it into the product that we have access to?
I'm about to start a large EAV based project with SA and I was curious.
Mike
Good to hear!
I took a look at #2694 and it seems that using column.contains(other,
autoescape=True) might get wordy fairly quick when -- at least in new
applications -- it would be a handy default. While it's probably not
particularly feasible, it'd be handy if the default for autoescape cou
On May 13, 2013, at 6:30 PM, Daniel Grace wrote:
> So today I identified a small bug in my code and then, while trying to
> resolve it, came to a few realizations:
>
> 1. column.contains(str) does not escape characters in str such as % and _.
> Presumably, column.startswith(str) and column.e
So today I identified a small bug in my code and then, while trying to
resolve it, came to a few realizations:
1. column.contains(str) does not escape characters in str such as % and _.
Presumably, column.startswith(str) and column.endswith(str) have the same
behavior.
2. There is a distinct
On May 13, 2013, at 3:28 AM, Chris Withers wrote:
> Hi All,
>
> I'd like to wire in a listener for before_insert for all models that use a
> particular mixin. I may need to construct the listener based on some columns
> in both the mixin and the model that mixes it in.
>
> Do I use declared_
this is a reopen of http://www.sqlalchemy.org/trac/ticket/2481, and is fixed
again in r7699a1080742. Thanks for the report.
On May 13, 2013, at 3:18 PM, Gerald Thibault wrote:
> I have the following code:
>
> from sqlalchemy import *
> from sqlalchemy.ext.declarative import declarative_base
On May 13, 2013, at 2:43 AM, Chris Withers wrote:
> Hi All,
>
> If I do:
>
> obj = session.query(MyModel).one()
> obj.attr = 'something'
> session.add(MyModel(attr='else'))
> session.commit()
>
> ...does sqlalchemy guarantee that the update will happen before the insert?
that can't be guara
I have the following code:
from sqlalchemy import *
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import Session, relationship, backref
e = create_engine('sqlite:tmp/test.db', echo=True)
Base = declarative_base()
Base.metadata = MetaData(e)
class Node(Base):
This solution seems to work in my context
Thanks
Gio
Am Mittwoch, 8. Mai 2013 16:18:31 UTC+2 schrieb Michael Bayer:
>
> from sqlalchemy.sql import column, tuple_
>
> a, b = column('a'), column('b')
>
> print tuple_(a, b).op("OVERLAPS")(tuple_(1, 2))
>
>
> "(a, b) OVERLAPS (:param_1, :param_2)"
Hi All,
I'd like to wire in a listener for before_insert for all models that use
a particular mixin. I may need to construct the listener based on some
columns in both the mixin and the model that mixes it in.
Do I use declared_attr and __declare_last__?
Are there any examples around of doin
Hi All,
If I do:
obj = session.query(MyModel).one()
obj.attr = 'something'
session.add(MyModel(attr='else'))
session.commit()
...does sqlalchemy guarantee that the update will happen before the insert?
cheers,
Chris
--
Simplistix - Content Management, Batch Processing & Python Consulting
12 matches
Mail list logo