Commit Graph

2307 Commits

Author SHA1 Message Date
Mike Bayer 9497e73890 ugh, restored brackets 2006-10-21 21:56:40 +00:00
Mike Bayer b78c493702 docstrings 2006-10-21 21:55:18 +00:00
Mike Bayer 3323e3f5dc took out unused formatting 2006-10-21 21:20:01 +00:00
Mike Bayer 6049562de7 take those 2.4 generators out.... 2006-10-21 21:10:28 +00:00
Mike Bayer 8657f3bb9b merge of new documentation generation system 2006-10-21 20:57:10 +00:00
Mike Bayer f2b58b7977 some docstring stuff 2006-10-20 22:45:55 +00:00
Mike Bayer 705ee2cfa3 got linking of classes to work. but what a mess the doc code is now. 2006-10-20 18:46:26 +00:00
Mike Bayer 987bdd45e7 fixed __repr__ style to be inline with python style guide [ticket:341] 2006-10-19 04:55:34 +00:00
Mike Bayer 0a1b25606d typo 2006-10-17 18:12:00 +00:00
Mike Bayer 4d2be119f0 synonym does not create the proxying behavior unless the flag 'proxy=True' is set up 2006-10-17 18:11:21 +00:00
Mike Bayer 180d374199 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
2006-10-17 02:03:00 +00:00
Mike Bayer bc698d778d latest markdown, added "bold link" style to doc generator 2006-10-17 01:23:38 +00:00
Mike Bayer 61de5d0c9a quote function names 2006-10-16 18:16:57 +00:00
Mike Bayer 738a210812 apparently re.S makes things go b00m 2006-10-16 01:32:50 +00:00
Mike Bayer 8e1cec1fce tweaks... 2006-10-16 00:57:29 +00:00
Mike Bayer 0eb3b4ce93 doc tweaks 2006-10-15 23:40:33 +00:00
Mike Bayer add4f77eb4 dev 2006-10-15 23:10:37 +00:00
Mike Bayer 866e1fb059 doc stuff regarding engine strategies 2006-10-15 23:05:07 +00:00
Mike Bayer 6b40f50b87 fixup of the tutorial, doc tester with the new logging stuff 2006-10-14 22:22:53 +00:00
Mike Bayer 8340006dd7 - 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.
2006-10-14 21:58:04 +00:00
Mike Bayer 110846f601 added docstrings for url, added to compiled documentation 2006-10-12 22:12:39 +00:00
Mike Bayer 4c23534039 various cleanup etc. 2006-10-04 00:00:22 +00:00
Mike Bayer 6f1eb443a3 - "custom list classes" is now implemented via the "collection_class"
keyword argument to relation().  the old way still works but is
    deprecated [ticket:212]
2006-10-03 23:38:48 +00:00
Mike Bayer 8d3a76aac9 adjustment to default timeout 2006-10-01 23:14:27 +00:00
Mike Bayer d117a15020 - internal refactoring to mapper instances() method to use a
SelectionContext object to track state during the operation.
SLIGHT API BREAKAGE: the append_result() and populate_instances()
methods on MapperExtension have a slightly different method signature
now as a result of the change; hoping that these methods are not
in widespread use as of yet.
2006-09-30 04:40:15 +00:00
Mike Bayer 3c19b41b60 - doc edit
- i have no idea what a SynonymProperty was supposed to be for
2006-09-30 03:10:21 +00:00
Mike Bayer 2ca81bb4c7 more edits 2006-09-29 17:19:56 +00:00
Mike Bayer 5dbab063fe rearrangement of docs for [ticket:310] 2006-09-29 15:44:17 +00:00
Mike Bayer a81bd92d6e - specifying joins in the from_obj argument of query.select() will
replace the main table of the query, if the table is somewhere within
the given from_obj.  this makes it possible to produce custom joins and
outerjoins in queries without the main table getting added twice.
[ticket:315]
- added join_to and outerjoin_to transformative methods to SelectResults,
to build up join/outerjoin conditions based on property names. also
added select_from to explicitly set from_obj parameter.
- factored "results" arrays from the mapper test suite and into the
"tables" mapper
- added "viewonly" param to docs
2006-09-27 07:08:26 +00:00
Mike Bayer 46dcf1fa5d doc edits, moved object display in uowdumper to be hex, fixed test runner in parseconnect 2006-09-25 16:22:32 +00:00
Mike Bayer 7daa9e1d6a spelling fix 2006-09-24 20:51:53 +00:00
Mike Bayer 7354979c3d onupdate/ondelete fix 2006-09-23 23:06:54 +00:00
Mike Bayer 7d74fc7785 - added "pickleable" module to test suite to have cPickle-compatible
test objects
- added copy_function, compare_function arguments to InstrumentedAttribute
- added MutableType mixin, copy_value/compare_values methods to TypeEngine,
PickleType
- ColumnProperty and DeferredProperty propigate the TypeEngine copy/compare
methods to the attribute instrumentation
- cleanup of UnitOfWork, removed unused methods
- UnitOfWork "dirty" list is calculated across the total collection of persistent
objects when called, no longer has register_dirty.
- attribute system can still report "modified" status fairly quickly, but does
extra work for InstrumentedAttributes that have detected a "mutable" type where
catching the __set__() event is not enough (i.e. PickleTypes)
- attribute tracking modified to be more intelligent about detecting
changes, particularly with mutable types.  TypeEngine objects now
take a greater role in defining how to compare two scalar instances,
including the addition of a MutableType mixin which is implemented by
PickleType.  unit-of-work now tracks the "dirty" list as an expression
of all persistent objects where the attribute manager detects changes.
The basic issue thats fixed is detecting changes on PickleType
objects, but also generalizes type handling and "modified" object
checking to be more complete and extensible.
2006-09-23 20:26:20 +00:00
Mike Bayer 9047fab83b remove delete-orphan cascade from self referential mappers 2006-09-23 16:37:43 +00:00
Mike Bayer e504454a4c added link 2006-09-05 18:42:43 +00:00
Mike Bayer f2d050180a 0.2.8.. 2006-09-05 17:19:26 +00:00
Mike Bayer 3a4f96e070 revised section on quoting, semanticized headings and table of content lists 2006-09-04 23:02:13 +00:00
Mike Bayer ad8b3c63e0 doc bug [ticket:278] 2006-08-26 20:16:19 +00:00
Mike Bayer 7a15313c9e fixed inaccuracies regarding "connectable" parameter sent to create/drop 2006-08-26 18:55:05 +00:00
Mike Bayer 8260ca2723 - cleanup on connection methods + documentation. custom DBAPI
arguments specified in query string, 'connect_args' argument
to 'create_engine', or custom creation function via 'creator'
function to 'create_engine'.
- added "recycle" argument to Pool, is "pool_recycle" on create_engine,
defaults to 3600 seconds; connections after this age will be closed and
replaced with a new one, to handle db's that automatically close
stale connections [ticket:274]
2006-08-25 16:27:10 +00:00
Mike Bayer 819837884e commit should be outside of the try/except; else when commit fails, rollback gets called which is technically invalid (although SA transaction probably lets it slide...this should also possibly be made more strict) 2006-08-17 18:04:13 +00:00
Mike Bayer 8b313b356e - eesh ! the tutorial doctest was broken for quite some time.
- add_property() method on mapper does a "compile all mappers"
step in case the given property references a non-compiled mapper
(as it did in the case of the tutorial !)
2006-08-15 02:02:47 +00:00
Mike Bayer cfa2864175 0.2.7 prep 2006-08-12 20:19:03 +00:00
Mike Bayer 6975677248 added docs for ON UPDATE/DELETE, identifier quoting 2006-08-12 17:28:59 +00:00
Mike Bayer dde6a5aac0 all create()/drop() calls have a keyword argument of "connectable".
"engine" is deprecated. fixes [ticket:255]
2006-08-09 23:58:07 +00:00
Mike Bayer 2801ced986 improvement over previous changeset:
SingletonThreadPool has a size and does a cleanup pass, so that
only a given number of thread-local connections stay around (needed
for sqlite applications that dispose of threads en masse)
2006-08-05 15:32:00 +00:00
Mike Bayer 2d95e9daec temporary workaround dispose_local() added to SingletonThreadPool
for sqlite applications that dispose of threads en masse
2006-08-05 15:11:52 +00:00
Mike Bayer 9f4c0ec784 removed erroneous "on_update" example for PassiveDefault 2006-07-25 15:33:18 +00:00
Mike Bayer ccd4d8e63d fixed anchor tag 2006-07-24 16:28:31 +00:00
Mike Bayer 98fb8894e3 patch to inheritance section 2006-07-20 00:20:45 +00:00