Re: [sqlalchemy] SQLAlchemy 0.6beta2 released

2010-03-21 Thread Manlio Perillo
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Michael Bayer ha scritto:
 SQLAlchemy 0.6beta2 is now available.This beta may be the last before the 
 0.6.0 final release.   We've hopefully gotten every largish change into the 
 release as possible so that people can test.   0.6 is already running on a 
 number of production servers and is already widely tested on mainstream 
 platforms.
 
 Big new things in this release include:
 

 [...]

Do you plan to implement ticket #877 for the 0.6.0 final release?

What about ticket #1679, for SQL Schema support?



Thanks  Manlio
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkumMJMACgkQscQJ24LbaUTitgCeJXSTpWdcWZDwishGvIScFkm7
C2kAn2OVRHyglzTzad7NI4tExoQ4R7p5
=tRls
-END PGP SIGNATURE-

-- 
You received this message because you are subscribed to the Google Groups 
sqlalchemy group.
To post to this group, send email to sqlalch...@googlegroups.com.
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.



Re: [sqlalchemy] SQLAlchemy 0.6beta2 released

2010-03-21 Thread Michael Trier
Hello,

On Mar 21, 2010, at 10:43 AM, Manlio Perillo wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Michael Bayer ha scritto:
 SQLAlchemy 0.6beta2 is now available.This beta may be the last before 
 the 0.6.0 final release.   We've hopefully gotten every largish change into 
 the release as possible so that people can test.   0.6 is already running on 
 a number of production servers and is already widely tested on mainstream 
 platforms.
 
 Big new things in this release include:
 
 
 [...]
 
 Do you plan to implement ticket #877 for the 0.6.0 final release?
 
 What about ticket #1679, for SQL Schema support?
 

#877 would need some tests to be considered.

The patch doesn't seem to be available for #1679. I guess a result of the new 
server migration.

Michael

-- 
You received this message because you are subscribed to the Google Groups 
sqlalchemy group.
To post to this group, send email to sqlalch...@googlegroups.com.
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.



Re: [sqlalchemy] SQLAlchemy 0.6beta2 released

2010-03-21 Thread Michael Bayer

On Mar 21, 2010, at 10:43 AM, Manlio Perillo wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Michael Bayer ha scritto:
 
 What about ticket #1679, for SQL Schema support?

the patch needs to be re-added.   CREATE SCHEMA / DROP SCHEMA is also not going 
to have any connection to the schema keyword, only to CreateSchema and 
DropSchema.   The bigger picture needs to be considered here - schemas in 
SQLAlchemy are not necessarily schemas in the real world.  On Oracle and 
Sybase, they are usernames.the  schema keyword in SQLA is not really a 
schema - it is only, the keyword that goes before the dot in 
somename.tablename.  that is it.   It may even have several dotted names 
in it (i.e. like dbo.foobar).It will be much easier to accept a patch that 
does not attempt to change what the schema keyword means.   



 
 
 
 Thanks  Manlio
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
 iEYEARECAAYFAkumMJMACgkQscQJ24LbaUTitgCeJXSTpWdcWZDwishGvIScFkm7
 C2kAn2OVRHyglzTzad7NI4tExoQ4R7p5
 =tRls
 -END PGP SIGNATURE-
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 sqlalchemy group.
 To post to this group, send email to sqlalch...@googlegroups.com.
 To unsubscribe from this group, send email to 
 sqlalchemy+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/sqlalchemy?hl=en.
 

-- 
You received this message because you are subscribed to the Google Groups 
sqlalchemy group.
To post to this group, send email to sqlalch...@googlegroups.com.
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.



[sqlalchemy] SQLAlchemy 0.6beta2 released

2010-03-20 Thread Michael Bayer
SQLAlchemy 0.6beta2 is now available.This beta may be the last before the 
0.6.0 final release.   We've hopefully gotten every largish change into the 
release as possible so that people can test.   0.6 is already running on a 
number of production servers and is already widely tested on mainstream 
platforms.

Big new things in this release include:

- dialects for Sybase, as well as MS-SQL against mxODBC and pymssql.   The 
Sybase and mxODBC dialects are still under construction but are largely 
functional.
- optional C extensions which implement ResultProxy internals natively
- seamless Python 3 installation
- a ton of other stuff, summarized in the changelog below

A full summary of all backends and an assessment of their stability can be 
viewed on the site at:

http://www.sqlalchemy.org/docs/dbengine.html#supported-databases

Download SQLAlchemy 0.6beta2 at:

http://www.sqlalchemy.org/download.html


0.6beta2


- py3k
  - Improved the installation/test setup regarding Python 3,
now that Distribute runs on Py3k.   distribute_setup.py
is now included.  See README.py3k for Python 3 installation/
testing instructions.

- orm
  - The official name for the relation() function is now
relationship(), to eliminate confusion over the relational
algebra term.  relation() however will remain available 
in equal capacity for the foreseeable future.  [ticket:1740]

  - Added version_id_generator argument to Mapper, this is a
callable that, given the current value of the version_id_col,
returns the next version number.  Can be used for alternate
versioning schemes such as uuid, timestamps.  [ticket:1692]
  
  - added lockmode kw argument to Session.refresh(), will
pass through the string value to Query the same as  
in with_lockmode(), will also do version check for a 
version_id_col-enabled mapping.

  - Fixed bug whereby calling query(A).join(A.bs).add_entity(B)
in a joined inheritance scenario would double-add B as a 
target and produce an invalid query.  [ticket:1188]

  - Fixed bug in session.rollback() which involved not removing
formerly pending objects from the session before
re-integrating deleted objects, typically occured with
natural primary keys. If there was a primary key conflict
between them, the attach of the deleted would fail
internally. The formerly pending objects are now expunged
first. [ticket:1674]

  - Removed a lot of logging that nobody really cares about,
logging that remains will respond to live changes in the
log level.  No significant overhead is added.  [ticket:1719]

  - Fixed bug in session.merge() which prevented dict-like
collections from merging.

  - session.merge() works with relations that specifically
don't include merge in their cascade options - the target
is ignored completely.

  - session.merge() will not expire existing scalar attributes
on an existing target if the target has a value for that
attribute, even if the incoming merged doesn't have
a value for the attribute.  This prevents unnecessary loads
on existing items.  Will still mark the attr as expired
if the destination doesn't have the attr, though, which
fulfills some contracts of deferred cols.  [ticket:1681]

  - The allow_null_pks flag is now called allow_partial_pks,
defaults to True, acts like it did in 0.5 again.  Except,
it also is implemented within merge() such that a SELECT
won't be issued for an incoming instance with partially
NULL primary key if the flag is False.  [ticket:1680]
  
  - Fixed bug in 0.6-reworked many-to-one optimizations
such that a many-to-one that is against a non-primary key
column on the remote table (i.e. foreign key against a 
UNIQUE column) will pull the old value in from the
database during a change, since if it's in the session
we will need it for proper history/backref accounting,
and we can't pull from the local identity map on a 
non-primary key column. [ticket:1737]

  - fixed internal error which would occur if calling has()
or similar complex expression on a single-table inheritance
relation(). [ticket:1731]

  - query.one() no longer applies LIMIT to the query, this to
ensure that it fully counts all object identities present
in the result, even in the case where joins may conceal
multiple identities for two or more rows.  As a bonus,
one() can now also be called with a query that issued
from_statement() to start with since it no longer modifies
the query.  [ticket:1688]

  - query.get() now returns None if queried for an identifier
that is present in the identity map with a different class 
than the one requested, i.e. when using polymorphic loading.  
[ticket:1727]

  - A major fix in query.join(), when the on clause is an
attribute of an aliased() construct, but there is already
an existing join made out to a