<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/sqlalchemy.git/lib, branch pr/20</title>
<subtitle>github.com: zzzeek/sqlalchemy.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/sqlalchemy.git/'/>
<entry>
<title>mapping multiple tables for one class</title>
<updated>2013-08-01T14:24:31+00:00</updated>
<author>
<name>biner</name>
<email>huanghuibin@gmail.com</email>
</author>
<published>2013-08-01T14:24:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/sqlalchemy.git/commit/?id=1a090caaf459eb49f939c0cf385a7b02331b67f3'/>
<id>1a090caaf459eb49f939c0cf385a7b02331b67f3</id>
<content type='text'>
I'm doing something to finish the horizontal shard job.
The examle is sharding to multiple database . And i just do it for
multipls tables in one database.

there is many tables just like  msg_00,msg_01..... msg_99
defind  the class like  Msg()  map the tables .

===============================
m = Msg
number = int(uid)%100
tablename = 'msg_%02d'%(number)
m.__uuid__ = uid
m.__table__.name = tablename
===============================
now  "m" mapping the table msg_xx .
It works in the select sql.
but fail in the session.add(newmessage) because the sqlalchemy has cache
connection .  event one table is  Table(msg_00) and another is Table
(msg_01)

So, i edit the memo key .   then there is diff  insert object .

------------------
It's simple change and useful. It‘s safe for the old version .
sorry for my poor english.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
I'm doing something to finish the horizontal shard job.
The examle is sharding to multiple database . And i just do it for
multipls tables in one database.

there is many tables just like  msg_00,msg_01..... msg_99
defind  the class like  Msg()  map the tables .

===============================
m = Msg
number = int(uid)%100
tablename = 'msg_%02d'%(number)
m.__uuid__ = uid
m.__table__.name = tablename
===============================
now  "m" mapping the table msg_xx .
It works in the select sql.
but fail in the session.add(newmessage) because the sqlalchemy has cache
connection .  event one table is  Table(msg_00) and another is Table
(msg_01)

So, i edit the memo key .   then there is diff  insert object .

------------------
It's simple change and useful. It‘s safe for the old version .
sorry for my poor english.
</pre>
</div>
</content>
</entry>
<entry>
<title>Updates to MySQL reserved words for versions 5.5, 5.6, courtesy</title>
<updated>2013-08-01T01:05:33+00:00</updated>
<author>
<name>Mike Bayer</name>
<email>mike_mp@zzzcomputing.com</email>
</author>
<published>2013-08-01T01:05:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/sqlalchemy.git/commit/?id=25839c064d995b3664f0cef01768961ac5e4807f'/>
<id>25839c064d995b3664f0cef01768961ac5e4807f</id>
<content type='text'>
Hanno Schlichting.  Also in 0.8.3, 0.7.11.
[ticket:2791]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Hanno Schlichting.  Also in 0.8.3, 0.7.11.
[ticket:2791]
</pre>
</div>
</content>
</entry>
<entry>
<title>fix missing comma</title>
<updated>2013-07-31T23:07:13+00:00</updated>
<author>
<name>Mike Bayer</name>
<email>mike_mp@zzzcomputing.com</email>
</author>
<published>2013-07-31T23:07:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/sqlalchemy.git/commit/?id=5d4094ba739b35775e6e4810b730fab510de7707'/>
<id>5d4094ba739b35775e6e4810b730fab510de7707</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>- update ORM event docs to include that you can listen on an unmapped base,</title>
<updated>2013-07-31T23:05:58+00:00</updated>
<author>
<name>Mike Bayer</name>
<email>mike_mp@zzzcomputing.com</email>
</author>
<published>2013-07-31T23:05:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/sqlalchemy.git/commit/?id=c6fdfeed00e25988115254ee5ea8c05253bdbd9f'/>
<id>c6fdfeed00e25988115254ee5ea8c05253bdbd9f</id>
<content type='text'>
[ticket:2777]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
[ticket:2777]
</pre>
</div>
</content>
</entry>
<entry>
<title>- Fixed bug in common table expression system where if the CTE were</title>
<updated>2013-07-31T22:42:58+00:00</updated>
<author>
<name>Mike Bayer</name>
<email>mike_mp@zzzcomputing.com</email>
</author>
<published>2013-07-31T22:42:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/sqlalchemy.git/commit/?id=8b0f4d2a92c54cde9fefa8182bbd1bb503071d49'/>
<id>8b0f4d2a92c54cde9fefa8182bbd1bb503071d49</id>
<content type='text'>
used only as an ``alias()`` construct, it would not render using the
WITH keyword.  Also in 0.8.3, 0.7.11.
[ticket:2783]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
used only as an ``alias()`` construct, it would not render using the
WITH keyword.  Also in 0.8.3, 0.7.11.
[ticket:2783]
</pre>
</div>
</content>
</entry>
<entry>
<title>- this collection can be None on cleanup, so check for that</title>
<updated>2013-07-27T22:41:34+00:00</updated>
<author>
<name>Mike Bayer</name>
<email>mike_mp@zzzcomputing.com</email>
</author>
<published>2013-07-27T22:41:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/sqlalchemy.git/commit/?id=effad0a4e33d40940ca669f4f88c7cb9961db4da'/>
<id>effad0a4e33d40940ca669f4f88c7cb9961db4da</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>- fix issue in join rewriting whereby we need to ensure the .key and .name</title>
<updated>2013-07-27T21:05:01+00:00</updated>
<author>
<name>Mike Bayer</name>
<email>mike_mp@zzzcomputing.com</email>
</author>
<published>2013-07-27T21:05:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/sqlalchemy.git/commit/?id=d64b09b15c703d7e100931818976822256f6beda'/>
<id>d64b09b15c703d7e100931818976822256f6beda</id>
<content type='text'>
are transferred correctly for when .key is present; tests have been enhanced
to test this condition for render, result map construction, statement
execution.  [ticket:2790]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
are transferred correctly for when .key is present; tests have been enhanced
to test this condition for render, result map construction, statement
execution.  [ticket:2790]
</pre>
</div>
</content>
</entry>
<entry>
<title>- The C extensions are ported to Python 3 and will build under</title>
<updated>2013-07-27T00:50:18+00:00</updated>
<author>
<name>Mike Bayer</name>
<email>mike_mp@zzzcomputing.com</email>
</author>
<published>2013-07-27T00:50:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/sqlalchemy.git/commit/?id=a6adc0a53ebfeeea23ec63655629c5b6831a77d0'/>
<id>a6adc0a53ebfeeea23ec63655629c5b6831a77d0</id>
<content type='text'>
any supported CPython 2 or 3 environment. [ticket:2161]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
any supported CPython 2 or 3 environment. [ticket:2161]
</pre>
</div>
</content>
</entry>
<entry>
<title>- add event.contains() function to the event package, returns True</title>
<updated>2013-07-26T23:11:33+00:00</updated>
<author>
<name>Mike Bayer</name>
<email>mike_mp@zzzcomputing.com</email>
</author>
<published>2013-07-26T23:11:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/sqlalchemy.git/commit/?id=c903f071a82ce8784a4aa7f5e0d4264443e1944b'/>
<id>c903f071a82ce8784a4aa7f5e0d4264443e1944b</id>
<content type='text'>
if the given target/event/fn is set up to listen.
- repair mutable package which is doing some conditional event listening
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
if the given target/event/fn is set up to listen.
- repair mutable package which is doing some conditional event listening
</pre>
</div>
</content>
</entry>
<entry>
<title>- Removal of event listeners is now implemented.    The feature is</title>
<updated>2013-07-26T18:21:58+00:00</updated>
<author>
<name>Mike Bayer</name>
<email>mike_mp@zzzcomputing.com</email>
</author>
<published>2013-07-26T18:21:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/sqlalchemy.git/commit/?id=4505425a38b079a8e2a59fdbe31bc033de25e871'/>
<id>4505425a38b079a8e2a59fdbe31bc033de25e871</id>
<content type='text'>
provided via the :func:`.event.remove` function.
[ticket:2268]
- reorganization of event.py module into a package; with the addition of the
docstring work as well as the new registry for removal, there's a lot more code now.
the package separates concerns and provides a top-level doc for each subsection
of functionality
- the remove feature works by providing the EventKey object which associates
the user-provided arguments to listen() with a global, weak-referencing registry.
This registry stores a collection of _ListenerCollection and _DispatchDescriptor
objects associated with each set of arguments, as well as the wrapped function
which was applied to that collection.  The EventKey can then be recreated for
a removal, all the _ListenerCollection and _DispatchDescriptor objects are located,
and the correct wrapped function is removed from each one.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
provided via the :func:`.event.remove` function.
[ticket:2268]
- reorganization of event.py module into a package; with the addition of the
docstring work as well as the new registry for removal, there's a lot more code now.
the package separates concerns and provides a top-level doc for each subsection
of functionality
- the remove feature works by providing the EventKey object which associates
the user-provided arguments to listen() with a global, weak-referencing registry.
This registry stores a collection of _ListenerCollection and _DispatchDescriptor
objects associated with each set of arguments, as well as the wrapped function
which was applied to that collection.  The EventKey can then be recreated for
a removal, all the _ListenerCollection and _DispatchDescriptor objects are located,
and the correct wrapped function is removed from each one.
</pre>
</div>
</content>
</entry>
</feed>
