Here you can see the full list of changes between each SQLAlchemy-Utils release.
- Drop support for Python 3.7 and 3.8.
- Drop support for sqlalchemy 1.3.
- Add support for Python 3.12.
- Add a Read the Docs configuration file.
- Make documentation builds reproducible.
- Test documentation builds in CI.
- Fix Pendulum parsing of datetime instances with timezones. (#755)
- Fix breaking change introduced on SQLAlchemy 2.0.22 changes to
attributes.AttributeImpl
constructor (#733)
- Use a custom SQL construct for refreshing materialized views in
refresh_materialized_view
(#703)
- Support psycopg3 for
create_database()
anddelete_database()
. (#701, pull request by LerikP)
- Remove Python 3.6 support
- Add SQLAlchemy 2 support
- Add comparison operator support for LTree type (#668, pull request by salimfadhley)
- Support Python 3.11.
- Add pre-commit hooks for uniform text checks, isort, flake8, and pyupgrade.
- Fix a crash that occurs if the
colour-science
package is installed, which shares the same import name as thecolour
package that sqlalchemy-utils supports. (#637, courtesy of JayPalm) - Fix a crash that occurs if the installed sqlalchemy version is a beta (like
"2.0.0b3"
). (Reported in #643, thanks Dinmukhamet!)
- Fixed double-quoted UUID's in sqlalchemy >= 1.4.30 (#581, pull request courtesy of kurtmckee)
- Fixed create_database() and drop_database() crashing with CockroachDB (#586, pull request courtesy of kurtmckee)
- Added mixed case support for pg composite (#584, pull request courtesy of bamartin125)
- Support Python 3.10.
- Drop support for Python 3.4 and 3.5.
- Remove the dependency on the six package. (#605)
- Introduce sqlalchemy 2.0 compatibility. (#513)
- Added inherit_cache=False in order to avoid SQLAlchemy warnings in
cast_locale_expr
(#571)
- Added cache_ok=True for various different types
- Removed CompositeArray. Instead of CompositeArray one should use ARRAY(dimensions=1)
- Made ChoicesType only convert lists to tuples internally.
- Fixed base padding class abstract methods (#547, pull request courtesy of dpgaspar)
- Optimized cast_locale function (#552, pull request courtesy of tvuotila)
- Allow for arbitrary Table keyword arguments in create_table_from_selectable (#551, pull request courtesy of quoimec)
- Added 'zoneinfo' backend to TimezoneType (#510, pull request courtesy of huonw)
- Added identifier quoting for view functions and constructs
- Added literal processor for UUIDType
- Added
cache_ok=True
for TSVectorType
- Fixed instant_defaults_listener to respect constructor supplied kwargs (#516, pull request courtesy of soundstripe)
- Fixed incorrect Ltree.lca behaviour (#468, pull request courtesy of slymit)
- Added
cache_ok=True
for all custom types - Added CockroachDB support for UUIDType (#526, pull request courtesy of chrishemmings)
- Added python_requires to setup.py
- Removed py27 from pypi wheel
- Added SQLAlchemy 1.4 support
- Fixed database_exists() on PostgreSQL (#462)
- Added create_database support pymssql (#486)
- Removed
sort_query
,get_query_entities
andget_query_entity_by_alias
functions
- Don't connect to 'postgres' data base for database existence check (#372, pull request courtesy of bernt-matthias)
- Fix dynamic relationships for observables (#455)
- Dropped support for Python 2.7 (thanks for the help graingert)
- Reverted #426 and added support for Legacy Encrypted Type (#450, pull request courtesy of rushilsrivastava)
- Added psycopg2cffi support for create_database and drop_database (#447, pull request courtesy of DominicBurkart)
- Added support for dictionary input in CompositeType (#435, pull request courtesy of cozos)
- Added new EnrichedDateTime and EnrichedDate types (#403, pull request courtesy of yk-lab)
- Using String instead of LargeBinary for impl of EncryptedType (#426, pull request courtesy of aicioara)
- Added support for JSONType in EncryptedType (#439, pull request courtesy of rushilsrivastava)
- Added jsonb_sql function (#377, pull request courtesy of getglad)
- Drop py27 support
- Added hash method for PhoneNumberType (#428, pull request courtesy of hanc1208)
- Added repr for UUIDType (#424, pull request courtesy of ziima)
- Added support for CASCADE option when dropping views (#406, pull request courtesy of amicks)
- Added
aliases
parameter to create_materialized_view function.
- Removed explain and explain_analyze due to the internal changes in SQLAlchemy version 1.3.
- Removed some deprecation warnings
- Added Int8RangeType (#401, pull request courtesy of lpsinger)
- Remove ABC deprecation warnings (#386, pull request courtesy of VizualAbstract)
- Remove deprecation warnings (#379, pull request courtesy of Le-Stagiaire)
- Drop py34 support
- Removed array_agg compilation which was never a good idea and collided with the latest version of SA. (#374)
- Removed deprecation warnings (#373, pull request courtesy of pbasista)
- Added ordering support for Country primitive (#361, pull request courtesy of TrilceAC)
- Added support for creating and dropping a PostgreSQL database when using pg8000 driver (#303, pull request courtesy of mohaseeb)
- Removed optional dependency to Flask-Babel. Now using Babel instead. (#333, pull request courtesy of aveuiller)
- Fixed SQLite database_exists to check for correct file format (#306, pull request courtesy of jomasti)
- Added support of short-code in PhoneNumberType (#348, pull request courtesy of anandtripathi5)
- Added MSSQL support for create_database and drop_database (#337, pull request courtesy of jomasti)
- Fixed passlib compatibility issue (again) (#342)
- Added support for SQL VIEWs
- Added optional attr parameter for locale calleble in TranslationHybrid
- Fixed an issue with PasswordType so that it is compatible with older versions of passlib (#342)
- Made PasswordType use
hash
function instead of deprecatedencrypt
function (#341, pull request courtesy of libre-man)
- Added new AesGcmEngine (#322, pull request courtesy of manishahluwalia)
- Added support for universal wheels (#312, pull request courtesy of nsoranzo)
- Fixed usage of template0 and template1 with postgres database functions. (#286, pull request courtesy of funkybob)
- Fixed EncryptedType for Oracle padding attack (#316, pull request courtesy of manishahluwalia)
- Added support for materialized views in PostgreSQL
- Added Ltree.descendant_of and Ltree.ancestor_of (#311, pull request courtesy of kageurufu)
- Dropped Python 3.3 support
- Fixed EncryptedType padding (#301, pull request courtesy of konstantinoskostis)
- Close connections on exists, create and drop database functions (#295, pull request courtesy of Terseus)
- Added
__hash__
method for choice objects (#294, pull request courtesy of havelock)
- Fixed select_correlated_expression order by for intermediate table aliases
- Made aggregated attributes to work with subclass objects (#287, pull request courtesy of fayazkhan)
- Added support for MSSQL uniqueidentifier type (#283, pull request courtesy of nHurD)
- Added more hints when decrypting AES with an invalid key (#275, pull request courtesy of xrmx)
- Added better handling of date types for EncryptedType (#184, pull request courtesy of konstantinoskostis)
- Fixed drop_database version comparison
- Fixed a DeprecationWarning by using LargeBinary instead of Binary (#263, pull request courtesy of jacquerie)
- Added generic_repr decorator
- TimeZoneType support for static timezones (#244, pull request courtesy of fuhrysteve)
- Added SQLite support for PasswordType (#254, pull request courtesy of frol)
- Added PhoneNumber as the python_type for PhoneNumberType (#248)
- Made auto_delete_orphans support backref tuples (#234, pull request courtesy of vToMy)
- Added support for multi-column observers (#231, pull request courtesy of quantus)
- Fixed EmailType to respect constructor args (#230, pull request courtesy of quantus)
- Made PhoneNumber exceptions inherit SQLAlchemy's DontWrapMixin (#219, pull request courtesy of JackWink)
- Added support for timezones with ArrowType (#218, pull request courtesy of jmagnusson)
- Fixed import issue with latest version of SQLAlchemy (#215)
- Added LtreeType for PostgreSQL ltree extension
- Added Ltree primitive data type
- Added support for PhoneNumber objects as composites
- Fixed PasswordType to not access LazyCryptContext on type init (#211, pull request courtesy of olegpidsadnyi)
- Fixed database helpers for sqlite (#208, pull request courtesy of RobertDeRose)
- Fixed TranslationHybrid aliased entities handling (#198, pull request courtesy of jmagnusson)
- Dropped py26 support
- Made PasswordType to use LazyCryptContext by default (#204, courtesy of olegpidsadnyi)
- Added literal parameter processing for ArrowType (#182, pull request courtesy of jmagnusson)
- Fixed scalar parsing of LocaleType (#173)
- Fixed column alias handling with assert_* functions (#175)
- Fixed non-ascii string handling in composite types (#170)
- Fixed observes crashing when observable root_obj is
None
(#168)
- Column observers only notified when actual changes have been made to underlying columns (#138)
- Made has_index allow fk constraint as parameter
- Made has_unique_index allow fk constraint as parameter
- Made the extra packages in setup.py to be returned in deterministic order (courtesy of thomasgoirand)
- Removed is_indexed_foreign_key (superceded by more versatile has_index)
- Fixed LocaleType territory parsing (courtesy of dahlia)
- Added correlate parameter to select_correlated_expression function
- Fixed sort_query handling of aliased classes with hybrid properties
- Added support for aliased classes in get_hybrid_properties utility function
- Added cast_if utility function
- Added support for InstrumentedAttributes, ColumnProperties and Columns in get_columns function
- Added support for PhoneNumber extensions (#121)
- Fix None type handling of ChoiceType
- Make locale casting for translation hybrid expressions cast locales on compilation phase. This extra lazy locale casting is needed in some cases where translation hybrid expressions are used before get_locale
function is available.
- Added better support for dynamic locales in translation_hybrid
- Make babel dependent primitive types to use Locale('en') for data validation instead of current locale. Using current locale leads to infinite recursion in cases where the loaded data has dependency to the loaded object's locale.
- Added get_type utility function
- Added default parameter for array_agg function
- Added Asterisk compiler
- Added row_to_json GenericFunction
- Added array_agg GenericFunction
- Made quote function accept dialect object as the first paremeter
- Made has_index work with tables without primary keys (#148)
- Fixed CompositeType null handling
- Made psycopg2 requirement optional (#145, #146)
- Made CompositeArray work with tuples given as bind parameters
- Fixed CompositeType bind parameter processing when one of the fields is of TypeDecorator type and
CompositeType is used inside ARRAY type.
- Fixed CompositeType bind parameter processing when one of the fields is of TypeDecorator type.
- Added length property to range types
- Added CompositeType for PostgreSQL
- Fixed
assert_max_length
,assert_non_nullable
,assert_min_value
andassert_max_value
not properly raising anAssertionError
when the assertion failed.
- Drop undocumented batch fetch feature. Let's wait until the inner workings of SQLAlchemy loading API is well-documented.
- Fixed GenericRelationshipProperty comparator to work with SA 1.0.x (#139)
- Make all foreign key helpers SA 1.0 compliant
- Make translation_hybrid expression work the same way as SQLAlchemy-i18n translation expressions
- Update SQLAlchemy dependency to 1.0
- Added __hash__ method to Country class
- Made Country validate itself during object initialization
- Made Country string coercible
- Removed deprecated function generates
- Fixed observes function to work with simple column properties
- Added CurrencyType (#19) and Currency class
- Added get_class_by_table ORM utility function
- Added Enum representation support for ChoiceType
- Added customizable TranslationHybrid default value
- Made assert_max_length support PostgreSQL array type
- Made CaseInsensitiveComparator not cast already lowercased types to lowercase
- Fixed analyze function runtime property handling for PostgreSQL >= 9.4
- Fixed drop_database and create_database identifier quoting (#122)
- Removed deprecated defer_except (SQLAlchemy's own load_only should be used from now on)
- Added json_sql PostgreSQL helper function
- Added assert_min_value and assert_max_value testing functions
- Removed TSVectorType.match_tsquery (now replaced by TSVectorType.match to be compatible with SQLAlchemy)
- Removed undocumented function tsvector_concat
- Added support for TSVectorType concatenation through OR operator
- Added documentation for TSVectorType (#102)
- Made aggregated fully support column aliases
- Changed test matrix to run all tests without any optional dependencies (as well as with all optional dependencies)
- Fixed issue with Color importing (#104)
- Improved EncryptedType to support more underlying_type's; now supports: Integer, Boolean, Date, Time, DateTime, ColorType, PhoneNumberType, Unicode(Text), String(Text), Enum
- Allow a callable to be used to lookup the key for EncryptedType
- Fixed PhoneNumber string coercion (#93)
- Added observes decorator (generates decorator will be deprecated later)
- Added loose typed column checking support for get_column_key
- Made get_column_key throw UnmappedColumnError to be consistent with SQLAlchemy
- Fixed column alias handling in dependent_objects
- Fixed aggregated decorator many-to-many relationship handling
- Fixed aggregated column alias handling
- Added is_loaded utility function
- Removed deprecated has_any_changes
- Added support for Column and ColumnEntity objects in get_mapper
- Made make_order_by_deterministic add deterministic column more aggressively
- Fixed assert_max_length not working with non nullable columns
- Add PostgreSQL < 9.2 support for drop_database
- Made assert_* functions automatically rollback session
- Changed make_order_by_deterministic attach order by primary key for queries without order by
- Fixed alias handling in has_unique_index
- Fixed alias handling in has_index
- Fixed alias handling in make_order_by_deterministic
- Added assert_non_nullable, assert_nullable and assert_max_length testing functions
- Added supported for various SQLAlchemy objects in make_order_by_deterministic (previosly this function threw exceptions for other than Column objects)
- Fixed MapperEntity handling in get_mapper and get_tables utility functions
- Fixed make_order_by_deterministic handling for queries without order by (no just silently ignores those rather than throws exception)
- Made make_order_by_deterministic if given query uses strings as order by args
- Added support for more SQLAlchemy based objects and classes in get_tables function
- Added has_unique_index utility function
- Added make_order_by_deterministic utility function
- Added EncryptedType
- Added explain and explain_analyze expressions
- Added analyze function
- Fix aggregate value handling for cascade deleted objects
- Fix ambiguous column sorting with join table inheritance in sort_query
- Fix sort_query support for queries using mappers (not declarative classes) with calculated column properties
- Added count method to QueryChain class
- Added template parameter to create_database function
- Added quote utility function
- Fixed dependent_objects support for single table inheritance
- Fixed dependent_objects support for multiple dependencies
- Fixed PasswordType with Oracle dialect
- Added support for sort_query and attributes on mappers using with_polymorphic
- Fixed order by column property handling in sort_query when using polymorphic inheritance
- Added support for synonym properties in sort_query
- Made sort_query support hybrid properties where function name != property name
- Made get_hybrid_properties return a dictionary of property keys and hybrid properties
- Added documentation for get_hybrid_properties
- Added exclude parameter to has_changes
- Made has_changes accept multiple attributes as second parameter
- Added get_column_key
- Added Timestamp model mixin
- Added auto_delete_orphans
- Added has_any_changes
- Added various fixes for bugs found in use of psycopg2
- Added has_index
- Added get_bind
- Added group_foreign_keys
- Added get_mapper
- Added merge_references
- Added get_referencing_foreign_keys
- Added get_tables
- Added QueryChain
- Added dependent_objects
- Added ExpressionParser
- Added support for primary key aliases in get_primary_keys function
- Added get_columns utility function
- Fixed sort_query handling of regular properties (no longer throws exceptions)
- Added more import json as a fallback if anyjson package is not installed for JSONType
- Fixed query_entities labeled select handling
- Added single table inheritance support for generic_relationship
- Added support for comparing class super types with generic relationships
- BC break: In order to support different inheritance strategies generic_relationship now uses class names as discriminators instead of table names.
- Added hybrid_property support for generic_relationship
- Added string argument support for generic_relationship
- Added composite primary key support for generic_relationship
- Remove toolz from dependencies
- Add step argument support for all range types
- Optional intervals dependency updated to 0.2.4
- Made identity return a tuple in all cases
- Added support for declarative model classes as identity function's first argument
- Added getdotattr
- Added Path and AttrPath classes
- SQLAlchemy dependency updated to 0.9.3
- Optional intervals dependency updated to 0.2.2
- Fixed ArrowType timezone handling
- Added force_instant_defaults function
- Added force_auto_coercion function
- Added source paramater for generates function
- Fixed backref handling for aggregates
- Added support for many-to-many aggregates
- Fixed issues with ColorType and ChoiceType string bound parameter processing
- Fixed inheritance handling with aggregates
- Fixed generic relationship nullifying
- Added support for membership operators 'in' and 'not in' in range types
- Added support for contains and contained_by operators in range types
- Added range types to main module import
- Deprecated NumberRangeType, NumberRange
- Added IntRangeType, NumericRangeType, DateRangeType, DateTimeRangeType
- Moved NumberRange functionality to intervals package
- Fixed in issue where NumberRange would not always raise RangeBoundsException with object initialization
- Added SQLAlchemy 0.9 support
- Made JSONType use sqlalchemy.dialects.postgresql.JSON if available
- Updated psycopg requirement to 2.5.1
- Deprecated NumberRange classmethod constructors
- Added support for cached aggregates
- Added JSONType
- NumberRangeType now supports coercing of integer values
- Added ChoiceType
- Added LocaleType
- Removed compat module, added total_ordering package to Python 2.6 requirements
- Enhanced render_statement function
- Added URLType
- Added __ne__ operator implementation for Country object
- New utility function: naturally_equivalent
- Renamed match operator of TSVectorType to match_tsquery in order to avoid confusion with existing match operator
- Added catalog parameter support for match_tsquery operator
- Added match operator for TSVectorType
- Added optional columns and options parameter for TSVectorType
- Fixed an issue with sort_query where sort by relationship property would cause an exception.
- Fixed an issue with sort_query where sort by main entity's attribute would fail if joins where applied.
- Added configuration for silent mode in sort_query
- Added support for aliased entity hybrid properties in sort_query
- Fixed sort_query hybrid property handling (again)
- Added support for relation hybrid property sorting in sort_query
- Fixed fatal bug in batch fetch join table inheritance handling (not handling one-to-many relations properly)
- Fixed sort_query hybrid property handling (now supports both ascending and descending sorting)
- More pythonic __init__ for Country allowing Country(Country('fi')) == Country('fi')
- Better equality operator for Country
- Added i18n module for configuration of locale dependant types
- Fixed remaining Python 3 issues with WeekDaysType
- Better bound method handling for WeekDay get_locale
- Python 3 support for WeekDaysType
- Fixed a bug in batch fetch for situations where joined paths contain zero entitites
- Added WeekDaysType
- Support for many-to-one directed relationship properties batch fetching
- PasswordType support for PostgreSQL
- Hybrid property for sort_query
- Added better handling of local column names in batch_fetch
- PasswordType gets default length even if no crypt context schemes provided
- Rewritten batch_fetch schematics, new syntax for backref population
- Initial backref population forcing support for batch_fetch
- Initial many-to-many relations support for batch_fetch
- Added batch_fetch function
- Added to_tsquery and plainto_tsquery sql function expressions
- Added tsvector_concat and tsvector_match sql function expressions
- Added ArrowType
- Added utility functions declarative_base, identity and is_auto_assigned_date_column
- Added PasswordType
- Lazy import for ipaddress package
- Fixed UUID import issues
- Added UUID type
- Added TSVector type
- Added non_indexed_foreign_keys utility function
- Fixed py3 bug introduced in 0.14.1
- Made sort_query support column_property selects with labels
- Python 3 support, dropped python 2.5 support
- Initial support for psycopg 2.5 NumericRange objects
- QuerySorter now threadsafe.
- Made sort_query function support multicolumn sorting.
- Added table_name utility function.
- ProxyDict now contains None values in cache - more efficient contains method.
- Fixed ProxyDict contains method
- Proxy dict expiration listener from function scope to global scope
- Added automatic expiration of proxy dicts
- Added utility functions remove_property and primary_keys
- Added ProxyDict
- Added coercion_listener
- Added ColorType
- Renamed Email to EmailType and ScalarList to ScalarListType (unified type class naming convention)
- Added CaseInsensitiveComparator
- Added Email type
- Added sort by aliased and joined entity
- sort_query now supports labeled and subqueried scalars
- Fixed empty ScalarList handling
- Removed unnecessary print statement form ScalarList
- Documentation for ScalarList and NumberRange
- Added ScalarList type
- Fixed NumberRange bind param and result value processing
- Changed PhoneNumber string representation to the national phone number format
- NumberRange now wraps ValueErrors as NumberRangeExceptions
- Fixed defer_except
- Better string representations for NumberRange
- Fixed NumberRange upper bound parsing
- Enabled PhoneNumberType None value storing
- Enhanced string parsing for NumberRange
- Fixed requirements (now supports SQLAlchemy 0.8)
- Added NumberRange type
- Extended PhoneNumber class from python-phonenumbers library
- Added PhoneNumberType type decorator
- Renamed SmartList to InstrumentedList
- Added instrumented_list decorator
- Added new collection class SmartList
- Added new function defer_except()
- Initial public release