]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/log
thirdparty/sqlalchemy/sqlalchemy.git
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

19 years agounit tests to test column/pk/fk exports on relational objects
Mike Bayer [Sun, 8 Jan 2006 01:30:03 +0000 (01:30 +0000)] 
unit tests to test column/pk/fk exports on relational objects

19 years agomoved 'float' test into types test, renamed typetest to overrride test
Mike Bayer [Sun, 8 Jan 2006 01:28:49 +0000 (01:28 +0000)] 
moved 'float' test into types test, renamed typetest to overrride test

19 years agomisc commenty type stuff
Mike Bayer [Sun, 8 Jan 2006 01:27:04 +0000 (01:27 +0000)] 
misc commenty type stuff

19 years agoimprovements to relational algrebra of Alias, Select, Join objects, so that they
Mike Bayer [Sun, 8 Jan 2006 01:26:47 +0000 (01:26 +0000)] 
improvements to relational algrebra of Alias, Select, Join objects, so that they
all report their column lists, primary key, foreign key lists consistently
and so that ForeignKey objects can line up tables against relational objects

19 years agotesting backref/lazyload uses mapper.get()
Mike Bayer [Thu, 5 Jan 2006 05:47:33 +0000 (05:47 +0000)] 
testing backref/lazyload uses mapper.get()

19 years agomapper - pks_by_table should store keys in order even tho we dont have a failure...
Mike Bayer [Thu, 5 Jan 2006 05:47:02 +0000 (05:47 +0000)] 
mapper - pks_by_table should store keys in order even tho we dont have a failure case
lazyloader can lazyload using mapper.get() if it is appropriate, saves a lot of queries
a few more assertions in properties in prep for relations against select statement mappers
mapper get() clause is determined upfront to avoid re-generating it

19 years agoadded compare function to the more basic expression objects
Mike Bayer [Thu, 5 Jan 2006 05:44:10 +0000 (05:44 +0000)] 
added compare function to the more basic expression objects
adding priamry_key/foreign_keys to selects, alias etc to increase their useability for relating them to tables
improved _get_col_by_original to double-check the column it finds

19 years agobetter exception catch
Mike Bayer [Thu, 5 Jan 2006 04:32:54 +0000 (04:32 +0000)] 
better exception catch

19 years agoadded support for foreign keys to work across schemas
Mike Bayer [Thu, 5 Jan 2006 04:00:21 +0000 (04:00 +0000)] 
added support for foreign keys to work across schemas

19 years agoouterjoin onclause is optional
Mike Bayer [Wed, 4 Jan 2006 05:04:42 +0000 (05:04 +0000)] 
outerjoin onclause is optional

19 years agoedits
Mike Bayer [Wed, 4 Jan 2006 05:04:26 +0000 (05:04 +0000)] 
edits

19 years agocopyright->2005,2006
Mike Bayer [Tue, 3 Jan 2006 00:49:54 +0000 (00:49 +0000)] 
copyright->2005,2006

19 years agocleanup to mapper/relation order_by parameter to be more consistently picked up
Mike Bayer [Tue, 3 Jan 2006 00:40:40 +0000 (00:40 +0000)] 
cleanup to mapper/relation order_by parameter to be more consistently picked up
down the chain of engine->mapper->select()
documented mapperoption methods

19 years agoadded binary unit tests
Mike Bayer [Tue, 3 Jan 2006 00:36:45 +0000 (00:36 +0000)] 
added binary unit tests
moved datetest to the types module

19 years agotype objects pass engine around to get a hold of DBAPI type objects
Mike Bayer [Tue, 3 Jan 2006 00:36:16 +0000 (00:36 +0000)] 
type objects pass engine around to get a hold of DBAPI type objects
added dbapi.Binary creation to base BinaryType
fixed MySQL binary type
adjustment to Join._match_primaries to work better with self-referential table

19 years agoremove debugging code
Mike Bayer [Tue, 3 Jan 2006 00:32:51 +0000 (00:32 +0000)] 
remove debugging code

19 years agotrying to get pg1 date type to work, unsuccessful
Mike Bayer [Tue, 3 Jan 2006 00:32:39 +0000 (00:32 +0000)] 
trying to get pg1 date type to work, unsuccessful

19 years agomoved tables into examples so basic_tree could be simplified
Mike Bayer [Tue, 3 Jan 2006 00:30:37 +0000 (00:30 +0000)] 
moved tables into examples so basic_tree could be simplified

19 years agonew options, new examples
Mike Bayer [Tue, 3 Jan 2006 00:29:03 +0000 (00:29 +0000)] 
new options, new examples

19 years agocolumn.label is now a function; fix byroot example, add 'default_label' accessor...
Mike Bayer [Mon, 2 Jan 2006 05:45:37 +0000 (05:45 +0000)] 
column.label is now a function; fix byroot example, add 'default_label' accessor to columnimpl

19 years agobroke apart deafult ordering into oid or primary key. a DB that has no oids will...
Mike Bayer [Mon, 2 Jan 2006 05:40:37 +0000 (05:40 +0000)] 
broke apart deafult ordering into oid or primary key.  a DB that has no oids will have a None oid_column attribute.

19 years agoorder by oid -> order by *default_order_by() when called by mapper layer.
Mike Bayer [Mon, 2 Jan 2006 05:28:05 +0000 (05:28 +0000)] 
order by oid -> order by *default_order_by() when called by mapper layer.
- one layer of abstraction between the "oid" and default ordering

19 years agorowid->oid
Mike Bayer [Mon, 2 Jan 2006 05:22:00 +0000 (05:22 +0000)] 
rowid->oid

19 years agochanged mysql TIMESTAMP->DATETIME
Mike Bayer [Mon, 2 Jan 2006 04:06:57 +0000 (04:06 +0000)] 
changed mysql TIMESTAMP->DATETIME
fixed up date unit test
RowProxy __iter__ properly routes columns through type processing

19 years agofactoring out mysql's rowid stuff since its down in the base engine class now
Mike Bayer [Sun, 1 Jan 2006 21:17:34 +0000 (21:17 +0000)] 
factoring out mysql's rowid stuff since its down in the base engine class now

19 years agorowid_column becomes more like the "order by column". 'default_ordering' flag sent...
Mike Bayer [Sun, 1 Jan 2006 21:08:22 +0000 (21:08 +0000)] 
rowid_column becomes more like the "order by column".  'default_ordering' flag sent to create_engine enables whether or not the rowid_column on a Table will be None or not.  mappers/relations will by default use the rowid_column for ordering if its not None, else theres no default ordering.
still should better define 'default_ordering'/'rowid_column' relationship since its a little kludgy.

19 years agopostgres oids say byebye by default, putting hooks in for engines to determine column...
Mike Bayer [Sun, 1 Jan 2006 20:30:53 +0000 (20:30 +0000)] 
postgres oids say byebye by default, putting hooks in for engines to determine column defaults externally to it having a 'default' property, beefed up unittests to support inserts with/without defaults (will fix oracle unit tests too)

19 years agodocdev
Mike Bayer [Sat, 31 Dec 2005 08:26:48 +0000 (08:26 +0000)] 
docdev

19 years agoadded a hook in for 'binary operator', so sqlite can exchange
Mike Bayer [Sat, 31 Dec 2005 07:49:33 +0000 (07:49 +0000)] 
added a hook in for 'binary operator', so sqlite can exchange
'+' for '||' for a binary clause on a string

19 years agoshuffling to allow standard 'types' module in
Mike Bayer [Sat, 31 Dec 2005 07:49:00 +0000 (07:49 +0000)] 
shuffling to allow standard 'types' module in
bindparam allows class-based type in
added 'op' to comparemixin to allow custom operators

19 years agofix to ansisql when it tries to determine param-based select clause that its
Mike Bayer [Sat, 31 Dec 2005 07:13:18 +0000 (07:13 +0000)] 
fix to ansisql when it tries to determine param-based select clause that its
only on a column-type object
engine has settable 'paramstyle' attribute

19 years agolicense switch
Mike Bayer [Sat, 31 Dec 2005 03:23:12 +0000 (03:23 +0000)] 
license switch

19 years agodatetime introspection adjustment
Mike Bayer [Sat, 31 Dec 2005 03:22:45 +0000 (03:22 +0000)] 
datetime introspection adjustment
license switch

19 years agosome doc changes
Mike Bayer [Sat, 31 Dec 2005 03:21:14 +0000 (03:21 +0000)] 
some doc changes
license move

19 years agochanges related to mapping against arbitrary selects, selects with labels or functions:
Mike Bayer [Fri, 30 Dec 2005 05:58:45 +0000 (05:58 +0000)] 
changes related to mapping against arbitrary selects, selects with labels or functions:

testfunction has a more complete test (needs an assert tho);
added new labels, synonymous with column key, to "select" statements that are subqueries with use_labels=False, since SQLite wants them -
this also impacts the names of the columns attached to the select object in the case that the key and name dont match, since
it is now the key, not the name;
aliases generate random names if name is None (need some way to make them more predictable to help plan caching);
select statements have a rowid column of None, since there isnt really a "rowid"...at least cant figure out what it would be yet;
mapper creates an alias if given a select to map against, since Postgres wants it;
mapper checks if it has pks for a given table before saving/deleting, skips it otherwise;
mapper will not try to order by rowid if table doesnt have a rowid (since select statements dont have rowids...)

19 years agosome adjustments
Mike Bayer [Fri, 30 Dec 2005 00:49:49 +0000 (00:49 +0000)] 
some adjustments

19 years agoroadmap->trailmap
Mike Bayer [Fri, 30 Dec 2005 00:29:59 +0000 (00:29 +0000)] 
roadmap->trailmap

19 years agoroadmap->trailmap
Mike Bayer [Fri, 30 Dec 2005 00:29:46 +0000 (00:29 +0000)] 
roadmap->trailmap

19 years agoreworking concept of column lists, "FromObject", "Selectable";
Mike Bayer [Fri, 30 Dec 2005 00:27:46 +0000 (00:27 +0000)] 
reworking concept of column lists, "FromObject", "Selectable";
support for types to be propigated into boolean expressions;
new label() function/method to make any column/literal/function/bind param
into a "foo AS bar" clause, better support in ansisql for this concept;
trying to get column list on a select() object to be Column and ColumnClause
objects equally, working on mappers that map to those select() objects

19 years agoadjustments for oracle sequences
Mike Bayer [Fri, 30 Dec 2005 00:24:03 +0000 (00:24 +0000)] 
adjustments for oracle sequences

19 years agocatching up oracle to current, some tweaks to unittests to work better with oracle,
Mike Bayer [Fri, 30 Dec 2005 00:23:01 +0000 (00:23 +0000)] 
catching up oracle to current, some tweaks to unittests to work better with oracle,
allow different ordering of expected statements.
unittests still dont work completely with oracle due to sequence columns in INSERT statements

19 years agourl change
Mike Bayer [Thu, 29 Dec 2005 00:43:08 +0000 (00:43 +0000)] 
url change

19 years agoupdates for assignmapper, inherit_condition not required
Mike Bayer [Thu, 29 Dec 2005 00:42:47 +0000 (00:42 +0000)] 
updates for assignmapper, inherit_condition not required

19 years agodoc updates
Mike Bayer [Thu, 29 Dec 2005 00:42:16 +0000 (00:42 +0000)] 
doc updates

19 years agomoved _match_primaries from properties to sql.join, so its generalized to all SQL
Mike Bayer [Thu, 29 Dec 2005 00:42:00 +0000 (00:42 +0000)] 
moved _match_primaries from properties to sql.join, so its generalized to all SQL

19 years agoremoved assignmapper
Mike Bayer [Thu, 29 Dec 2005 00:41:24 +0000 (00:41 +0000)] 
removed assignmapper

19 years agoselect_by/get_by get SQL clauses as well
Mike Bayer [Thu, 29 Dec 2005 00:31:56 +0000 (00:31 +0000)] 
select_by/get_by get SQL clauses as well
public-facing columns on the mapper populated based on given properties first,
then table columns

19 years agocomments re: partial ordering, association dependencies
Mike Bayer [Sat, 24 Dec 2005 17:37:11 +0000 (17:37 +0000)] 
comments re: partial ordering, association dependencies
license for topological

19 years agoassociation object dependency glitches
Mike Bayer [Sat, 24 Dec 2005 16:54:53 +0000 (16:54 +0000)] 
association object dependency glitches

19 years agoarg fix in create_engine
Mike Bayer [Sat, 24 Dec 2005 15:37:18 +0000 (15:37 +0000)] 
arg fix in create_engine

19 years agothe 'column' function is optional to point a property to a column when constructing...
Mike Bayer [Sat, 24 Dec 2005 15:33:47 +0000 (15:33 +0000)] 
the 'column' function is optional to point a property to a column when constructing a mapper
can also be specified as a list to indicate overlap
mapper columns come from its table, no need to add from given columns

19 years agoColumnProperty -> column
Mike Bayer [Sat, 24 Dec 2005 15:23:14 +0000 (15:23 +0000)] 
ColumnProperty -> column

19 years agodocstrings
Mike Bayer [Sat, 24 Dec 2005 15:16:50 +0000 (15:16 +0000)] 
docstrings

19 years agomapper, when updating, only SET's those columns that have changed.
Mike Bayer [Fri, 23 Dec 2005 05:19:48 +0000 (05:19 +0000)] 
mapper, when updating, only SET's those columns that have changed.
this also allows "deferred" column properties to remain untouched by a save operation
if they werent affected.

19 years agoadded defer and undefer mapper options
Mike Bayer [Fri, 23 Dec 2005 04:44:44 +0000 (04:44 +0000)] 
added defer and undefer mapper options

19 years agoremove debugging/comments
Mike Bayer [Fri, 23 Dec 2005 01:52:54 +0000 (01:52 +0000)] 
remove debugging/comments

19 years agorefactor/cleanup to mapper options methodology to allow for incoming defer/undefer...
Mike Bayer [Fri, 23 Dec 2005 01:49:44 +0000 (01:49 +0000)] 
refactor/cleanup to mapper options methodology to allow for incoming defer/undefer options
mapper/relations are stricter about class attributes and primary mapper - is_primary flag
on relations fixed (wasnt working before). new primary mappers clear off old class attributes,
secondary mappers insure that their property was set up by the primary; otherwise secondary
mappers can add behavior to properties that are unmanaged by the primary mapper
added "group" option to deferred loaders so a group of properties can be loaded at once
mapper adds the "oid" column to the select list if "distinct" is set to true and its
using the default "order by oid" ordering (mysql benefits from ansisql fix to only print out unique
columns in the select list since its oid is the same as the pk column)
fixed unittests to comply with stricter primary mapper rules

19 years agomove execute parameter processing from sql.ClauseElement to engine.execute_compiled
Mike Bayer [Fri, 23 Dec 2005 01:37:10 +0000 (01:37 +0000)] 
move execute parameter processing from sql.ClauseElement to engine.execute_compiled
testbase gets "assert_sql_count" method, moves execution wrapping to pre_exec to accomodate engine change
move _get_colparams from Insert/Update to ansisql since it applies to compilation
ansisql also insures that select list for columns is unique, helps the mapper with the "distinct" keyword
docstrings/cleanup

19 years agodeferred property, checks for NULL primary key components and returns None
Mike Bayer [Thu, 22 Dec 2005 03:25:43 +0000 (03:25 +0000)] 
deferred property, checks for NULL primary key components and returns None

19 years agoadded 'deferred' keyword, allowing deferred loading of a particular column
Mike Bayer [Wed, 21 Dec 2005 03:44:46 +0000 (03:44 +0000)] 
added 'deferred' keyword, allowing deferred loading of a particular column

19 years agoadded "late WHERE" compilation to SELECT, adds where criterion based on extra bind...
Mike Bayer [Wed, 21 Dec 2005 02:36:54 +0000 (02:36 +0000)] 
added "late WHERE" compilation to SELECT, adds where criterion based on extra bind parameters specified
at compilation/execution time

19 years agofix to parameter thing in insert
Mike Bayer [Tue, 20 Dec 2005 05:27:13 +0000 (05:27 +0000)] 
fix to parameter thing in insert
added unicodetype to __all__ for types

19 years agoadded assign_mapper
Mike Bayer [Tue, 20 Dec 2005 05:26:29 +0000 (05:26 +0000)] 
added assign_mapper

19 years agomore complete commit when object list is specified
Mike Bayer [Tue, 20 Dec 2005 05:26:13 +0000 (05:26 +0000)] 
more complete commit when object list is specified

19 years agofix to engine echo, random rundocs
Mike Bayer [Tue, 20 Dec 2005 05:25:30 +0000 (05:25 +0000)] 
fix to engine echo, random rundocs

19 years agoin_ clause uses bind params, for typing etc.
Mike Bayer [Tue, 20 Dec 2005 05:24:51 +0000 (05:24 +0000)] 
in_ clause uses bind params, for typing etc.

19 years agotypemap needs lower case keys since result set metadata is not always case-sensitive...
Mike Bayer [Mon, 19 Dec 2005 08:32:49 +0000 (08:32 +0000)] 
typemap needs lower case keys since result set metadata is not always case-sensitive (like in oracle)

19 years agoneed to do before_insert before populating the insert row
Mike Bayer [Sat, 17 Dec 2005 19:43:11 +0000 (19:43 +0000)] 
need to do before_insert before populating the insert row

19 years agofix to oracle function select, users table in test should be non-sequence
Mike Bayer [Sat, 17 Dec 2005 19:35:00 +0000 (19:35 +0000)] 
fix to oracle function select, users table in test should be non-sequence

19 years agoput an assertion in default test
Mike Bayer [Sat, 17 Dec 2005 18:50:06 +0000 (18:50 +0000)] 
put an assertion in default test

19 years agorefactoring of execution path, defaults, and treatment of different paramstyles
Mike Bayer [Sat, 17 Dec 2005 02:49:47 +0000 (02:49 +0000)] 
refactoring of execution path, defaults, and treatment of different paramstyles

19 years agoindent..
Mike Bayer [Fri, 16 Dec 2005 08:26:58 +0000 (08:26 +0000)] 
indent..

19 years agodocstrings, who knew
Mike Bayer [Fri, 16 Dec 2005 08:26:28 +0000 (08:26 +0000)] 
docstrings, who knew

19 years agomanytomany test shows that mysql needs column lengths on string to be used as a prima...
Mike Bayer [Fri, 16 Dec 2005 07:19:29 +0000 (07:19 +0000)] 
manytomany test shows that mysql needs column lengths on string to be used as a primary key
testbase simplified slightly, allowed by reorganiztion of engine's execution of compiled objects

19 years agofactored "sequence" execution in postgres in oracle to be generalized to the SQLEngin...
Mike Bayer [Fri, 16 Dec 2005 07:18:27 +0000 (07:18 +0000)] 
factored "sequence" execution in postgres in oracle to be generalized to the SQLEngine, to also allow space for "defaults" that may be constants, python functions, or SQL functions/statements
Sequence schema object extends from a more generic "Default" object
ANSICompiled can convert positinal params back to a dictionary, but the whole issue of parameters and how the engine executes compiled objects with parameters should be revisited
mysql has fixes for its "rowid_column" being hidden else it screws up some query construction, also will not use AUTOINCREMENT unless the column is Integer