<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://permalink.gmane.org/gmane.comp.python.sqlalchemy.user">
    <title>gmane.comp.python.sqlalchemy.user</title>
    <link>http://permalink.gmane.org/gmane.comp.python.sqlalchemy.user</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.sqlalchemy.user/34939"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.sqlalchemy.user/34938"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.sqlalchemy.user/34937"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.sqlalchemy.user/34936"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.sqlalchemy.user/34935"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.sqlalchemy.user/34934"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.sqlalchemy.user/34933"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.sqlalchemy.user/34932"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.sqlalchemy.user/34931"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.sqlalchemy.user/34930"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.sqlalchemy.user/34929"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.sqlalchemy.user/34928"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.sqlalchemy.user/34927"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.sqlalchemy.user/34926"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.sqlalchemy.user/34925"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.sqlalchemy.user/34924"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.sqlalchemy.user/34923"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.sqlalchemy.user/34922"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.sqlalchemy.user/34921"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.sqlalchemy.user/34920"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.sqlalchemy.user/34939">
    <title>SQLite synchronous on engine</title>
    <link>http://permalink.gmane.org/gmane.comp.python.sqlalchemy.user/34939</link>
    <description>&lt;pre&gt;Hi,

In order to improve the underlying SQLite performance, I've changed some 
low level settings with PRAGMA commands:

PRAGMA synchronous=NORMAL; /* instead of default FULL value, see: 
http://www.sqlite.org/pragma.html#pragma_synchronous */
PRAGMA journal_mode=WAL;       /* 
http://www.sqlite.org/pragma.html#pragma_journal_mode and 
http://www.sqlite.org/wal.html */

From an implementation point of view, I did as explained in this thread: 
https://groups.google.com/forum/?fromgroups#!topic/sqlalchemy/IY5PlUf4VwE. I've 
got an OrmManager class (which is a singleton) which is used to get new 
sessions. *The bold lines are the ones I added to improve performance*.


class OrmManager:
    """
    OrmManager class

    Handles the database and provides an abstraction layer for it
    """

    def  __init__(self, database, metadata, db_type, echo=False):
        self.database = database
        self.session_maker = sessionmaker()

        if db_type == 'file':
            engine = create_engine('sqlite:///' + d&lt;/pre&gt;</description>
    <dc:creator>pr64</dc:creator>
    <dc:date>2013-06-19T14:14:25</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.sqlalchemy.user/34938">
    <title>The problem with Oldest transaction (Firebird)</title>
    <link>http://permalink.gmane.org/gmane.comp.python.sqlalchemy.user/34938</link>
    <description>&lt;pre&gt;I use SQLAlchemy inside Tornado, and I use a singleton to make the Firebird 
connection inside application.

class FirebirdDatabase(object):

    def __init__(self, firebird_params, echo=False):
        engine = 
create_engine('firebird+fdb://%(user)s:%(password)s&amp;lt; at &amp;gt;%(host)s:%(port)s/%(path)s' 
% firebird_params,
                               echo=echo,
                               echo_pool=echo,
                               pool_recycle=3600,
                               convert_unicode=True,
                               encoding='cp1251')
        self._session = sessionmaker(bind=engine)

    _instance = None

    def __new__(cls, *args, **kwargs):
        if not cls._instance:
            cls._instance = super(FirebirdDatabase, cls).__new__(cls, 
*args, **kwargs)
        return cls._instance

    def get_session(self):
        return self._session()


After a while the Oldest transaction begin blocking and this slow down the 
database speed.

To commit changes I use:

try:
    self.Session.commit(&lt;/pre&gt;</description>
    <dc:creator>graf</dc:creator>
    <dc:date>2013-06-18T22:09:40</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.sqlalchemy.user/34937">
    <title>Re: The problem with the update</title>
    <link>http://permalink.gmane.org/gmane.comp.python.sqlalchemy.user/34937</link>
    <description>&lt;pre&gt;This is an interesting question :)
Description: Looking for a project in which students (ManyToMany) to 
address (OneToOne) with the street dying text "Jana" and delete this row.

subq = 
session.query(Addressess.id).filter(Addressess.street.like('%Jana%')).subquery()
session.query(Projects).filter(Projects.students.any(Person.addressess_id.in_(subq))).delete(synchronize_session='fetch')
session.commit()

&lt;/pre&gt;</description>
    <dc:creator>Witold Greń</dc:creator>
    <dc:date>2013-06-18T21:55:54</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.sqlalchemy.user/34936">
    <title>Re: The problem with the update</title>
    <link>http://permalink.gmane.org/gmane.comp.python.sqlalchemy.user/34936</link>
    <description>&lt;pre&gt;Resolverd no. 5:

session.query(Projects).filter(Projects.students.any(and_(Person.gender == 
False, Person.name.like('M%') )))\
    .update({Projects.name: u'New project name', Projects.supervisor_id: 
1}, synchronize_session=False)



Again many thanks Michael :)

&lt;/pre&gt;</description>
    <dc:creator>Witold Greń</dc:creator>
    <dc:date>2013-06-18T21:14:51</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.sqlalchemy.user/34935">
    <title>Re: The problem with the update</title>
    <link>http://permalink.gmane.org/gmane.comp.python.sqlalchemy.user/34935</link>
    <description>&lt;pre&gt;
On Jun 18, 2013, at 4:46 PM, Witold Greń &amp;lt;witold.gren&amp;lt; at &amp;gt;gmail.com&amp;gt; wrote:



any() does the subquery correlated to the related table for you:

s.query(Projects).filter(Projects.students.any(and_(Person.gender == False, Person.name.like('x')))).count()






&lt;/pre&gt;</description>
    <dc:creator>Michael Bayer</dc:creator>
    <dc:date>2013-06-18T21:08:23</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.sqlalchemy.user/34934">
    <title>Re: The problem with the update</title>
    <link>http://permalink.gmane.org/gmane.comp.python.sqlalchemy.user/34934</link>
    <description>&lt;pre&gt;Thanks for your help Michael :)

Resolved:
No.2 

subq = session.query(Person.group_leader_id).filter(or_(Person.name == 
'Jan', Person.surname == 'Nowak')).subquery()
        
session.query(Person).filter(Person.id.in_(subq)).update({Person.name: 
u'Łukasz'}, synchronize_session=False)

# All support but not SQLite:
# session.query(Person).join(Person.group_leader, aliased=True).\
#     filter(or_(Person.name == 'Jan', Person.surname == 'Nowak')).
#     update({Person.name: u'Łukasz'}, synchronize_session=False)


No. 3
subq = 
session.query(Person.price_id).filter(Person.name.like('J%')).subquery()
        
session.query(Price).filter(Price.id.in_(subq)).update({Price.extra: 
20000}, synchronize_session=False)

# All support but not SQLite:
# 
session.query(Price).join(Person).filter(Person.name.like('J%')).update({Price.extra: 
20000}, synchronize_session=False)


No.4
subq = 
session.query(Person.addressess_id).filter(Person.surname.like('%k'))\
            .filter(sqlalchemy.not_(Person.surname.like('&lt;/pre&gt;</description>
    <dc:creator>Witold Greń</dc:creator>
    <dc:date>2013-06-18T20:46:29</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.sqlalchemy.user/34933">
    <title>Re: The problem with the update</title>
    <link>http://permalink.gmane.org/gmane.comp.python.sqlalchemy.user/34933</link>
    <description>&lt;pre&gt;if the database you're using doesn't support UPDATE..FROM (which is likely), the normal way is to UPDATE with a subquery, which may be correlated or in a simple case like this just using IN:

UPDATE price SET extra=20000 WHERE price.id in (select price_id from person where name like 'J%')


subq = session.query(Person.price_id).where(Person.name.like('J%')).subquery()
session.query(Price).filter(Price.id.in_(subq)).update({Price.extra: 20000}, synchronize_session=False)



On Jun 18, 2013, at 2:01 PM, Witold Greń &amp;lt;witold.gren&amp;lt; at &amp;gt;gmail.com&amp;gt; wrote:


&lt;/pre&gt;</description>
    <dc:creator>Michael Bayer</dc:creator>
    <dc:date>2013-06-18T19:13:50</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.sqlalchemy.user/34932">
    <title>Re: between .one() and .first()</title>
    <link>http://permalink.gmane.org/gmane.comp.python.sqlalchemy.user/34932</link>
    <description>&lt;pre&gt;From the docs:
"one()

Return exactly one result or raise an exception.

Raises sqlalchemy.orm.exc.NoResultFound if the query selects no rows.

Raises sqlalchemy.orm.exc.MultipleResultsFound if multiple object
identities are returned, or if multiple rows are returned for a query
that does not return object identities."

Thus, you could:

try:
  return query.one()
  print ('Yay! One result!')
except NoResultFound:
  # Deal with case of zero results
  print('Zero results is also good!')
except MultipleResultsFound:
  # Deal with case of &amp;gt;1 results
  print('This should not happen. :(')



On Mon, Jun 17, 2013 at 1:57 PM, Petr Viktorin &amp;lt;encukou&amp;lt; at &amp;gt;gmail.com&amp;gt; wrote:



&lt;/pre&gt;</description>
    <dc:creator>ian marcinkowski</dc:creator>
    <dc:date>2013-06-18T18:30:04</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.sqlalchemy.user/34931">
    <title>Re: The problem with the update</title>
    <link>http://permalink.gmane.org/gmane.comp.python.sqlalchemy.user/34931</link>
    <description>&lt;pre&gt;I try resolved problem used this code:

No 5:

sql = session.query(Projects).join(Person, 
Projects.students).filter(Person.gender==False, Person.name.like('M%'))

for projects in sql:
    projects.supervisor_id = 1

session.commit()

but it is probably not a very efficient way?





W dniu poniedziałek, 17 czerwca 2013 21:09:18 UTC+2 użytkownik Witold Greń 
napisał:

&lt;/pre&gt;</description>
    <dc:creator>Witold Greń</dc:creator>
    <dc:date>2013-06-18T18:01:22</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.sqlalchemy.user/34930">
    <title>Re: sqlite in memory</title>
    <link>http://permalink.gmane.org/gmane.comp.python.sqlalchemy.user/34930</link>
    <description>&lt;pre&gt;Petr, just found something intesting that may work for anyone:

http://blog.marcus-brinkmann.de/2010/08/27/how-to-use-sqlites-backup-in-python/

I was able do create a database totally in memory and them just "dump" 
it to a file. The process now takes about 5 minutes, against one hour+ 
that it took earlier.

Cheers :)
Richard.

On 06/17/2013 01:37 PM, Richard Gerd Kuesters wrote:

&lt;/pre&gt;</description>
    <dc:creator>Richard Gerd Kuesters</dc:creator>
    <dc:date>2013-06-17T19:29:50</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.sqlalchemy.user/34929">
    <title>The problem with the update</title>
    <link>http://permalink.gmane.org/gmane.comp.python.sqlalchemy.user/34929</link>
    <description>&lt;pre&gt;Hi, I'm Witold and learn Sqlalchemy :)
I have a little problem, here it is:

This is my DB:

class Addressess(Base):

    __tablename__ = 'addressess'

    id = Column('id', Integer, Sequence('address_id_seq'), 
primary_key=True, index=True, unique=True, nullable=False)
    street = Column('street', String(200))
    house_no = Column('house_no', Integer())
    place = Column('place', String(200))
    postal_code = Column('postal_code', String(200))
    post = Column('post', String(200))

    def __init__(self, street, house_no):
        self.street = street
        self.house_no = house_no

    def __repr__(self):
       return u'%s, %s, %s' % (self.place, self.street, self.house_no)


class Price(Base):

    __tablename__ = 'prices'

    id = Column('id', Integer, Sequence('price_id_seq'), primary_key=True, 
index=True, unique=True, nullable=False)
    price = Column('price', String(200))
    extra = Column('extra', String(200), nullable=True)

    def __init__(self, price, extra=None):
        self.price =&lt;/pre&gt;</description>
    <dc:creator>Witold Greń</dc:creator>
    <dc:date>2013-06-17T19:09:18</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.sqlalchemy.user/34928">
    <title>Re: between .one() and .first()</title>
    <link>http://permalink.gmane.org/gmane.comp.python.sqlalchemy.user/34928</link>
    <description>&lt;pre&gt;Simply handling NoResultFound should work just fine...

def zero_or_one(query):
    try:
        return query.one()
    except NoResultFound:
        return None

On Mon, Jun 17, 2013 at 6:36 PM, Michael Bayer &amp;lt;mike_mp&amp;lt; at &amp;gt;zzzcomputing.com&amp;gt; wrote:

&lt;/pre&gt;</description>
    <dc:creator>Petr Viktorin</dc:creator>
    <dc:date>2013-06-17T17:57:26</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.sqlalchemy.user/34927">
    <title>Re: between .one() and .first()</title>
    <link>http://permalink.gmane.org/gmane.comp.python.sqlalchemy.user/34927</link>
    <description>&lt;pre&gt;Am 17.06.2013, 08:58 Uhr, schrieb Chris Withers &amp;lt;chris&amp;lt; at &amp;gt;simplistix.co.uk&amp;gt;:



.count() would seem to be your friend here, at least in case that a lot of  
rows might be returned.


Only if you can express that need as a query.

Charlie
&lt;/pre&gt;</description>
    <dc:creator>Charlie Clark</dc:creator>
    <dc:date>2013-06-17T17:47:56</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.sqlalchemy.user/34926">
    <title>Re: Unique constraints disappearing</title>
    <link>http://permalink.gmane.org/gmane.comp.python.sqlalchemy.user/34926</link>
    <description>&lt;pre&gt;
On Jun 15, 2013, at 4:32 PM, Rj Ewing &amp;lt;ewing.rj&amp;lt; at &amp;gt;gmail.com&amp;gt; wrote:


unique constraints are not currently reflected.    This feature was just added in master and is currently set for release in 0.9.0.


&lt;/pre&gt;</description>
    <dc:creator>Michael Bayer</dc:creator>
    <dc:date>2013-06-17T16:39:25</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.sqlalchemy.user/34925">
    <title>Re: SQLAlchemy 0.8.1 + fdb, row size</title>
    <link>http://permalink.gmane.org/gmane.comp.python.sqlalchemy.user/34925</link>
    <description>&lt;pre&gt;
On Jun 17, 2013, at 9:44 AM, graf &amp;lt;a.zhabotinskiy&amp;lt; at &amp;gt;gmail.com&amp;gt; wrote:



this would be a difference in how they handle unicode.   I've run tests for fdb here against unicode values and haven't observed that issue.

its possible fdb is doing the right thing here.   You should carefully look at how non-ASCII characters are being placed in that column both with kinterbasdb and with fdb.


&lt;/pre&gt;</description>
    <dc:creator>Michael Bayer</dc:creator>
    <dc:date>2013-06-17T16:38:24</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.sqlalchemy.user/34924">
    <title>Re: sqlite in memory</title>
    <link>http://permalink.gmane.org/gmane.comp.python.sqlalchemy.user/34924</link>
    <description>&lt;pre&gt;Hmmm, never knew of that. All my "constraints" are already predefined 
and inserts are in order so I won't get a broken FK. I'll try that too 
see if it increases the speed (decreasing my headaches per build, lol).

Thanks a lot, Petr!


On 06/17/2013 11:18 AM, Petr Viktorin wrote:

&lt;/pre&gt;</description>
    <dc:creator>Richard Gerd Kuesters</dc:creator>
    <dc:date>2013-06-17T16:37:01</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.sqlalchemy.user/34923">
    <title>Re: between .one() and .first()</title>
    <link>http://permalink.gmane.org/gmane.comp.python.sqlalchemy.user/34923</link>
    <description>&lt;pre&gt;
On Jun 17, 2013, at 5:33 AM, Wichert Akkerman &amp;lt;wichert&amp;lt; at &amp;gt;wiggy.net&amp;gt; wrote:


you could even drop the limit(2) so that the query renders more simply if eagerloads are present.

&lt;/pre&gt;</description>
    <dc:creator>Michael Bayer</dc:creator>
    <dc:date>2013-06-17T16:36:16</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.sqlalchemy.user/34922">
    <title>Re: mapping to a dictionary-based collection using a select</title>
    <link>http://permalink.gmane.org/gmane.comp.python.sqlalchemy.user/34922</link>
    <description>&lt;pre&gt;
On Jun 17, 2013, at 2:36 AM, Chris Withers &amp;lt;chris&amp;lt; at &amp;gt;simplistix.co.uk&amp;gt; wrote:



well you're going to have relationship with "primaryjoin=and_(Symbol.instrument_id==Instrument.id, Symbol.period.contains(func.now()))"  (what does contains(func.now()) do ?   havent seen that one before).    then collection_class=attribute_mapped_collection(&amp;lt;attribute you want to key on&amp;gt;).

&lt;/pre&gt;</description>
    <dc:creator>Michael Bayer</dc:creator>
    <dc:date>2013-06-17T16:35:37</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.sqlalchemy.user/34921">
    <title>Re: SA0.7.9 - poor query performance (full scan instead of index scan because of joined table inheritance)</title>
    <link>http://permalink.gmane.org/gmane.comp.python.sqlalchemy.user/34921</link>
    <description>&lt;pre&gt;Hello.

I ended up with the following query:

    &amp;lt; at &amp;gt;classmethod
    def _find_contacts_fetch_window(cls, contact_cls, win):
        """Special data-fetching query for contacts and all their related info
        including tags, partner, client,...

        NOTE: We build the FROM part entirely by hand, because SA generates bad
        SQL for postgres. It does a FULL SCAN of client and personal_client /
        corporate_client even though it reads at most window_size rows from
        them. All this because SA inheritance creates a subselect which leads
        to the full scan.
        """
        # win .. list of ids
        # contact_cls .. PersonalContact / CorporateContact
        client_cls = contact_cls.client_cls() # PersonalClient / CorporateClient
        data_cls = client_cls.data_cls() # PersonalData / CorporateData

        # We need TABLEs to build the FROM part by hand.
        # We reference PersonalData/CorporateData and Address twice, hence we
        # need to alias them.
        # We also &lt;/pre&gt;</description>
    <dc:creator>Ladislav Lenart</dc:creator>
    <dc:date>2013-06-17T09:35:27</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.sqlalchemy.user/34920">
    <title>Re: SA0.7.9 - poor query performance (full scan instead of index scan because of joined table inheritance)</title>
    <link>http://permalink.gmane.org/gmane.comp.python.sqlalchemy.user/34920</link>
    <description>&lt;pre&gt;Hello.

I ended up with the following query:

    &amp;lt; at &amp;gt;classmethod
    def _find_contacts_fetch_window(cls, contact_cls, win):
        """Special data-fetching query for contacts and all their related info
        including tags, partner, client,...

        NOTE: We build the FROM part entirely by hand, because SA generates bad
        SQL for postgres. It does a FULL SCAN of client and personal_client /
        corporate_client even though it reads at most window_size rows from
        them. All this because SA inheritance creates a subselect which leads
        to the full scan.
        """
        # win .. list of ids
        # contact_cls .. PersonalContact / CorporateContact
        client_cls = contact_cls.client_cls() # PersonalClient / CorporateClient
        data_cls = client_cls.data_cls() # PersonalData / CorporateData

        # We need TABLEs to build the FROM part by hand.
        # We reference PersonalData/CorporateData and Address twice, hence we
        # need to alias them.
        # We also &lt;/pre&gt;</description>
    <dc:creator>Ladislav Lenart</dc:creator>
    <dc:date>2013-06-17T09:54:14</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.sqlalchemy.user/34919">
    <title>Unique constraints disappearing</title>
    <link>http://permalink.gmane.org/gmane.comp.python.sqlalchemy.user/34919</link>
    <description>&lt;pre&gt;I am trying to do a migration and am running into a problem where my 
unique constraints are being delete with sqlite, but works fine with 
postgres.

It seems that unique constraints are not present in the table, even before 
the migration.

Ex.

engine = create_engine("sqlite:///my.db")
Session = sessionmaker(bind=engine)
s = Session()
metadata = MetaData(s.bind)
t = Table('core__users', metadata, autoload=True, 
autoload_with=metadata.bind)

t.constraints shows the pk constraint, but not the unique constraints.

Is this a limitation with sqlite? Or am I doing something wrong? 

Any help is appreciated.

Thanks

&lt;/pre&gt;</description>
    <dc:creator>Rj Ewing</dc:creator>
    <dc:date>2013-06-15T20:32:49</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.comp.python.sqlalchemy.user">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.python.sqlalchemy.user</link>
  </textinput>
</rdf:RDF>
