summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy
Commit message (Collapse)AuthorAgeFilesLines
* some more tweaks to get more advanced polymorphic stuff to workMike Bayer2006-03-243-6/+39
|
* added explicit "convert date types to a string in bind params", since ↵Mike Bayer2006-03-231-0/+5
| | | | pysqlite1 doesnet seem to do it, operation is synymous with what pysqlite2 does
* added oracle8 test target, sets use_ansi to falseMike Bayer2006-03-231-9/+4
| | | | got mapper, objectstore, inheritance unittest working with oracle8, tweaks to join syntax
* another adjustment...Mike Bayer2006-03-231-1/+1
|
* some adjustments to oracle non-ansi join concatenation, 'row number over' syntaxMike Bayer2006-03-231-4/+10
|
* added some extra traversal for one-to-many/many-to-one "private" relations ↵Mike Bayer2006-03-221-9/+21
| | | | to allow single-object commits to cascade into private child objects
* removed printMike Bayer2006-03-221-1/+0
|
* fixed oracle's efforts to get an ORDER BY for its ROW NUMBER OVER clause, ↵Mike Bayer2006-03-221-3/+5
| | | | fixed support for multi-leveled Alias objects to render correctly
* added "nest_on" option for Session, so nested transactions can occur mostly ↵Mike Bayer2006-03-223-8/+41
| | | | | | at the Session level, fixes [ticket:113]
* fixed lazy clause construction to go off...you guessed it...the noninherited ↵Mike Bayer2006-03-211-1/+2
| | | | table !
* added "name" back to FromClauseMike Bayer2006-03-211-1/+1
|
* a few changes to attributes.py to allow faster initialization of object ↵Mike Bayer2006-03-213-8/+36
| | | | attributes on new objects
* a refactoring to the EagerLoaders' _instance method to do a bunch of column ↵Mike Bayer2006-03-211-6/+18
| | | | arithmetic up front, instead of on each row
* a few tweaks and the polymorph example can also use eager loadingMike Bayer2006-03-202-0/+9
|
* added distinct() function to column elements for "DISTINCT <col>"Mike Bayer2006-03-191-0/+2
|
* got rid of from "ids", using the From object itself as identity now. ↵Mike Bayer2006-03-192-23/+17
| | | | improves correlation logic and fixes [ticket:116]
* got clause elements inside INSERTs going...Mike Bayer2006-03-191-7/+15
|
* der + engine...Mike Bayer2006-03-181-1/+1
|
* got oracle parenthesized rules for funcs back, fixed copy_container on functionMike Bayer2006-03-183-3/+9
|
* PropertyLoader will not re-determine direction when initialized a second ↵Mike Bayer2006-03-181-1/+5
| | | | time, as it is re-initialized as a copy made for an inheriting mapper, and no longer can get to the correct inheriting table.
* rolled back the operationalerror catch...definitely doesnt work right nowMike Bayer2006-03-171-3/+0
|
* put a try/finally to insure that SQLSession is cleaned out on ↵Mike Bayer2006-03-171-6/+10
| | | | rollback/commit regardless of issues
* overhaul to SQLSession change from yesterday, needs to use the threadlocal ↵Mike Bayer2006-03-172-7/+18
| | | | capability of the pool after all
* attempting to catch OperationalErrors and invalidate the connectionMike Bayer2006-03-171-0/+3
|
* added invalidate() method to connectionfairy, allows the connection to be ↵Mike Bayer2006-03-171-0/+3
| | | | removed from pooling
* identified more issues with inheritance. mapper inheritance is more ↵Mike Bayer2006-03-174-17/+33
| | | | | | | closed-minded about how it creates the join crit erion as well as the sync rules in inheritance. syncrules have been tightened up to be smarter about creating a new SyncRule given lists of tables and a join clause. properties also checks for relation direction against the "noninherited table" which for the moment makes it a stronger requirement that a relation to a mapper must relate to that mapper's main table, not any tables that it inherits from.
* an import ! eeshMike Bayer2006-03-171-1/+1
|
* removed old function generation override, ANSI functions handled by the core nowMike Bayer2006-03-171-6/+0
|
* fixed nasty transaction counting bug with new session thing + unit testMike Bayer2006-03-171-0/+6
|
* refactor to engine to have a separate SQLSession object. allows nested ↵Mike Bayer2006-03-173-42/+64
| | | | | | | transactions. util.ThreadLocal __hasattr__ method/raise_error param meaningless, removed renamed old engines test to reflection
* SQLSession.....Mike Bayer2006-03-171-1/+3
|
* factored objectstore into two packages, one more public facing the other ↵Mike Bayer2006-03-172-805/+839
| | | | more to be *feared* ! :)
* John Dell'Aquila's patch which fixes [ticket:103] [ticket:105], selecting ↵Mike Bayer2006-03-161-13/+30
| | | | primary keys properly and using the ALL_* instead of USER_* tables
* expanded and integrated qvx's patch for dotted function namesMike Bayer2006-03-163-7/+16
|
* reorganized SingletonThreadPool to return distinct connections in the same ↵Mike Bayer2006-03-161-9/+11
| | | | thread; use_threadlocal behavior is now switchable
* J. Ellis' "Simple" ORM module...for Spyce ! (and others...)Mike Bayer2006-03-161-0/+72
|
* added unique_connection() method to engine, connection pool to return a ↵Mike Bayer2006-03-142-8/+21
| | | | | | connection that is not part of the thread-local context or any current transaction
* fixed attributes bug where if an object is committed, its lazy-loaded list gotMike Bayer2006-03-141-1/+1
| | | | blown away if it hadnt been loaded
* removed redundant is_dirty functionMike Bayer2006-03-141-5/+0
|
* added scalar subqueries within the column clause of another selectMike Bayer2006-03-132-11/+31
|
* Fix docstring and exception message in selectone_byAlexey Shamrin2006-03-131-2/+2
|
* added selectfirst_by/selectone_by, selectone throws exception if more than ↵Mike Bayer2006-03-131-17/+28
| | | | one row returned, courtesy J.Ellis
* tweak to get_direction, rolls back a comparison of "foreigntable" to ↵Mike Bayer2006-03-131-2/+4
| | | | "parent"/"mapper" table to be more constrained. this change was originally in [changeset:1101] to help out the polymorph example but it now works without it. the change breaks the Post/Comment relationship in the ZBlog demo since the Post mapper has the comments table inside of it (also with no workaround).
* oracle is requiring dictionary params to be in a clean dict, added conversionMike Bayer2006-03-133-21/+32
| | | | some fixes to unit tests
* small tweak to select in order to fix [ticket:112]...the exported columns ↵Mike Bayer2006-03-131-1/+1
| | | | when doing select on a select() will be the column names, not the keys. this is with selects that have use_labels=False. which makes sense since using the "key" and not the name implies a label has to be used.
* refactor to Compiled.get_params() to return new ClauseParameters object, a ↵Mike Bayer2006-03-1311-50/+62
| | | | | | | | | | | more intelligent bind parameter dictionary that does type conversions late and preserves the unconverted value; used to fix mappers not comparing correct value in post-fetch [ticket:110] removed pre_exec assertion from oracle/firebird regarding "check for sequence/primary key value" fix to Unicode type to check for null, fixes [ticket:109] create_engine() now uses genericized parameters; host/hostname, db/dbname/database, password/passwd, etc. for all engine connections fix to select([func(column)]) so that it creates a FROM clause to the column's table, fixes [ticket:111] doc updates for column defaults, indexes, connection pooling, engine params unit tests for the above bugfixes
* added expire() function + unit test fixes [ticket:95]Mike Bayer2006-03-102-0/+23
|
* utf-8 encoding is switchable at the engine level, ticket [ticket:101]Mike Bayer2006-03-102-5/+6
|
* committed patch for MSDouble/tinyint from [ticket:106]Mike Bayer2006-03-101-1/+19
|
* added exception importMike Bayer2006-03-101-0/+1
|