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

20 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)

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

20 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

20 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

20 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

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

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

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

20 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...)

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

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

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

20 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

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

20 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

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

20 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

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

20 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

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

20 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

20 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

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

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

20 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

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

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

20 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.

20 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

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

20 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

20 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

20 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

20 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

20 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

20 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

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

20 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

20 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

20 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.

20 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)

20 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

20 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

20 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

20 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

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

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

20 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

20 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

20 years agoedits
Mike Bayer [Fri, 16 Dec 2005 05:42:54 +0000 (05:42 +0000)] 
edits

20 years agosmall tweak to HistoryList to properly report "delete" success, new unit test added...
Mike Bayer [Thu, 15 Dec 2005 05:09:44 +0000 (05:09 +0000)] 
small tweak to HistoryList to properly report "delete" success, new unit test added to manytomany

20 years agodoc edits
Mike Bayer [Thu, 15 Dec 2005 04:26:33 +0000 (04:26 +0000)] 
doc edits

20 years agorethinking sequences model to allow any default values
Mike Bayer [Thu, 15 Dec 2005 04:25:59 +0000 (04:25 +0000)] 
rethinking sequences model to allow any default values

20 years agoadded select_by, get_by, magic methods
Mike Bayer [Wed, 14 Dec 2005 05:45:49 +0000 (05:45 +0000)] 
added select_by, get_by, magic methods

20 years agoecho can now be False, True or 'debug'. result sets are printed only if echo is ...
Mike Bayer [Mon, 12 Dec 2005 01:56:42 +0000 (01:56 +0000)] 
echo can now be False, True or 'debug'. result sets are printed only if echo is 'debug'.

20 years agomore combinations
Mike Bayer [Mon, 12 Dec 2005 01:46:39 +0000 (01:46 +0000)] 
more combinations

20 years agoadded 'order_by' property to mapper constructor
Mike Bayer [Mon, 12 Dec 2005 01:44:58 +0000 (01:44 +0000)] 
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

20 years agobuild in 'backref' property argument
Mike Bayer [Fri, 9 Dec 2005 05:08:51 +0000 (05:08 +0000)] 
build in 'backref' property argument

20 years agofixes to the previous checkin with distinct etc
Mike Bayer [Thu, 8 Dec 2005 03:31:07 +0000 (03:31 +0000)] 
fixes to the previous checkin with distinct etc

20 years agosome enhancemnets to unions, unions and selects need to be more commonly derived,
Mike Bayer [Thu, 8 Dec 2005 03:03:29 +0000 (03:03 +0000)] 
some enhancemnets to unions, unions and selects need to be more commonly derived,
also more tweaks to mapper eager query compilation involving distinct etc.

20 years agomore grueling unit tests involving limit, offset and distinct (and unions)
Mike Bayer [Thu, 8 Dec 2005 03:02:33 +0000 (03:02 +0000)] 
more grueling unit tests involving limit, offset and distinct (and unions)

20 years agowording change
Mike Bayer [Wed, 7 Dec 2005 04:21:38 +0000 (04:21 +0000)] 
wording change

20 years agoslight change to order by for limited eager select
Mike Bayer [Wed, 7 Dec 2005 04:21:26 +0000 (04:21 +0000)] 
slight change to order by for limited eager select

20 years ago(no commit message)
Mike Bayer [Wed, 7 Dec 2005 03:05:18 +0000 (03:05 +0000)] 

20 years agolimit and offset support for mappers, insanity with eager loading
Mike Bayer [Wed, 7 Dec 2005 02:57:22 +0000 (02:57 +0000)] 
limit and offset support for mappers, insanity with eager loading

20 years agoadded rudimentary support for limit and offset (with the hack version in oracle)
Mike Bayer [Wed, 7 Dec 2005 01:37:55 +0000 (01:37 +0000)] 
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

20 years agoworking the backref attributes thing. many-to-many unittest works now...
Mike Bayer [Tue, 6 Dec 2005 06:45:44 +0000 (06:45 +0000)] 
working the backref attributes thing.  many-to-many unittest works now...

20 years agofirst take at backreference handlers
Mike Bayer [Tue, 6 Dec 2005 03:32:24 +0000 (03:32 +0000)] 
first take at backreference handlers

20 years agofallback on importing pysqlite2
Mike Bayer [Tue, 6 Dec 2005 03:32:02 +0000 (03:32 +0000)] 
fallback on importing pysqlite2

20 years agodocstrings, formatting fixes
Mike Bayer [Sun, 4 Dec 2005 20:34:21 +0000 (20:34 +0000)] 
docstrings, formatting fixes

20 years agoadded order_by to EagerLoader, LazyLoader
Mike Bayer [Sun, 4 Dec 2005 19:41:57 +0000 (19:41 +0000)] 
added order_by to EagerLoader, LazyLoader
removed "scope" parameter from Mapper until we need to revisit that idea

20 years agofixed up paramstyle translation
Mike Bayer [Sun, 4 Dec 2005 18:45:58 +0000 (18:45 +0000)] 
fixed up paramstyle translation

20 years agomore consistent treatment of columns, differentiation of selectable/non-selectable,
Mike Bayer [Sun, 4 Dec 2005 18:27:52 +0000 (18:27 +0000)] 
more consistent treatment of columns, differentiation of selectable/non-selectable,
docstrings

20 years agotesting functions, operators, better textual stuff
Mike Bayer [Sun, 4 Dec 2005 18:26:31 +0000 (18:26 +0000)] 
testing functions, operators, better textual stuff

20 years agomoved to test framework
Mike Bayer [Sun, 4 Dec 2005 18:26:00 +0000 (18:26 +0000)] 
moved to test framework

20 years agomath operators
Mike Bayer [Sun, 4 Dec 2005 02:15:06 +0000 (02:15 +0000)] 
math operators
&|~ boolean operators
added 'literal' keyword
working on column clauses being more flexible

20 years agodev
Mike Bayer [Sun, 4 Dec 2005 02:13:55 +0000 (02:13 +0000)] 
dev

20 years agodev
Mike Bayer [Sun, 4 Dec 2005 00:30:44 +0000 (00:30 +0000)] 
dev

20 years agodev
Mike Bayer [Sun, 4 Dec 2005 00:19:07 +0000 (00:19 +0000)] 
dev

20 years agoprimary_keys => primary_key
Mike Bayer [Sun, 4 Dec 2005 00:18:51 +0000 (00:18 +0000)] 
primary_keys => primary_key

20 years agofixed orderby for eager load with selectalias
Mike Bayer [Sun, 4 Dec 2005 00:18:38 +0000 (00:18 +0000)] 
fixed orderby for eager load with selectalias

20 years agobetter check for circular eager loaders
Mike Bayer [Sat, 3 Dec 2005 09:00:26 +0000 (09:00 +0000)] 
better check for circular eager loaders

20 years agorefactorings to sql generation, unions, engine location
Mike Bayer [Sat, 3 Dec 2005 08:41:18 +0000 (08:41 +0000)] 
refactorings to sql generation, unions, engine location

20 years agotweek
Mike Bayer [Sat, 3 Dec 2005 06:27:40 +0000 (06:27 +0000)] 
tweek

20 years agofixed tree examples import scheme, tweak to properties import
Mike Bayer [Sat, 3 Dec 2005 06:18:55 +0000 (06:18 +0000)] 
fixed tree examples import scheme, tweak to properties import

20 years agorearranging mapper/objectstore into a subdirectory, breaking up files since they...
Mike Bayer [Sat, 3 Dec 2005 06:13:09 +0000 (06:13 +0000)] 
rearranging mapper/objectstore into a subdirectory, breaking up files since they are huge

20 years agomoved eagermapper creation up to insure theres no mapper conflicts when creating...
Mike Bayer [Sat, 3 Dec 2005 05:29:12 +0000 (05:29 +0000)] 
moved eagermapper creation up to insure theres no mapper conflicts when creating/saving

20 years agomany-to-many mechanism changed the ordering of the three queries involved
Mike Bayer [Sat, 3 Dec 2005 05:19:22 +0000 (05:19 +0000)] 
many-to-many mechanism changed the ordering of the three queries involved

20 years agoadded manytomany to alltests
Mike Bayer [Sat, 3 Dec 2005 05:16:25 +0000 (05:16 +0000)] 
added manytomany to alltests
name stuff in manytomany
columns test works against generic Types instead of ANSI-named types

20 years agoadded string-based URLS to create connections
Mike Bayer [Sat, 3 Dec 2005 05:12:56 +0000 (05:12 +0000)] 
added string-based URLS to create connections

20 years agoname change!
Mike Bayer [Sat, 3 Dec 2005 04:56:59 +0000 (04:56 +0000)] 
name change!

20 years agoadded a third "mapper" to a many-to-many relationship that becomes the dependency...
Mike Bayer [Sat, 3 Dec 2005 04:34:12 +0000 (04:34 +0000)] 
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

20 years agoadded functionality to map columns to their aliased versions.
Mike Bayer [Fri, 2 Dec 2005 08:49:45 +0000 (08:49 +0000)] 
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.

20 years agonew test to check a new eager loader feature that loads against aliased names
Mike Bayer [Fri, 2 Dec 2005 08:45:38 +0000 (08:45 +0000)] 
new test to check a new eager loader feature that loads against aliased names

20 years agoAdded float type to support real/double precision/float8/etc sql data types. Added...
Robert Leftwich [Thu, 1 Dec 2005 12:51:38 +0000 (12:51 +0000)] 
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).

20 years agotable reflection will default to SLString. default filename added to be :memory:.
Mike Bayer [Thu, 1 Dec 2005 05:19:10 +0000 (05:19 +0000)] 
table reflection will default to SLString.  default filename added to be :memory:.

20 years agomore tweaks to import scheme
Mike Bayer [Wed, 30 Nov 2005 06:01:18 +0000 (06:01 +0000)] 
more tweaks to import scheme

20 years agoadjusted docs to account for import convention, proper sqlite calling convention
Mike Bayer [Wed, 30 Nov 2005 06:00:41 +0000 (06:00 +0000)] 
adjusted docs to account for import convention, proper sqlite calling convention

20 years agomigrated __ALL__ to __all__, oops, and reworked module
Mike Bayer [Wed, 30 Nov 2005 05:39:11 +0000 (05:39 +0000)] 
migrated __ALL__ to __all__, oops, and reworked module
import scheme