diff options
author | Jason Kirtland <jek@discorporate.us> | 2007-10-23 01:47:21 +0000 |
---|---|---|
committer | Jason Kirtland <jek@discorporate.us> | 2007-10-23 01:47:21 +0000 |
commit | d89b2acdd7218ca179844c05be9d8f888d0c7ee6 (patch) | |
tree | 348cf9bda3cef0f75181f103aafe650fc2566b4b /lib/sqlalchemy/engine/base.py | |
parent | 8dfff3888f4ab28487a573cc5617c818c3975c2d (diff) | |
download | sqlalchemy-d89b2acdd7218ca179844c05be9d8f888d0c7ee6.tar.gz |
Added support for dialects that have both sequences and autoincrementing PKs.
Diffstat (limited to 'lib/sqlalchemy/engine/base.py')
-rw-r--r-- | lib/sqlalchemy/engine/base.py | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/lib/sqlalchemy/engine/base.py b/lib/sqlalchemy/engine/base.py index 5f3975684..131f50540 100644 --- a/lib/sqlalchemy/engine/base.py +++ b/lib/sqlalchemy/engine/base.py @@ -12,9 +12,9 @@ higher-level statement-construction, connection-management, execution and result contexts. """ +import StringIO, sys from sqlalchemy import exceptions, schema, util, types, logging from sqlalchemy.sql import expression, visitors -import StringIO, sys class Dialect(object): @@ -79,9 +79,14 @@ class Dialect(object): Indicate whether the dialect properly implements rowcount for ``UPDATE`` and ``DELETE`` statements when executed via executemany. - preexecute_sequences - Indicate if the dialect should pre-execute sequences on primary key columns during an INSERT, - if it's desired that the new row's primary key be available after execution. + preexecute_pk_sequences + Indicate if the dialect should pre-execute sequences on primary key + columns during an INSERT, if it's desired that the new row's primary key + be available after execution. + + supports_pk_autoincrement + Indicates if the dialect should allow the database to passively assign + a primary key column value. """ def create_connect_args(self, url): |