Mike Bayer
b7e5d114f5
added select_by, get_by, magic methods
2005-12-14 05:45:49 +00:00
Mike Bayer
3cd30fdc70
echo can now be False, True or 'debug'. result sets are printed only if echo is 'debug'.
2005-12-12 01:56:42 +00:00
Mike Bayer
83bc03b6d9
more combinations
2005-12-12 01:46:39 +00:00
Mike Bayer
8ed282c3c2
added 'order_by' property to mapper constructor
...
added 'no_sort' property to mapper _compile method to disable all ordering
mapper _compile will not use its internal order_by if the given statement has an orderby
lazyloader order_by used standalone when loading via mapper
2005-12-12 01:44:58 +00:00
Mike Bayer
69ad2955bd
build in 'backref' property argument
2005-12-09 05:08:51 +00:00
Mike Bayer
ddf6713472
fixes to the previous checkin with distinct etc
2005-12-08 03:31:07 +00:00
Mike Bayer
fa43b890bd
some enhancemnets to unions, unions and selects need to be more commonly derived,
...
also more tweaks to mapper eager query compilation involving distinct etc.
2005-12-08 03:03:29 +00:00
Mike Bayer
e2c4d1cc58
more grueling unit tests involving limit, offset and distinct (and unions)
2005-12-08 03:02:33 +00:00
Mike Bayer
bbda66b73b
wording change
2005-12-07 04:21:38 +00:00
Mike Bayer
56737d4682
slight change to order by for limited eager select
2005-12-07 04:21:26 +00:00
Mike Bayer
331b22509b
2005-12-07 03:05:18 +00:00
Mike Bayer
c9bfe70961
limit and offset support for mappers, insanity with eager loading
2005-12-07 02:57:22 +00:00
Mike Bayer
44abaa9e56
added rudimentary support for limit and offset (with the hack version in oracle)
...
fixed up order_by to support a list/scalar of columns or asc/desc
fixed up query.py unit test
2005-12-07 01:37:55 +00:00
Mike Bayer
478b0e15ed
working the backref attributes thing. many-to-many unittest works now...
2005-12-06 06:45:44 +00:00
Mike Bayer
19aae75e6a
first take at backreference handlers
2005-12-06 03:32:24 +00:00
Mike Bayer
2e1bda393c
fallback on importing pysqlite2
2005-12-06 03:32:02 +00:00
Mike Bayer
33aeec5d7f
docstrings, formatting fixes
2005-12-04 20:34:21 +00:00
Mike Bayer
2e9e246034
added order_by to EagerLoader, LazyLoader
...
removed "scope" parameter from Mapper until we need to revisit that idea
2005-12-04 19:41:57 +00:00
Mike Bayer
c305d6e698
fixed up paramstyle translation
2005-12-04 18:45:58 +00:00
Mike Bayer
1cf745d30e
more consistent treatment of columns, differentiation of selectable/non-selectable,
...
docstrings
2005-12-04 18:27:52 +00:00
Mike Bayer
3be64752c3
testing functions, operators, better textual stuff
2005-12-04 18:26:31 +00:00
Mike Bayer
dc4c062434
moved to test framework
2005-12-04 18:26:00 +00:00
Mike Bayer
20e7f815b1
math operators
...
&|~ boolean operators
added 'literal' keyword
working on column clauses being more flexible
2005-12-04 02:15:06 +00:00
Mike Bayer
dd269785a9
dev
2005-12-04 02:13:55 +00:00
Mike Bayer
4629f79c4a
dev
2005-12-04 00:30:44 +00:00
Mike Bayer
67203d8d43
dev
2005-12-04 00:19:07 +00:00
Mike Bayer
cec72fe1cc
primary_keys => primary_key
2005-12-04 00:18:51 +00:00
Mike Bayer
5e79213422
fixed orderby for eager load with selectalias
2005-12-04 00:18:38 +00:00
Mike Bayer
77e9b5bd68
better check for circular eager loaders
2005-12-03 09:00:26 +00:00
Mike Bayer
1702222e2b
refactorings to sql generation, unions, engine location
2005-12-03 08:41:18 +00:00
Mike Bayer
ef14dac589
tweek
2005-12-03 06:27:40 +00:00
Mike Bayer
c02e113df3
fixed tree examples import scheme, tweak to properties import
2005-12-03 06:18:55 +00:00
Mike Bayer
906af22a56
rearranging mapper/objectstore into a subdirectory, breaking up files since they are huge
2005-12-03 06:13:09 +00:00
Mike Bayer
6d0bf6de0a
moved eagermapper creation up to insure theres no mapper conflicts when creating/saving
2005-12-03 05:29:12 +00:00
Mike Bayer
6beabdce07
many-to-many mechanism changed the ordering of the three queries involved
2005-12-03 05:19:22 +00:00
Mike Bayer
6f7ae3c8b6
added manytomany to alltests
...
name stuff in manytomany
columns test works against generic Types instead of ANSI-named types
2005-12-03 05:16:25 +00:00
Mike Bayer
0f42441edd
added string-based URLS to create connections
2005-12-03 05:12:56 +00:00
Mike Bayer
07d4a9cd92
name change!
2005-12-03 04:56:59 +00:00
Mike Bayer
decc3247b4
added a third "mapper" to a many-to-many relationship that becomes the dependency in the "middle", thus allowing circular many-to-many relationships
...
added testcase to the 'double' test suite (whose name will change...)
small fix to table.get_col_by_original
added **kwargs to EagerLazyOption so other property options can be sent through
2005-12-03 04:34:12 +00:00
Mike Bayer
9a205e891d
added functionality to map columns to their aliased versions.
...
added support for specifying an alias in a relation.
added a new relation flag 'selectalias' which causes eagerloader to use a local alias name for its target table, translating columns back to the original non-aliased name as result rows come in.
2005-12-02 08:49:45 +00:00
Mike Bayer
4b70825ae1
new test to check a new eager loader feature that loads against aliased names
2005-12-02 08:45:38 +00:00
Robert Leftwich
9ec6a9b8e3
Added float type to support real/double precision/float8/etc sql data types. Added columns.py as unit test. Modified sqlite.py, postgres.py and mysql.py to use the new type where appropriate (note -Oracle is unchanged at present).
2005-12-01 12:51:38 +00:00
Mike Bayer
2a1098f831
table reflection will default to SLString. default filename added to be :memory:.
2005-12-01 05:19:10 +00:00
Mike Bayer
8e18f3e77c
more tweaks to import scheme
2005-11-30 06:01:18 +00:00
Mike Bayer
fbc4c81faa
adjusted docs to account for import convention, proper sqlite calling convention
2005-11-30 06:00:41 +00:00
Mike Bayer
75b2745528
migrated __ALL__ to __all__, oops, and reworked module
...
import scheme
2005-11-30 05:39:11 +00:00
Mike Bayer
93398271ed
fix to result processing of date types
2005-11-29 06:52:16 +00:00
Mike Bayer
92dc0d0dbd
added group_by, having to select. added func.foo(a, b) keyword to express functions within column lists and criterion lists
2005-11-29 06:43:23 +00:00
Mike Bayer
ee665372f6
strips possible schema/table info from a column name returned in cursor metadata
2005-11-28 05:11:53 +00:00
Mike Bayer
69303e16b4
mysql default password
2005-11-28 05:11:17 +00:00