]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/log
thirdparty/sqlalchemy/sqlalchemy.git
19 years agoProvisional fix for #51, very slightly adapted from the patch posted in the ticket...
Jason Pellerin [Sun, 5 Feb 2006 14:43:10 +0000 (14:43 +0000)] 
Provisional fix for #51, very slightly adapted from the patch posted in the ticket. Tests added to verify fix.

19 years agostarted PassiveDefault, which is a "database-side" default. mapper will go
Mike Bayer [Sun, 5 Feb 2006 00:19:14 +0000 (00:19 +0000)] 
started PassiveDefault, which is a "database-side" default.  mapper will go
fetch the most recently inserted row if a table has PassiveDefault's set on it

19 years agocolumns can be specified to override those from autoload=True
Mike Bayer [Sat, 4 Feb 2006 23:41:07 +0000 (23:41 +0000)] 
columns can be specified to override those from autoload=True

19 years agois_unicode propigated into String subclasses
Mike Bayer [Sat, 4 Feb 2006 23:38:38 +0000 (23:38 +0000)] 
is_unicode propigated into String subclasses

19 years agoadded BETWEEN, courtesy Rick Morrison. go Rick !
Mike Bayer [Sat, 4 Feb 2006 21:51:46 +0000 (21:51 +0000)] 
added BETWEEN, courtesy Rick Morrison.  go Rick !

19 years agofixes involving when child object from list items is None - onetoone must pass, objec...
Mike Bayer [Sat, 4 Feb 2006 17:31:38 +0000 (17:31 +0000)] 
fixes involving when child object from list items is None - onetoone must pass, objectstore.testbackwardsmanipulations with postgres passes

19 years agoadded ISchema object to engine/information_schema, provides somewhat generic informat...
Mike Bayer [Sat, 4 Feb 2006 17:24:12 +0000 (17:24 +0000)] 
added ISchema object to engine/information_schema, provides somewhat generic information_schema access for db's that support it, i.e. postgres, mysql 5

19 years agoa future unit-test for testing one-to-one relationships
Mike Bayer [Sat, 4 Feb 2006 17:07:49 +0000 (17:07 +0000)] 
a future unit-test for testing one-to-one relationships

19 years agoone-to-one support:
Mike Bayer [Sat, 4 Feb 2006 17:05:09 +0000 (17:05 +0000)] 
one-to-one support:
rolled the BackrefExtensions into a single GenericBackrefExtension to handle
all combinations of list/nonlist properties (such as one-to-one)
tweak to properties.py which may receive "None" as "added_items()", in the case of a scalar property
instead of a list
PropHistory masquerades as a List on the setattr/append delattr/remove side to make one-to-one's automatically
work

19 years agoadded DATE, TIME, SMALLINT to __all__
Mike Bayer [Sat, 4 Feb 2006 16:47:12 +0000 (16:47 +0000)] 
added DATE, TIME, SMALLINT to __all__

19 years agoRick Morrison's patch adding Smallint, Date, and Time support !
Mike Bayer [Sat, 4 Feb 2006 16:44:00 +0000 (16:44 +0000)] 
Rick Morrison's patch adding Smallint, Date, and Time support !

19 years agobeginnings of a "multilple relations to the same table" test
Mike Bayer [Sat, 4 Feb 2006 16:43:36 +0000 (16:43 +0000)] 
beginnings of a "multilple relations to the same table" test

19 years agoverbiage edits
Mike Bayer [Sat, 4 Feb 2006 06:57:49 +0000 (06:57 +0000)] 
verbiage edits

19 years agoattempting to get MTOBackrefExtension to handle many-to-one, one-to-one equally
Mike Bayer [Fri, 3 Feb 2006 01:15:06 +0000 (01:15 +0000)] 
attempting to get MTOBackrefExtension to handle many-to-one, one-to-one equally

19 years agofixed set() to not re-set the same value
Mike Bayer [Fri, 3 Feb 2006 01:03:00 +0000 (01:03 +0000)] 
fixed set() to not re-set the same value

19 years agoswitched objectstore begin/commit behavior to do "reentrant counter"
Mike Bayer [Fri, 3 Feb 2006 00:42:22 +0000 (00:42 +0000)] 
switched objectstore begin/commit behavior to do "reentrant counter"

19 years agodeprecated relation(class, table)
Mike Bayer [Thu, 2 Feb 2006 23:28:23 +0000 (23:28 +0000)] 
deprecated relation(class, table)
changed unit tests/examples to not do it

19 years agoself->compare_self()
Mike Bayer [Thu, 2 Feb 2006 23:27:44 +0000 (23:27 +0000)] 
self->compare_self()

19 years agoadded doc for ProxyEngine
Mike Bayer [Wed, 1 Feb 2006 23:31:15 +0000 (23:31 +0000)] 
added doc for ProxyEngine

19 years agounit tests for proxy engine
Mike Bayer [Wed, 1 Feb 2006 23:27:36 +0000 (23:27 +0000)] 
unit tests for proxy engine

19 years agoinit
Mike Bayer [Wed, 1 Feb 2006 23:27:24 +0000 (23:27 +0000)] 
init

19 years agomight add scalar() to select which does limit=1
Mike Bayer [Wed, 1 Feb 2006 23:26:18 +0000 (23:26 +0000)] 
might add scalar() to select which does limit=1

19 years agonew ProxyEngine dispatches to multiple engines; contributed by jason pellerin
Mike Bayer [Wed, 1 Feb 2006 23:23:37 +0000 (23:23 +0000)] 
new ProxyEngine dispatches to multiple engines; contributed by jason pellerin

19 years agounit tests for merged cylical code
Mike Bayer [Wed, 1 Feb 2006 23:21:57 +0000 (23:21 +0000)] 
unit tests for merged cylical code

19 years agomerged new cyclical dependency code
Mike Bayer [Wed, 1 Feb 2006 23:21:36 +0000 (23:21 +0000)] 
merged new cyclical dependency code
EagerRelation gets a fix w/ regards to selectalias

19 years agomoved dict init to setattr for auto-__init__ thing
Mike Bayer [Wed, 1 Feb 2006 23:20:40 +0000 (23:20 +0000)] 
moved dict init to setattr for auto-__init__ thing

19 years agodev on uow docs
Mike Bayer [Wed, 1 Feb 2006 23:20:01 +0000 (23:20 +0000)] 
dev on uow docs

19 years agomerged fix that insures unrealized connections dont fill up the pool
Mike Bayer [Tue, 31 Jan 2006 05:20:19 +0000 (05:20 +0000)] 
merged fix that insures unrealized connections dont fill up the pool

19 years agofixed code error
Mike Bayer [Tue, 31 Jan 2006 02:15:16 +0000 (02:15 +0000)] 
fixed code error

19 years agoadded to trunk
Mike Bayer [Sun, 29 Jan 2006 21:51:59 +0000 (21:51 +0000)] 
added to trunk

19 years agoTabs to spaces
Robert Leftwich [Sun, 29 Jan 2006 12:35:27 +0000 (12:35 +0000)] 
Tabs to spaces

19 years agoReworked RowProxy to restore column order preservation and to remove some dictionary...
Robert Leftwich [Sun, 29 Jan 2006 12:30:32 +0000 (12:30 +0000)] 
Reworked RowProxy to restore column order preservation and to remove some dictionary-like behaviour that was unnecessary and caused breakage in existing code. Added tests for column preservation.

19 years agoAdded __len__ to RowProxy to allow len(r) and test for same.
Robert Leftwich [Sun, 29 Jan 2006 04:04:17 +0000 (04:04 +0000)] 
Added __len__ to RowProxy to allow len(r) and test for same.

19 years agoRowProxy changes - added keys(), used keys() to add more dictionary-like behaviour...
Robert Leftwich [Sat, 28 Jan 2006 22:24:16 +0000 (22:24 +0000)] 
RowProxy changes - added keys(), used keys() to add more dictionary-like behaviour (values(), iteritems(), iterkeys(), etc). Made parent and row private. Modified tests that used RowProxy.row to use values().

19 years agotook out print statement
Mike Bayer [Sat, 28 Jan 2006 18:05:45 +0000 (18:05 +0000)] 
took out print statement

19 years agotopological sort can detect cycles, and assemble them into a "big node" with all
Mike Bayer [Sat, 28 Jan 2006 18:02:42 +0000 (18:02 +0000)] 
topological sort can detect cycles, and assemble them into a "big node" with all
the nodes in the cycle aggregated into one node

19 years agoworking on representing longer circular relationships
Mike Bayer [Sat, 28 Jan 2006 06:18:08 +0000 (06:18 +0000)] 
working on representing longer circular relationships

19 years ago2nd scalar fix
Mike Bayer [Fri, 27 Jan 2006 23:59:12 +0000 (23:59 +0000)] 
2nd scalar fix

19 years agoscalar() returns None if no rows
Mike Bayer [Fri, 27 Jan 2006 23:56:13 +0000 (23:56 +0000)] 
scalar() returns None if no rows

19 years agostarting uow doc....
Mike Bayer [Fri, 27 Jan 2006 00:34:38 +0000 (00:34 +0000)] 
starting uow doc....

19 years agoconverted LEFT,RIGHT, CENTER to more reasonable names
Mike Bayer [Fri, 27 Jan 2006 00:34:18 +0000 (00:34 +0000)] 
converted LEFT,RIGHT, CENTER to more reasonable names

19 years agotask dump checks for None
Mike Bayer [Fri, 27 Jan 2006 00:33:54 +0000 (00:33 +0000)] 
task dump checks for None

19 years agorefactoring to allow column.label() to work in selects, etc.
Mike Bayer [Fri, 27 Jan 2006 00:33:15 +0000 (00:33 +0000)] 
refactoring to allow column.label() to work in selects, etc.
fixed superfluous codeline in ForeignKey

19 years agotest for inheritance, tests objectstore post_exec works fully
Mike Bayer [Thu, 26 Jan 2006 00:28:10 +0000 (00:28 +0000)] 
test for inheritance, tests objectstore post_exec works fully

19 years agorefactoring of objectstore to handle cleaning up after itself with less
Mike Bayer [Thu, 26 Jan 2006 00:27:14 +0000 (00:27 +0000)] 
refactoring of objectstore to handle cleaning up after itself with less
instruction from properties/mapper
objectstore gets an assertion for appending a deleted item
mapper has fix for inheritance
mapper selectone() etc. set "limit=1"

19 years agoai more reasonable hash_key that works across serializations
Mike Bayer [Thu, 26 Jan 2006 00:25:36 +0000 (00:25 +0000)] 
ai more reasonable hash_key that works across serializations
might want to get the DB password out of it tho....

19 years agoadded __repr__ to HashSet
Mike Bayer [Thu, 26 Jan 2006 00:24:54 +0000 (00:24 +0000)] 
added __repr__ to HashSet

19 years agofix to inheritance example
Mike Bayer [Thu, 26 Jan 2006 00:23:43 +0000 (00:23 +0000)] 
fix to inheritance example

19 years agoAdded column accessor to RowProxy, tests and note in documentation for same.
Robert Leftwich [Wed, 25 Jan 2006 01:07:26 +0000 (01:07 +0000)] 
Added column accessor to RowProxy, tests and note in documentation for same.

19 years agoadds a traversed list to the list of things to clean up
Mike Bayer [Tue, 24 Jan 2006 04:20:11 +0000 (04:20 +0000)] 
adds a traversed list to the list of things to clean up

19 years agopostgres checks for string/int port ID, converts to int for pg2 and string for pg1
Mike Bayer [Sun, 22 Jan 2006 23:18:22 +0000 (23:18 +0000)] 
postgres checks for string/int port ID, converts to int for pg2 and string for pg1

19 years agoorder_by and group_by being output in wrong order. Added tests for same.
Robert Leftwich [Sun, 22 Jan 2006 12:08:10 +0000 (12:08 +0000)] 
order_by and group_by being output in wrong order. Added tests for same.

19 years agoadded some echo arguments for uow, pool, propigated from the engine
Mike Bayer [Sat, 21 Jan 2006 06:33:33 +0000 (06:33 +0000)] 
added some echo arguments for uow, pool, propigated from the engine

19 years agoadjustment to dependencies+childtasks attached to circular task - they go
Mike Bayer [Sat, 21 Jan 2006 05:41:16 +0000 (05:41 +0000)] 
adjustment to dependencies+childtasks attached to circular task - they go
on just the lead task instead of each per-object task.
more tweaks to dumper output

19 years agorewrote objectstore logging
Mike Bayer [Sat, 21 Jan 2006 01:24:36 +0000 (01:24 +0000)] 
rewrote objectstore logging

19 years agocomment out dump, reverse check for self-ref task/delete-matchup
Mike Bayer [Fri, 20 Jan 2006 04:06:51 +0000 (04:06 +0000)] 
comment out dump, reverse check for self-ref task/delete-matchup

19 years agowhen breaking a circular task into child tasks, propigate the child tasks and the...
Mike Bayer [Fri, 20 Jan 2006 03:49:35 +0000 (03:49 +0000)] 
when breaking a circular task into child tasks, propigate the child tasks and the non-self-referring dependencies of the lead task to each child task...else they dont happen !

19 years agoformatting?
Mike Bayer [Fri, 20 Jan 2006 01:05:39 +0000 (01:05 +0000)] 
formatting?

19 years agosome docstrings
Mike Bayer [Fri, 20 Jan 2006 01:03:55 +0000 (01:03 +0000)] 
some docstrings

19 years agounset attributes on an object instance just return None instead of raising attributeerror
Mike Bayer [Fri, 20 Jan 2006 00:53:47 +0000 (00:53 +0000)] 
unset attributes on an object instance just return None instead of raising attributeerror

19 years agoadded explicit bind parameters and column type maps to text type
Mike Bayer [Fri, 20 Jan 2006 00:42:07 +0000 (00:42 +0000)] 
added explicit bind parameters and column type maps to text type
text type also parses :<string> into bind param objects
bind parameters convert their incoming type using engine.type_descriptor() methods
types.adapt_type() adjusted to not do extra work with incoming types, since the bind
param change will cause it to be called a lot more
added tests to new text type stuff, bind params, fixed some type tests
added basic docs for using text with binde params

19 years agoimplemented better hash_key on select allowing proper comparisons, implemented
Mike Bayer [Thu, 19 Jan 2006 01:43:26 +0000 (01:43 +0000)] 
implemented better hash_key on select allowing proper comparisons, implemented
hash_key on all clause objects
added hash_key test to select
util gets extra threadlocal functions and the recursionstack object

19 years agotabbing fix
Mike Bayer [Thu, 19 Jan 2006 00:28:57 +0000 (00:28 +0000)] 
tabbing fix

19 years agomore whitespace
Mike Bayer [Wed, 18 Jan 2006 06:56:23 +0000 (06:56 +0000)] 
more whitespace

19 years agowhitespace wrangling
Mike Bayer [Wed, 18 Jan 2006 06:50:16 +0000 (06:50 +0000)] 
whitespace wrangling

19 years agofix
Mike Bayer [Wed, 18 Jan 2006 06:13:31 +0000 (06:13 +0000)] 
fix

19 years agodispose() added to pool/engine to allow engines to fall out of scope
Mike Bayer [Wed, 18 Jan 2006 05:49:01 +0000 (05:49 +0000)] 
dispose() added to pool/engine to allow engines to fall out of scope

19 years agochanges to support docs in IE, adds a lot of whitespace....
Mike Bayer [Wed, 18 Jan 2006 00:30:32 +0000 (00:30 +0000)] 
changes to support docs in IE, adds a lot of whitespace....

19 years agoFormatting fix.
Robert Leftwich [Mon, 16 Jan 2006 06:34:10 +0000 (06:34 +0000)] 
Formatting fix.

19 years agoFixed problem in Column.copy(), _make_proxy() with nullable and hidden not being...
Robert Leftwich [Mon, 16 Jan 2006 06:22:52 +0000 (06:22 +0000)] 
Fixed problem in Column.copy(), _make_proxy() with nullable and hidden not being reflected into new Column. Added test for same. Removed reference to non-existant columns test from list of tests in alltests.

19 years agoassign_mapper will create a default __init__ method if one doesnt exist
Mike Bayer [Mon, 16 Jan 2006 04:46:37 +0000 (04:46 +0000)] 
assign_mapper will create a default __init__ method if one doesnt exist

19 years agofullname for table used when generating REFERENCES
Mike Bayer [Mon, 16 Jan 2006 03:57:29 +0000 (03:57 +0000)] 
fullname for table used when generating REFERENCES

19 years agocolumn arguments converted to integer
Mike Bayer [Fri, 13 Jan 2006 01:43:23 +0000 (01:43 +0000)] 
column arguments converted to integer

19 years agomysql table introspection uses 'describe' to work with 3/4/5
Mike Bayer [Fri, 13 Jan 2006 01:23:55 +0000 (01:23 +0000)] 
mysql table introspection uses 'describe' to work with 3/4/5
no foreign key introspection available, sorry !

19 years agoon foreign key default schema is that of the parent column
Mike Bayer [Fri, 13 Jan 2006 01:14:52 +0000 (01:14 +0000)] 
on foreign key default schema is that of the parent column

19 years agotests mapper column/property check
Mike Bayer [Fri, 13 Jan 2006 01:13:15 +0000 (01:13 +0000)] 
tests mapper column/property check

19 years agochecks for relations that override columns and raises an error if override_columns_ok...
Mike Bayer [Fri, 13 Jan 2006 01:12:48 +0000 (01:12 +0000)] 
checks for relations that override columns and raises an error if override_columns_ok not set

19 years ago r818@lightspeed: robert | 2006-01-12 18:32:38 +1100
Robert Leftwich [Thu, 12 Jan 2006 07:33:28 +0000 (07:33 +0000)] 
 r818@lightspeed:  robert | 2006-01-12 18:32:38 +1100
 Added class name to the TypeError string to make it easier to find constructor problems when mapper is constructing complex mappings

19 years agoid key uses hash_key off of table now that its a short string
Mike Bayer [Wed, 11 Jan 2006 02:52:30 +0000 (02:52 +0000)] 
id key uses hash_key off of table now that its a short string

19 years agoindent fix
Mike Bayer [Wed, 11 Jan 2006 02:51:42 +0000 (02:51 +0000)] 
indent fix

19 years agofixes
Mike Bayer [Wed, 11 Jan 2006 02:50:22 +0000 (02:50 +0000)] 
fixes

19 years agodoes pydoc for properties too
Mike Bayer [Wed, 11 Jan 2006 02:44:47 +0000 (02:44 +0000)] 
does pydoc for properties too

19 years ago r815@lightspeed: robert | 2006-01-11 10:15:14 +1100
Robert Leftwich [Tue, 10 Jan 2006 23:15:54 +0000 (23:15 +0000)] 
 r815@lightspeed:  robert | 2006-01-11 10:15:14 +1100
 Replaced use of repr() with custom identifiers in identity related areas to improve performance

19 years agotabs->spaces ! (also relies upon '2' being present in version id)
Mike Bayer [Tue, 10 Jan 2006 02:30:54 +0000 (02:30 +0000)] 
tabs->spaces !  (also relies upon '2' being present in version id)

19 years agoidentity map->weakvaluedictionary
Mike Bayer [Tue, 10 Jan 2006 02:26:57 +0000 (02:26 +0000)] 
identity map->weakvaluedictionary

19 years ago r810@lightspeed: robert | 2006-01-10 11:49:18 +1100
Robert Leftwich [Tue, 10 Jan 2006 00:49:47 +0000 (00:49 +0000)] 
 r810@lightspeed:  robert | 2006-01-10 11:49:18 +1100
 Added check for __version__ to determine if pyscopg is v1 or v2

19 years agoColumnClause needed optional foreign_key parameter
Mike Bayer [Mon, 9 Jan 2006 01:05:26 +0000 (01:05 +0000)] 
ColumnClause needed optional foreign_key parameter

19 years agotypos
Mike Bayer [Sun, 8 Jan 2006 19:05:53 +0000 (19:05 +0000)] 
typos

19 years agoadded some __repr__ functionality
Mike Bayer [Sun, 8 Jan 2006 19:02:26 +0000 (19:02 +0000)] 
added some __repr__ functionality

19 years agosqlite/postgres reflection will properly add foreign keys
Mike Bayer [Sun, 8 Jan 2006 18:11:52 +0000 (18:11 +0000)] 
sqlite/postgres reflection will properly add foreign keys
added append_item() method to column to work similarly to table.append_item(), used to
append foreign keys to the column (required in mysql)
appending new foreign keys will properly replace the old one, so explicitly appending
foreign keys to tables will replace those loaded via table reflection (instead of doubling them up)

19 years agoadded count func to mapper
Mike Bayer [Sun, 8 Jan 2006 07:24:33 +0000 (07:24 +0000)] 
added count func to mapper

19 years agoadded count() to table, from objects
Mike Bayer [Sun, 8 Jan 2006 07:12:19 +0000 (07:12 +0000)] 
added count() to table, from objects

19 years agoadded the README to the description
Mike Bayer [Sun, 8 Jan 2006 07:12:04 +0000 (07:12 +0000)] 
added the README to the description

19 years agokey/value params on execute() are based off the from objects, not the select list
Mike Bayer [Sun, 8 Jan 2006 07:11:51 +0000 (07:11 +0000)] 
key/value params on execute() are based off the from objects, not the select list

19 years agomit license
Mike Bayer [Sun, 8 Jan 2006 04:16:19 +0000 (04:16 +0000)] 
mit license

19 years agoremoved 'primarytable' keyword argument
Mike Bayer [Sun, 8 Jan 2006 01:35:56 +0000 (01:35 +0000)] 
removed 'primarytable'  keyword argument

19 years agosmall adjust after mapper/sql overhaul
Mike Bayer [Sun, 8 Jan 2006 01:35:29 +0000 (01:35 +0000)] 
small adjust after mapper/sql overhaul

19 years agoremove method on HashSet
Mike Bayer [Sun, 8 Jan 2006 01:34:45 +0000 (01:34 +0000)] 
remove method on HashSet

19 years agoadded 'import_instance' to properly deal with out-of-imap objects,
Mike Bayer [Sun, 8 Jan 2006 01:34:13 +0000 (01:34 +0000)] 
added 'import_instance' to properly deal with out-of-imap objects,
added assertion upon commit that all mapped objects are properly present in the identity map

19 years agomodified 'primarytable' idea and 'inheritance' to work better with improved relational
Mike Bayer [Sun, 8 Jan 2006 01:31:23 +0000 (01:31 +0000)] 
modified 'primarytable' idea and 'inheritance' to work better with improved relational
algrebra stuff