Mike Bayer
ef07d002d7
fix datatypes #2
2008-03-16 19:10:45 +00:00
Mike Bayer
763575246d
fix insert() to have values (supports buildbot's SQLite)
2008-03-16 19:07:22 +00:00
Jason Kirtland
0bb1406bfb
- Fixed descriminator col type for poly test
2008-03-16 18:51:43 +00:00
Jason Kirtland
9e15993083
Issue a warning when a declarative detects a likely trailing comma: foo = Column(foo),
2008-03-15 23:13:35 +00:00
Mike Bayer
288f9d53e3
- the "synonym" function is now directly usable with
...
"declarative". Pass in the decorated property using
the "instrument" keyword argument, e.g.:
somekey = synonym('_somekey', instrument=property(g, s))
- declared_synonym deprecated
2008-03-15 20:18:54 +00:00
Ants Aasma
e15813837f
Session.execute can now find binds from metadata
2008-03-12 21:40:11 +00:00
Mike Bayer
a4003c0883
- fixed bug which was preventing synonym() attributes
...
from being used with inheritance
2008-03-12 21:32:32 +00:00
Mike Bayer
ec89c5ae51
typo
2008-03-12 21:04:19 +00:00
Jason Kirtland
dff5e27c0d
- fixed missing import [ticket:989]
2008-03-12 14:17:15 +00:00
Jonathan Ellis
2396541930
add relate(), entity() methods
2008-03-12 12:11:12 +00:00
Mike Bayer
100338f436
- fixed/covered case when using a False value as a
...
polymorphic discriminator
2008-03-12 03:02:28 +00:00
Mike Bayer
d1326cf549
- when attributes are expired on a pending instance, an
...
error will not be raised when the "refresh" action
is triggered and returns no result
2008-03-12 01:52:36 +00:00
Jason Kirtland
713279c53d
- Retroactive textmate damage control
2008-03-12 00:09:23 +00:00
Jason Kirtland
f58037b0a5
Bump.
2008-03-12 00:07:37 +00:00
Mike Bayer
07d89b09bb
more edits
rel_0_4_4
2008-03-12 00:02:41 +00:00
Mike Bayer
3bcf4e69b9
fix a typo....
2008-03-11 23:52:46 +00:00
Jason Kirtland
35902d0c2a
(Whoops,)
2008-03-11 23:27:30 +00:00
Jason Kirtland
073880269e
- Take broken mysql 4.1 column defaulting into account.
2008-03-11 23:22:44 +00:00
Jason Kirtland
2d1acf1abc
- Don't create implicit DDL column defaults
2008-03-11 23:16:10 +00:00
Jason Kirtland
9f3f2accc8
- increased assert_tabels_equal failure verbosity
2008-03-11 23:11:06 +00:00
Mike Bayer
0cb4ceeb82
filled in some of the types documentation
2008-03-11 20:03:14 +00:00
Mike Bayer
39355cfef7
updated SQL output, fixed String/Text type
2008-03-11 19:51:48 +00:00
Mike Bayer
d910cce949
reflection tests require foreign key reflection support
2008-03-11 19:15:04 +00:00
Ants Aasma
50d476ebca
- fix expunging of orphans with more than one parent
...
- move flush error for orphans from Mapper to UnitOfWork
2008-03-10 20:49:27 +00:00
Mike Bayer
80d52d7a24
remove redundant test_rekey() test method
2008-03-10 20:19:38 +00:00
Jason Kirtland
0ad1aaa388
- Test autoload with a FK override
2008-03-10 19:21:49 +00:00
Jason Kirtland
6eeb43e5c2
- Added a primaryjoin= test
2008-03-10 18:40:36 +00:00
Jason Kirtland
f405880ca3
eh, that __autoload_with__ idea was half baked.
2008-03-10 18:39:12 +00:00
Jason Kirtland
ac13a8445b
- Added __autoload__ = True for declarative
...
- declarative Base.__init__ is pickier about its kwargs
2008-03-10 18:32:07 +00:00
Mike Bayer
79004f1ede
removed the "__main__" code from below
2008-03-10 17:15:51 +00:00
Mike Bayer
88a8cc0c9e
- a new super-small "declarative" extension has been added,
...
which allows Table and mapper() configuration to take place
inline underneath a class declaration. This extension differs
from ActiveMapper and Elixir in that it does not redefine
any SQLAlchemy semantics at all; literal Column, Table
and relation() constructs are used to define the class
behavior and table definition.
2008-03-10 17:14:08 +00:00
Mike Bayer
9d3216d3f3
- relation() can accept a callable for its first argument,
...
which returns the class to be related. This is in place
to assist declarative packages to define relations without
classes yet being in place.
2008-03-10 00:59:51 +00:00
Mike Bayer
4bd956b50f
- dynamic_loader() / lazy="dynamic" now accepts and uses
...
the order_by parameter in the same way in which it works
with relation().
2008-03-09 22:51:55 +00:00
Mike Bayer
9ea6574841
added sanity test for order_by
2008-03-09 18:00:04 +00:00
Jason Kirtland
aa033afeee
Added support for vendor-extended INSERT syntax like INSERT DELAYED INTO
2008-03-07 16:56:37 +00:00
Mike Bayer
90a7553b5b
weed whacking is not Nones
2008-03-07 03:26:48 +00:00
Mike Bayer
f621df6ce6
- moved property._is_self_referential() to be more generalized; returns True for any mapper.isa() relationship between parent and child, and indicates that aliasing should be used for any join/correlation across the relation. allows joins/any()/has() to work with inherited mappers referencing the parent etc.
...
- the original _is_self_referential() is now _refers_to_parent_table() and is only used during "direction" calculation to indicate the relation is from a single table to itself
2008-03-07 03:16:46 +00:00
Mike Bayer
afc0cdfe74
corrected assert_raises to be consistent with existing assertRaises() unittest method
2008-03-06 18:59:23 +00:00
Mike Bayer
4f35e8120f
- added assert_raises() to TestBase class
...
- session.refresh() and session.expire() raise an error when
called on instances which are not persistent within the session
- session._validate_persistent() properly raises an error for false check
2008-03-06 18:44:45 +00:00
Mike Bayer
63b904881b
check the isinsert/isupdate flags before calling __process_defaults
2008-03-06 16:54:55 +00:00
Mike Bayer
d8e258410e
- adjusted generative.py test for revised error message
...
- mapper with non_primary asserts primary mapper already created
- added any()/instance compare test to query
2008-03-06 16:53:40 +00:00
Jason Kirtland
50155f8c9f
Import fixup & trailing whitespace
2008-03-06 14:16:19 +00:00
Jason Kirtland
4f6d0ff71e
- Synonyms riding on top of existing descriptors are now full proxies
...
to those descriptors.
2008-03-06 14:12:22 +00:00
Jason Kirtland
06d55b8e1d
- constraint constructor docstring fiesta
2008-03-05 00:46:58 +00:00
Jason Kirtland
b536650170
- More docs for r4223
2008-03-04 23:30:37 +00:00
Jason Kirtland
e193854f95
- Tweaked error messaging for unbound DDL().execute()
2008-03-04 22:50:14 +00:00
Jason Kirtland
38606681e7
- Gave DDL() statements the same .bind treatment as the DML ones in r4220
2008-03-04 22:47:35 +00:00
Jason Kirtland
5413a207f0
- whitespace/docstring/linewrap freakout
2008-03-04 22:29:59 +00:00
Jason Kirtland
70d8a9c7a6
- Updated exception messaging for r4220
2008-03-04 21:35:15 +00:00
Mike Bayer
793b7c2e6b
- added "bind" keyword argument to insert(), update(), delete();
...
.bind property is settable on those as well as select().
2008-03-04 20:57:32 +00:00