Sqlalchemy

Latest version: v2.0.36

Safety actively analyzes 683249 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 50 of 51

0.2.1

Not secure
:released: Mon May 29 2006

.. change::
:tags:
:tickets:

"pool" argument to create_engine() properly propagates

.. change::
:tags:
:tickets:

fixes to URL, raises exception if not parsed, does not pass blank
fields along to the DB connect string (a string such as
user:host/db was breaking on postgres)

.. change::
:tags:
:tickets:

small fixes to Mapper when it inserts and tries to get
new primary key values back

.. change::
:tags:
:tickets:

rewrote half of TLEngine, the ComposedSQLEngine used with
'strategy="threadlocal"'. it now properly implements engine.begin()/
engine.commit(), which nest fully with connection.begin()/trans.commit().
added about six unittests.

.. change::
:tags:
:tickets:

major "duh" in pool.Pool, forgot to put back the WeakValueDictionary.
unittest which was supposed to check for this was also silently missing
it. fixed unittest to ensure that ConnectionFairy properly falls out
of scope.

.. change::
:tags:
:tickets:

placeholder dispose() method added to SingletonThreadPool, doesn't
do anything yet

.. change::
:tags:
:tickets:

rollback() is automatically called when an exception is raised,
but only if there's no transaction in process (i.e. works more like
autocommit).

.. change::
:tags:
:tickets:

fixed exception raise in sqlite if no sqlite module present

.. change::
:tags:
:tickets:

added extra example detail for association object doc

.. change::
:tags:
:tickets:

Connection adds checks for already being closed

.. changelog::

0.2.0

Not secure
:released: Sat May 27 2006

.. change::
:tags:
:tickets:

overhaul to Engine system so that what was formerly the SQLEngine
is now a ComposedSQLEngine which consists of a variety of components,
including a Dialect, ConnectionProvider, etc. This impacted all the
db modules as well as Session and Mapper.

.. change::
:tags:
:tickets:

create_engine now takes only RFC-1738-style strings:
``driver://user:passwordhost:port/database``

**update** this format is generally but not exactly RFC-1738,
including that underscores, not dashes or periods, are accepted in the
"scheme" portion.

.. change::
:tags:
:tickets: 152

total rewrite of connection-scoping methodology, Connection objects
can now execute clause elements directly, added explicit "close" as
well as support throughout Engine/ORM to handle closing properly,
no longer relying upon __del__ internally to return connections
to the pool.

.. change::
:tags:
:tickets:

overhaul to Session interface and scoping. uses hibernate-style
methods, including query(class), save(), save_or_update(), etc.
no threadlocal scope is installed by default. Provides a binding
interface to specific Engines and/or Connections so that underlying
Schema objects do not need to be bound to an Engine. Added a basic
SessionTransaction object that can simplistically aggregate transactions
across multiple engines.

.. change::
:tags:
:tickets:

overhaul to mapper's dependency and "cascade" behavior; dependency logic
factored out of properties.py into a separate module "dependency.py".
"cascade" behavior is now explicitly controllable, proper implementation
of "delete", "delete-orphan", etc. dependency system can now determine at
flush time if a child object has a parent or not so that it makes better
decisions on how that child should be updated in the DB with regards to deletes.

.. change::
:tags:
:tickets:

overhaul to Schema to build upon MetaData object instead of an Engine.
Entire SQL/Schema system can be used with no Engines whatsoever, executed
solely by an explicit Connection object. the "bound" methodology exists via the
BoundMetaData for schema objects. ProxyEngine is generally not needed
anymore and is replaced by DynamicMetaData.

.. change::
:tags:
:tickets: 167

true polymorphic behavior implemented, fixes

.. change::
:tags:
:tickets: 147

"oid" system has been totally moved into compile-time behavior;
if they are used in an order_by where they are not available, the order_by
doesn't get compiled, fixes

.. change::
:tags:
:tickets:

overhaul to packaging; "mapping" is now "orm", "objectstore" is now
"session", the old "objectstore" namespace gets loaded in via the
"threadlocal" mod if used

.. change::
:tags:
:tickets:

mods now called in via "import <modname>". extensions favored over
mods as mods are globally-monkeypatching

.. change::
:tags:
:tickets: 154

fix to add_property so that it propagates properties to inheriting
mappers

.. change::
:tags:
:tickets:

backrefs create themselves against primary mapper of its originating
property, primary/secondary join arguments can be specified to override.
helps their usage with polymorphic mappers

.. change::
:tags:
:tickets: 31

"table exists" function has been implemented

.. change::
:tags:
:tickets: 98

"create_all/drop_all" added to MetaData object

.. change::
:tags:
:tickets:

improvements and fixes to topological sort algorithm, as well as more
unit tests

.. change::
:tags:
:tickets:

tutorial page added to docs which also can be run with a custom doctest
runner to ensure its properly working. docs generally overhauled to
deal with new code patterns

.. change::
:tags:
:tickets:

many more fixes, refactorings.

.. change::
:tags:
:tickets:

migration guide is available on the Wiki at
https://www.sqlalchemy.org/trac/wiki/02Migration



=============
0.3 Changelog
=============


.. changelog::

0.1.7

Not secure
:released: Fri May 05 2006

.. change::
:tags:
:tickets:

some fixes to topological sort algorithm

.. change::
:tags:
:tickets:

added DISTINCT ON support to Postgres (just supply distinct=[col1,col2..])

.. change::
:tags:
:tickets:

added __mod__ (% operator) to sql expressions

.. change::
:tags:
:tickets:

"order_by" mapper property inherited from inheriting mapper

.. change::
:tags:
:tickets:

fix to column type used when mapper UPDATES/DELETEs

.. change::
:tags:
:tickets:

with convert_unicode=True, reflection was failing, has been fixed

.. change::
:tags:
:tickets:

types types types! still weren't working....have to use TypeDecorator again :(

.. change::
:tags:
:tickets:

mysql binary type converts array output to buffer, fixes PickleType

.. change::
:tags:
:tickets:

fixed the attributes.py memory leak once and for all

.. change::
:tags:
:tickets:

unittests are qualified based on the databases that support each one

.. change::
:tags:
:tickets:

fixed bug where column defaults would clobber VALUES clause of insert objects

.. change::
:tags:
:tickets:

fixed bug where table def w/ schema name would force engine connection

.. change::
:tags:
:tickets:

fix for parenthesis to work correctly with subqueries in INSERT/UPDATE

.. change::
:tags:
:tickets:

HistoryArraySet gets extend() method

.. change::
:tags:
:tickets:

fixed lazyload support for other comparison operators besides =

.. change::
:tags:
:tickets:

lazyload fix where two comparisons in the join condition point to the
samem column

.. change::
:tags:
:tickets:

added "construct_new" flag to mapper, will use __new__ to create instances
instead of __init__ (standard in 0.2)

.. change::
:tags:
:tickets:

added selectresults.py to SVN, missed it last time

.. change::
:tags:
:tickets:

tweak to allow a many-to-many relationship from a table to itself via
an association table

.. change::
:tags:
:tickets:

small fix to "translate_row" function used by polymorphic example

.. change::
:tags:
:tickets:

create_engine uses cgi.parse_qsl to read query string (out the window in 0.2)

.. change::
:tags:
:tickets:

tweaks to CAST operator

.. change::
:tags:
:tickets:

fixed function names LOCAL_TIME/LOCAL_TIMESTAMP -> LOCALTIME/LOCALTIMESTAMP

.. change::
:tags:
:tickets:

fixed order of ORDER BY/HAVING in compile

.. changelog::

0.1.6

Not secure
:released: Wed Apr 12 2006

.. change::
:tags:
:tickets:

support for MS-SQL added courtesy Rick Morrison, Runar Petursson

.. change::
:tags:
:tickets:

the latest SQLSoup from J. Ellis

.. change::
:tags:
:tickets:

ActiveMapper has preliminary support for inheritance (Jeff Watkins)

.. change::
:tags:
:tickets:

added a "mods" system which allows pluggable modules that modify/augment
core functionality, using the function "install_mods(\*modnames)".

.. change::
:tags:
:tickets:

added the first "mod", SelectResults, which modifies mapper selects to
return generators that turn ranges into LIMIT/OFFSET queries
(Jonas Borgstr?

.. change::
:tags:
:tickets:

factored out querying capabilities of Mapper into a separate Query object
which is Session-centric. this improves the performance of mapper.using(session)
and makes other things possible.

.. change::
:tags:
:tickets:

objectstore/Session refactored, the official way to save objects is now
via the flush() method. The begin/commit functionality of Session is factored
into LegacySession which is still established as the default behavior, until
the 0.2 series.

.. change::
:tags:
:tickets:

types system is bound to an engine at query compile time, not schema
construction time. this simplifies the types system as well as the ProxyEngine.

.. change::
:tags:
:tickets:

added 'version_id' keyword argument to mapper. this keyword should reference a
Column object with type Integer, preferably non-nullable, which will be used on
the mapped table to track version numbers. this number is incremented on each
save operation and is specified in the UPDATE/DELETE conditions so that it
factors into the returned row count, which results in a ConcurrencyError if the
value received is not the expected count.

.. change::
:tags:
:tickets:

added 'entity_name' keyword argument to mapper. a mapper is now associated
with a class via the class object as well as an optional entity_name parameter,
which is a string defaulting to None. any number of primary mappers can be
created for a class, qualified by the entity name. instances of those classes
will issue all of their load and save operations through their
entity_name-qualified mapper, and maintain separate a identity in the identity
map for an otherwise equivalent object.

.. change::
:tags:
:tickets:

overhaul to the attributes system. code has been clarified, and also fixed to
support proper polymorphic behavior on object attributes.

.. change::
:tags:
:tickets:

added "for_update" flag to Select objects

.. change::
:tags:
:tickets:

some fixes for backrefs

.. change::
:tags:
:tickets:

fix for postgres1 DateTime type

.. change::
:tags:
:tickets:

documentation pages mostly switched over to Markdown syntax

.. changelog::

0.1.5

Not secure
:released: Mon Mar 27 2006

.. change::
:tags:
:tickets:

added SQLSession concept to SQLEngine. this object keeps track of retrieving a
connection from the connection pool as well as an in-progress transaction.
methods push_session() and pop_session() added to SQLEngine which push/pop a new
SQLSession onto the engine, allowing operation upon a second connection "nested"
within the previous one, allowing nested transactions. Other tricks are sure to
come later regarding SQLSession.

.. change::
:tags:
:tickets:

added nest_on argument to objectstore.Session. This is a single SQLEngine or
list of engines for which push_session()/pop_session() will be called each time
this Session becomes the active session (via objectstore.push_session() or
equivalent). This allows a unit of work Session to take advantage of the nested
transaction feature without explicitly calling push_session/pop_session on the
engine.

.. change::
:tags:
:tickets:

factored apart objectstore/unitofwork to separate "Session scoping" from
"uow commit heavy lifting"

.. change::
:tags:
:tickets:

added populate_instance() method to MapperExtension. allows an extension to
modify the population of object attributes. this method can call the
populate_instance() method on another mapper to proxy the attribute population
from one mapper to another; some row translation logic is also built in to help
with this.

.. change::
:tags:
:tickets:

fixed Oracle8-compatibility "use_ansi" flag which converts JOINs to
comparisons with the = and (+) operators, passes basic unittests

.. change::
:tags:
:tickets:

tweaks to Oracle LIMIT/OFFSET support

.. change::
:tags:
:tickets:

Oracle reflection uses ALL_** views instead of USER_** to get larger
list of stuff to reflect from

.. change::
:tags:
:tickets: 105

fixes to Oracle foreign key reflection

.. change::
:tags:
:tickets:

objectstore.commit(obj1, obj2,...) adds an extra step to seek out private
relations on properties and delete child objects, even though its not a global
commit

.. change::
:tags:
:tickets:

lots and lots of fixes to mappers which use inheritance, strengthened the
concept of relations on a mapper being made towards the "local" table for that
mapper, not the tables it inherits. allows more complex compositional patterns
to work with lazy/eager loading.

.. change::
:tags:
:tickets:

added support for mappers to inherit from others based on the same table,
just specify the same table as that of both parent/child mapper.

.. change::
:tags:
:tickets:

some minor speed improvements to the attributes system with regards to
instantiating and populating new objects.

.. change::
:tags:
:tickets:

fixed MySQL binary unit test

.. change::
:tags:
:tickets:

INSERTs can receive clause elements as VALUES arguments, not just literal
values

.. change::
:tags:
:tickets:

support for calling multi-tokened functions, i.e. schema.mypkg.func()

.. change::
:tags:
:tickets:

added J. Ellis' SQLSoup module to extensions package

.. change::
:tags:
:tickets:

added "polymorphic" examples illustrating methods to load multiple object types
from one mapper, the second of which uses the new populate_instance() method.
small improvements to mapper, UNION construct to help the examples along

.. change::
:tags:
:tickets:

improvements/fixes to session.refresh()/session.expire() (which may have
been called "invalidate" earlier..)

.. change::
:tags:
:tickets:

added session.expunge() which totally removes an object from the current
session

.. change::
:tags:
:tickets:

added \*args, \**kwargs pass-through to engine.transaction(func) allowing easier
creation of transactionalizing decorator functions

.. change::
:tags:
:tickets:

added iterator interface to ResultProxy: "for row in result:..."

.. change::
:tags:
:tickets:

added assertion to tx = session.begin(); tx.rollback(); tx.begin(), i.e. can't
use it after a rollback()

.. change::
:tags:
:tickets:

added date conversion on bind parameter fix to SQLite enabling dates to
work with pysqlite1

.. change::
:tags:
:tickets: 116

improvements to subqueries to more intelligently construct their FROM
clauses

.. change::
:tags:
:tickets:

added PickleType to types.

.. change::
:tags:
:tickets:

fixed two bugs with column labels with regards to bind parameters: bind param
keynames they are now generated from a column "label" in all relevant cases to
take advantage of excess-name-length rules, and checks for a peculiar collision
against a column named the same as "tablename_colname" added

.. change::
:tags:
:tickets:

major overhaul to unit of work documentation, other documentation sections.

.. change::
:tags:
:tickets:

fixed attributes bug where if an object is committed, its lazy-loaded list got
blown away if it hadn't been loaded

.. change::
:tags:
:tickets:

added unique_connection() method to engine, connection pool to return a
connection that is not part of the thread-local context or any current
transaction

.. change::
:tags:
:tickets:

added invalidate() function to pooled connection. will remove the connection
from the pool. still need work for engines to auto-reconnect to a stale DB
though.

.. change::
:tags:
:tickets:

added distinct() function to column elements so you can do
func.count(mycol.distinct())

.. change::
:tags:
:tickets:

added "always_refresh" flag to Mapper, creates a mapper that will always
refresh the attributes of objects it gets/selects from the DB, overwriting any
changes made.

.. changelog::

0.1.4

Not secure
:released: Mon Mar 13 2006

.. change::
:tags:
:tickets:

create_engine() now uses genericized parameters; host/hostname,
db/dbname/database, password/passwd, etc. for all engine connections. makes
engine URIs much more "universal"

.. change::
:tags:
:tickets:

added support for SELECT statements embedded into a column clause, using the
flag "scalar=True"

.. change::
:tags:
:tickets:

another overhaul to EagerLoading when used in conjunction with mappers that
inherit; improvements to eager loads figuring out their aliased queries
correctly, also relations set up against a mapper with inherited mappers will
create joins against the table that is specific to the mapper itself (i.e. and
not any tables that are inherited/are further down the inheritance chain),
this can be overridden by using custom primary/secondary joins.

.. change::
:tags:
:tickets:

added J.Ellis patch to mapper.py so that selectone() throws an exception
if query returns more than one object row, selectfirst() to not throw the
exception. also adds selectfirst_by (synonymous with get_by) and selectone_by

.. change::
:tags:
:tickets:

added onupdate parameter to Column, will exec SQL/python upon an update
statement.Also adds "for_update=True" to all DefaultGenerator subclasses

.. change::
:tags:
:tickets:

added support for Oracle table reflection contributed by Andrija Zaric;
still some bugs to work out regarding composite primary keys/dictionary selection

.. change::
:tags:
:tickets:

checked in an initial Firebird module, awaiting testing.

.. change::
:tags:
:tickets:

added sql.ClauseParameters dictionary object as the result for
compiled.get_params(), does late-typeprocessing of bind parameters so
that the original values are easier to access

.. change::
:tags:
:tickets:

more docs for indexes, column defaults, connection pooling, engine construction

.. change::
:tags:
:tickets:

overhaul to the construction of the types system. uses a simpler inheritance
pattern so that any of the generic types can be easily subclassed, with no need
for TypeDecorator.

.. change::
:tags:
:tickets:

added "convert_unicode=False" parameter to SQLEngine, will cause all String
types to perform unicode encoding/decoding (makes Strings act like Unicodes)

.. change::
:tags:
:tickets:

added 'encoding="utf8"' parameter to engine. the given encoding will be
used for all encode/decode calls within Unicode types as well as Strings
when convert_unicode=True.

.. change::
:tags:
:tickets:

improved support for mapping against UNIONs, added polymorph.py example
to illustrate multi-class mapping against a UNION

.. change::
:tags:
:tickets:

fix to SQLite LIMIT/OFFSET syntax

.. change::
:tags:
:tickets:

fix to Oracle LIMIT syntax

.. change::
:tags:
:tickets:

added backref() function, allows backreferences to have keyword arguments
that will be passed to the backref.

.. change::
:tags:
:tickets:

Sequences and ColumnDefault objects can do execute()/scalar() standalone

.. change::
:tags:
:tickets:

SQL functions (i.e. func.foo()) can do execute()/scalar() standalone

.. change::
:tags:
:tickets:

fix to SQL functions so that the ANSI-standard functions, i.e. current_timestamp
etc., do not specify parenthesis. all other functions do.

.. change::
:tags:
:tickets:

added settattr_clean and append_clean to SmartProperty, which set
attributes without triggering a "dirty" event or any history. used as:
myclass.prop1.setattr_clean(myobject, 'hi')

.. change::
:tags:
:tickets:

improved support to column defaults when used by mappers; mappers will pull
pre-executed defaults from statement's executed bind parameters
(pre-conversion) to populate them into a saved object's attributes; if any
PassiveDefaults have fired off, will instead post-fetch the row from the DB to
populate the object.

.. change::
:tags:
:tickets:

added 'get_session().invalidate(\*obj)' method to objectstore, instances will
refresh() themselves upon the next attribute access.

.. change::
:tags:
:tickets:

improvements to SQL func calls including an "engine" keyword argument so
they can be execute()d or scalar()ed standalone, also added func accessor to
SQLEngine

.. change::
:tags:
:tickets:

fix to MySQL4 custom table engines, i.e. TYPE instead of ENGINE

.. change::
:tags:
:tickets:

slightly enhanced logging, includes timestamps and a somewhat configurable
formatting system, in lieu of a full-blown logging system

.. change::
:tags:
:tickets:

improvements to the ActiveMapper class from the TG gang, including
many-to-many relationships

.. change::
:tags:
:tickets:

added Double and TinyInt support to mysql

.. changelog::

Page 50 of 51

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.