]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/log
thirdparty/sqlalchemy/sqlalchemy.git
18 years agoadded string length to avoid LOB col type in oracle
Mike Bayer [Sun, 22 Oct 2006 05:50:03 +0000 (05:50 +0000)] 
added string length to avoid LOB col type in oracle

18 years agoupdating the cycles test
Mike Bayer [Sun, 22 Oct 2006 05:45:43 +0000 (05:45 +0000)] 
updating the cycles test

18 years agoupdates to oracle
Mike Bayer [Sun, 22 Oct 2006 05:02:11 +0000 (05:02 +0000)] 
updates to oracle
added more ordering to schema collections for better predictability

18 years agomisc
Mike Bayer [Sun, 22 Oct 2006 03:13:50 +0000 (03:13 +0000)] 
misc

18 years agodocstring
Mike Bayer [Sun, 22 Oct 2006 03:07:01 +0000 (03:07 +0000)] 
docstring

18 years ago.
Mike Bayer [Sun, 22 Oct 2006 02:06:43 +0000 (02:06 +0000)] 
.

18 years agomore on non-threadsafeness
Mike Bayer [Sun, 22 Oct 2006 02:05:14 +0000 (02:05 +0000)] 
more on non-threadsafeness

18 years agodocs about objects not being threadsafe
Mike Bayer [Sun, 22 Oct 2006 01:44:11 +0000 (01:44 +0000)] 
docs about objects not being threadsafe

18 years agorenamed Column/ColumnClause "hidden" to "_is_oid"
Mike Bayer [Sun, 22 Oct 2006 01:21:27 +0000 (01:21 +0000)] 
renamed Column/ColumnClause "hidden" to "_is_oid"

18 years agoadded __getattr__() proxy to TypeDecorator
Mike Bayer [Sun, 22 Oct 2006 00:42:43 +0000 (00:42 +0000)] 
added __getattr__() proxy to TypeDecorator

18 years ago- attributes module and test suite moves underneath 'orm' package
Mike Bayer [Sun, 22 Oct 2006 00:24:26 +0000 (00:24 +0000)] 
- attributes module and test suite moves underneath 'orm' package
- fixed table comparison example in metadata.txt
- docstrings all over the place
- renamed mapper _getattrbycolumn/_setattrbycolumn to get_attr_by_column,set_attr_by_column
- removed frommapper parameter from populate_instance().  the two operations can be performed separately
- fix to examples/adjacencytree/byroot_tree.py to fire off lazy loaders upon load, to reduce query calling
- added get(), get_by(), load() to MapperExtension
- re-implemented ExtensionOption (called by extension() function)
- redid _ExtensionCarrier to function dynamically based on __getattribute__
- added logging to attributes package, indicating the execution of a lazy callable
- going to close [ticket:329]

18 years ago- docstring on polymorphic_mapping
Mike Bayer [Sat, 21 Oct 2006 23:15:13 +0000 (23:15 +0000)] 
- docstring on polymorphic_mapping
- applied Simon Wittber's ActiveMapper version_id_col patch for [ticket:348]

18 years agore-implemented extension option
Mike Bayer [Sat, 21 Oct 2006 23:04:36 +0000 (23:04 +0000)] 
re-implemented extension option

18 years agotweak for Table.create() not having a return value
Mike Bayer [Sat, 21 Oct 2006 22:38:40 +0000 (22:38 +0000)] 
tweak for Table.create() not having a return value

18 years agough, restored brackets
Mike Bayer [Sat, 21 Oct 2006 21:56:40 +0000 (21:56 +0000)] 
ugh, restored brackets

18 years agodocstrings
Mike Bayer [Sat, 21 Oct 2006 21:55:18 +0000 (21:55 +0000)] 
docstrings

18 years agotook out unused formatting
Mike Bayer [Sat, 21 Oct 2006 21:20:01 +0000 (21:20 +0000)] 
took out unused formatting

18 years agotake those 2.4 generators out....
Mike Bayer [Sat, 21 Oct 2006 21:10:28 +0000 (21:10 +0000)] 
take those 2.4 generators out....

18 years agomerge of new documentation generation system
Mike Bayer [Sat, 21 Oct 2006 20:57:10 +0000 (20:57 +0000)] 
merge of new documentation generation system

18 years agosome docstring stuff
Mike Bayer [Fri, 20 Oct 2006 22:45:55 +0000 (22:45 +0000)] 
some docstring stuff

18 years agofixed pg reflection of timezones
Mike Bayer [Fri, 20 Oct 2006 20:49:16 +0000 (20:49 +0000)] 
fixed pg reflection of timezones

18 years agogot linking of classes to work. but what a mess the doc code is now.
Mike Bayer [Fri, 20 Oct 2006 18:46:26 +0000 (18:46 +0000)] 
got linking of classes to work.  but what a mess the doc code is now.

18 years agomore doc
Mike Bayer [Fri, 20 Oct 2006 15:50:26 +0000 (15:50 +0000)] 
more doc

18 years agodev
Mike Bayer [Fri, 20 Oct 2006 15:38:31 +0000 (15:38 +0000)] 
dev

18 years agofix for sqlite refection of names with weird quotes around them in the DDL which...
Mike Bayer [Thu, 19 Oct 2006 23:01:14 +0000 (23:01 +0000)] 
fix for sqlite refection of names with weird quotes around them in the DDL which seem to hang around

18 years ago- cleanup to the last commit
Mike Bayer [Thu, 19 Oct 2006 07:20:52 +0000 (07:20 +0000)] 
- cleanup to the last commit
- added contains_eager() MapperOption, used in conjunction with
instances() to specify properties that should be eagerly loaded
from the result set, using their plain column names by default, or translated
given an custom row-translation function. [ticket:347].

18 years agoprogress on [ticket:329]
Mike Bayer [Thu, 19 Oct 2006 07:02:04 +0000 (07:02 +0000)] 
progress on [ticket:329]

18 years agovarious huge fixes from [ticket:330], thanks to Lele Gaifax
Mike Bayer [Thu, 19 Oct 2006 05:03:01 +0000 (05:03 +0000)] 
various huge fixes from [ticket:330], thanks to Lele Gaifax

18 years agofixed __repr__ style to be inline with python style guide [ticket:341]
Mike Bayer [Thu, 19 Oct 2006 04:55:34 +0000 (04:55 +0000)] 
fixed __repr__ style to be inline with python style guide [ticket:341]

18 years ago- [ticket:346], session closing the connection on flush
Mike Bayer [Thu, 19 Oct 2006 02:52:31 +0000 (02:52 +0000)] 
- [ticket:346], session closing the connection on flush
- added unicode assertion for sqlite

18 years agoif type is None it will be propigated from a ForeignKey
Mike Bayer [Tue, 17 Oct 2006 18:29:25 +0000 (18:29 +0000)] 
if type is None it will be propigated from a ForeignKey

18 years agotypo
Mike Bayer [Tue, 17 Oct 2006 18:12:00 +0000 (18:12 +0000)] 
typo

18 years agosynonym does not create the proxying behavior unless the flag 'proxy=True' is set up
Mike Bayer [Tue, 17 Oct 2006 18:11:21 +0000 (18:11 +0000)] 
synonym does not create the proxying behavior unless the flag 'proxy=True' is set up

18 years agorestored "synonym" property
Mike Bayer [Tue, 17 Oct 2006 18:05:32 +0000 (18:05 +0000)] 
restored "synonym" property

18 years agolazy clause generation can handle comparisons of column-containing expressions such...
Mike Bayer [Tue, 17 Oct 2006 11:39:53 +0000 (11:39 +0000)] 
lazy clause generation can handle comparisons of column-containing expressions such as functions, within a limited scope

18 years agook, TableClause should be public
Mike Bayer [Tue, 17 Oct 2006 02:09:31 +0000 (02:09 +0000)] 
ok, TableClause should be public

18 years agoreorganizing classnames a bit, flagging "private" classes in the sql package,
Mike Bayer [Tue, 17 Oct 2006 02:03:00 +0000 (02:03 +0000)] 
reorganizing classnames a bit, flagging "private" classes in the sql package,
getting the generated docs to look a little nicer.
fixes to extensions, sqlsoup etc. to be compatible with recent API tweaks

18 years agolatest markdown, added "bold link" style to doc generator
Mike Bayer [Tue, 17 Oct 2006 01:23:38 +0000 (01:23 +0000)] 
latest markdown, added "bold link" style to doc generator

18 years ago- added "column_prefix=None" argument to mapper; prepends the
Mike Bayer [Mon, 16 Oct 2006 23:34:23 +0000 (23:34 +0000)] 
- added "column_prefix=None" argument to mapper; prepends the
given string (typically '_') to column-based attributes automatically
set up from the mapper's Table

18 years agoquote function names
Mike Bayer [Mon, 16 Oct 2006 18:16:57 +0000 (18:16 +0000)] 
quote function names

18 years agostrings and unicodes are compared via == rather than 'is'.
Mike Bayer [Mon, 16 Oct 2006 17:20:15 +0000 (17:20 +0000)] 
strings and unicodes are compared via == rather than 'is'.
TypeDecorator uses underlying impl for mutator/comparison functions by default

18 years agodocstrings etc
Mike Bayer [Mon, 16 Oct 2006 02:26:45 +0000 (02:26 +0000)] 
docstrings etc

18 years agoapparently re.S makes things go b00m
Mike Bayer [Mon, 16 Oct 2006 01:32:50 +0000 (01:32 +0000)] 
apparently re.S makes things go b00m

18 years agotweaks...
Mike Bayer [Mon, 16 Oct 2006 00:57:29 +0000 (00:57 +0000)] 
tweaks...

18 years agode-cruftification
Mike Bayer [Mon, 16 Oct 2006 00:37:53 +0000 (00:37 +0000)] 
de-cruftification

18 years agodoc tweaks
Mike Bayer [Sun, 15 Oct 2006 23:40:33 +0000 (23:40 +0000)] 
doc tweaks

18 years agodev
Mike Bayer [Sun, 15 Oct 2006 23:10:37 +0000 (23:10 +0000)] 
dev

18 years agodoc stuff regarding engine strategies
Mike Bayer [Sun, 15 Oct 2006 23:05:07 +0000 (23:05 +0000)] 
doc stuff regarding engine strategies

18 years ago- ForeignKey(Constraint) supports "use_alter=True", to create/drop a foreign key
Mike Bayer [Sun, 15 Oct 2006 00:07:06 +0000 (00:07 +0000)] 
- ForeignKey(Constraint) supports "use_alter=True", to create/drop a foreign key
via ALTER.  this allows circular foreign key relationships to be set up.

18 years agofixup of the tutorial, doc tester with the new logging stuff
Mike Bayer [Sat, 14 Oct 2006 22:22:53 +0000 (22:22 +0000)] 
fixup of the tutorial, doc tester with the new logging stuff

18 years ago- a fair amount of cleanup to the schema package, removal of ambiguous
Mike Bayer [Sat, 14 Oct 2006 21:58:04 +0000 (21:58 +0000)] 
- a fair amount of cleanup to the schema package, removal of ambiguous
methods, methods that are no longer needed.  slightly more constrained
useage, greater emphasis on explicitness.
- table_iterator signature fixup, includes fix for [ticket:288]
- the "primary_key" attribute of Table and other selectables becomes
a setlike ColumnCollection object; is no longer ordered or numerically
indexed.  a comparison clause between two pks that are derived from the
same underlying tables (i.e. such as two Alias objects) can be generated
via table1.primary_key==table2.primary_key
- append_item() methods removed from Table and Column; preferably
construct Table/Column/related objects inline, but if needed use
append_column(), append_foreign_key(), append_constraint(), etc.
- table.create() no longer returns the Table object, instead has no
return value.  the usual case is that tables are created via metadata,
which is preferable since it will handle table dependencies.
- added UniqueConstraint (goes at Table level), CheckConstraint
(goes at Table or Column level) fixes [ticket:217]
- index=False/unique=True on Column now creates a UniqueConstraint,
index=True/unique=False creates a plain Index,
index=True/unique=True on Column creates a unique Index.  'index'
and 'unique' keyword arguments to column are now boolean only; for
explcit names and groupings of indexes or unique constraints, use the
UniqueConstraint/Index constructs explicitly.
- relationship of Metadata/Table/SchemaGenerator/Dropper has been
improved so that the schemavisitor receives the metadata object
for greater control over groupings of creates/drops.
- added "use_alter" argument to ForeignKey, ForeignKeyConstraint,
but it doesnt do anything yet.  will utilize new generator/dropper
behavior to implement.

18 years agoa simplification to syncrule generation, which also allows more flexible configuration
Mike Bayer [Sat, 14 Oct 2006 07:57:12 +0000 (07:57 +0000)] 
a simplification to syncrule generation, which also allows more flexible configuration
of which columns are to be involved in the synchronization via foreignkey property.
foreignkey param is a little more important now and should have its role clarified
particularly for self-referential mappers.

18 years agomake OrderedDict consructor, update more dict-like
Jonathan Ellis [Sat, 14 Oct 2006 03:41:36 +0000 (03:41 +0000)] 
make OrderedDict consructor, update more dict-like

18 years ago- remove spurious semicomma from Firebird SQL statement (Lele Gaifax)
Mike Bayer [Fri, 13 Oct 2006 16:58:55 +0000 (16:58 +0000)] 
- remove spurious semicomma from Firebird SQL statement (Lele Gaifax)

18 years ago- sync checks destination column for primary key status, will not set it to None...
Mike Bayer [Fri, 13 Oct 2006 16:38:21 +0000 (16:38 +0000)] 
- sync checks destination column for primary key status, will not set it to None in that case
- dependency non-passively loads child items for many-to-one post update check

18 years agoadded 'ntext' reflected type
Mike Bayer [Fri, 13 Oct 2006 02:25:45 +0000 (02:25 +0000)] 
added 'ntext' reflected type

18 years agosome cleanup submitted by Lele Galifax
Mike Bayer [Fri, 13 Oct 2006 02:02:25 +0000 (02:02 +0000)] 
some cleanup submitted by Lele Galifax

18 years agoadded docstrings for url, added to compiled documentation
Mike Bayer [Thu, 12 Oct 2006 22:12:39 +0000 (22:12 +0000)] 
added docstrings for url, added to compiled documentation

18 years agosome logging tweaks....its a little squirrely
Mike Bayer [Thu, 12 Oct 2006 18:01:11 +0000 (18:01 +0000)] 
some logging tweaks....its a little squirrely

18 years agooops, double row echo removed
Mike Bayer [Thu, 12 Oct 2006 17:06:48 +0000 (17:06 +0000)] 
oops, double row echo removed

18 years agoadded debug-level row echoing to RowProxy (moved from ResultProxy)
Mike Bayer [Thu, 12 Oct 2006 17:05:47 +0000 (17:05 +0000)] 
added debug-level row echoing to RowProxy (moved from ResultProxy)

18 years ago - ResultProxy.fetchall() internally uses DBAPI fetchall() for better efficiency,
Mike Bayer [Thu, 12 Oct 2006 17:02:12 +0000 (17:02 +0000)] 
  - ResultProxy.fetchall() internally uses DBAPI fetchall() for better efficiency,
    added to mapper iteration as well (courtesy Michael Twomey)

18 years ago- fixes to Date/Time (SLDate/SLTime) types; works as good as postgres
Mike Bayer [Thu, 12 Oct 2006 01:12:17 +0000 (01:12 +0000)] 
- fixes to Date/Time (SLDate/SLTime) types; works as good as postgres
  now [ticket:335]

18 years ago_sort_tables uses local tables [ticket:322]
Mike Bayer [Thu, 12 Oct 2006 00:57:28 +0000 (00:57 +0000)] 
_sort_tables uses local tables [ticket:322]

18 years agoadded PGBigInteger type
Mike Bayer [Wed, 11 Oct 2006 19:48:52 +0000 (19:48 +0000)] 
added PGBigInteger type

18 years agoremove unused set
Mike Bayer [Sun, 8 Oct 2006 22:05:26 +0000 (22:05 +0000)] 
remove unused set

18 years agodont create dependency processor if viewonly=True
Mike Bayer [Sun, 8 Oct 2006 21:17:54 +0000 (21:17 +0000)] 
dont create dependency processor if viewonly=True

18 years agologging of syncrules
Mike Bayer [Sun, 8 Oct 2006 20:38:03 +0000 (20:38 +0000)] 
logging of syncrules

18 years agomore adjustments to #321
Mike Bayer [Sun, 8 Oct 2006 20:24:30 +0000 (20:24 +0000)] 
more adjustments to #321

18 years agoadd table name to save_obj log
Mike Bayer [Sun, 8 Oct 2006 20:05:37 +0000 (20:05 +0000)] 
add table name to save_obj log

18 years agorow-switch test should be per-instance, not per table per instance
Mike Bayer [Sun, 8 Oct 2006 19:56:29 +0000 (19:56 +0000)] 
row-switch test should be per-instance, not per table per instance

18 years agoadded correct insert ordering
Mike Bayer [Sun, 8 Oct 2006 19:38:56 +0000 (19:38 +0000)] 
added correct insert ordering

18 years ago- mapper.save_obj() now functions across all mappers in its polymorphic
Mike Bayer [Sun, 8 Oct 2006 19:30:00 +0000 (19:30 +0000)] 
- mapper.save_obj() now functions across all mappers in its polymorphic
series, UOWTask calls mapper appropriately in this manner
- polymorphic mappers (i.e. using inheritance) now produces INSERT
statements in order of tables across all inherited classes
[ticket:321]

18 years agomore fixup to self referential composite primary key mappings
Mike Bayer [Sun, 8 Oct 2006 03:16:38 +0000 (03:16 +0000)] 
more fixup to self referential composite primary key mappings

18 years agothis test works better with session clears in between
Mike Bayer [Sun, 8 Oct 2006 02:51:30 +0000 (02:51 +0000)] 
this test works better with session clears in between

18 years ago- the "foreign_key" attribute on Column and ColumnElement in general
Mike Bayer [Sun, 8 Oct 2006 02:46:40 +0000 (02:46 +0000)] 
- the "foreign_key" attribute on Column and ColumnElement in general
    is deprecated, in favor of the "foreign_keys" list/set-based attribute,
    which takes into account multiple foreign keys on one column.
    "foreign_key" will return the first element in the "foreign_keys" list/set
    or None if the list is empty.
- added a user test to the relationships test, testing various new things this
change allows

18 years agoassorted firebird fixes from Lele Gaifax
Mike Bayer [Sat, 7 Oct 2006 00:54:14 +0000 (00:54 +0000)] 
assorted firebird fixes from Lele Gaifax

18 years agosome cleanup
Mike Bayer [Sat, 7 Oct 2006 00:50:14 +0000 (00:50 +0000)] 
some cleanup

18 years agoimproved exceptions for closed connections
Mike Bayer [Sat, 7 Oct 2006 00:49:44 +0000 (00:49 +0000)] 
improved exceptions for closed connections

18 years agofix "no engine found" to raise explicit error, [ticket:326]
Mike Bayer [Fri, 6 Oct 2006 15:50:27 +0000 (15:50 +0000)] 
fix "no engine found" to raise explicit error, [ticket:326]

18 years agorollback last change until we figure out how to check for engine without exception
Mike Bayer [Fri, 6 Oct 2006 15:38:12 +0000 (15:38 +0000)] 
rollback last change until we figure out how to check for engine without exception

18 years agobetter error message for unconnected DynamicMetaData [ticket:326]
Mike Bayer [Fri, 6 Oct 2006 15:34:08 +0000 (15:34 +0000)] 
better error message for unconnected DynamicMetaData [ticket:326]

18 years agoadd compound-where example
Jonathan Ellis [Thu, 5 Oct 2006 16:27:33 +0000 (16:27 +0000)] 
add compound-where example

18 years ago[ticket:324]
Mike Bayer [Thu, 5 Oct 2006 01:39:44 +0000 (01:39 +0000)] 
[ticket:324]

18 years agor/m sqlsoup.NoSuchTableError (SA proper takes care of that now)
Jonathan Ellis [Wed, 4 Oct 2006 22:03:15 +0000 (22:03 +0000)] 
r/m sqlsoup.NoSuchTableError (SA proper takes care of that now)
add sqlsoup.PKNotFoundError

18 years agocontinued cleanup
Mike Bayer [Wed, 4 Oct 2006 00:09:18 +0000 (00:09 +0000)] 
continued cleanup

18 years agovarious cleanup etc.
Mike Bayer [Wed, 4 Oct 2006 00:00:22 +0000 (00:00 +0000)] 
various cleanup etc.

18 years ago - "custom list classes" is now implemented via the "collection_class"
Mike Bayer [Tue, 3 Oct 2006 23:38:48 +0000 (23:38 +0000)] 
 - "custom list classes" is now implemented via the "collection_class"
    keyword argument to relation().  the old way still works but is
    deprecated [ticket:212]

18 years ago - Function objects know what to do in a FROM clause now. their
Mike Bayer [Tue, 3 Oct 2006 23:00:04 +0000 (23:00 +0000)] 
 - Function objects know what to do in a FROM clause now.  their
    behavior should be the same, except now you can also do things like
    select(['*'], from_obj=[func.my_function()]) to get multiple
    columns from the result, or even use sql.column() constructs to name the
    return columns [ticket:172].  generally only postgres understands the
    syntax (and possibly oracle).

18 years agoformatting fixup, etc.
Mike Bayer [Tue, 3 Oct 2006 22:56:54 +0000 (22:56 +0000)] 
formatting fixup, etc.

18 years ago- added auto_setinputsizes=False to oracle dialect. if true, all executions will...
Mike Bayer [Tue, 3 Oct 2006 21:47:48 +0000 (21:47 +0000)] 
- added auto_setinputsizes=False to oracle dialect.  if true, all executions will get setinputsizes called ahead of time.
- some tweaks to the types unittest for oracle.  oracle types still need lots more work.

18 years agofixed super call
Mike Bayer [Tue, 3 Oct 2006 21:12:42 +0000 (21:12 +0000)] 
fixed super call

18 years ago- removed "extension()" MapperOption
Mike Bayer [Tue, 3 Oct 2006 21:08:14 +0000 (21:08 +0000)] 
- removed "extension()" MapperOption
- TypeEngine objects can report on DBAPI types
- added set_input_sizes() to default dialect
- oracle dialect gets Timestamp type added, may need to call
set_input_sizes() to make it work with sub-second resolution [ticket:304]

18 years ago- merged loader_strategies branch into trunk.
Mike Bayer [Tue, 3 Oct 2006 16:47:14 +0000 (16:47 +0000)] 
- merged loader_strategies branch into trunk.
- this is a wide refactoring to "attribute loader" and "options" architectures.
ColumnProperty and PropertyLoader define their loading behaivor via switchable
"strategies", and MapperOptions no longer use mapper/property copying
in order to function; they are instead propigated via QueryContext
and SelectionContext objects at query/instnaces time.
All of the copying of mappers and properties that was used to handle
inheritance as well as options() has been removed and the structure
of mappers and properties is much simpler and more clearly laid out.

18 years ago- added profiling to massave
Mike Bayer [Sun, 1 Oct 2006 23:15:53 +0000 (23:15 +0000)] 
- added profiling to massave
- adjusted the formatting for per-instance loggers to limit the number
of loggers that get created in memory.

18 years agoadjustment to default timeout
Mike Bayer [Sun, 1 Oct 2006 23:14:27 +0000 (23:14 +0000)] 
adjustment to default timeout

18 years agoedits
Mike Bayer [Sun, 1 Oct 2006 16:53:19 +0000 (16:53 +0000)] 
edits

18 years agofurther str() on values that may come back as unicode
Mike Bayer [Sun, 1 Oct 2006 16:41:49 +0000 (16:41 +0000)] 
further str() on values that may come back as unicode

18 years ago[ticket:318] has a user receiving back a unicode from a SHOW CREATE TABLE for some...
Mike Bayer [Sun, 1 Oct 2006 16:35:45 +0000 (16:35 +0000)] 
[ticket:318] has a user receiving back a unicode from a SHOW CREATE TABLE for some reason

18 years ago - fixed condition that occurred during reflection when a primary key
Mike Bayer [Sat, 30 Sep 2006 16:26:52 +0000 (16:26 +0000)] 
 - fixed condition that occurred during reflection when a primary key
    column was explciitly overridden, where the PrimaryKeyConstraint would
    get both the reflected and the programmatic column doubled up