summaryrefslogtreecommitdiff
path: root/oslo_db/sqlalchemy/ndb.py
Commit message (Collapse)AuthorAgeFilesLines
* Deprecate MySQL NDB Cluster SupportStephen Finucane2022-07-271-8/+49
| | | | | | | | | | | | | | | | | | | | | | Traditionally, the MySQL support in oslo.db has assumed use of the InnoDB storage engine. However, this isn't the only storage engine available and a few years ago an effort was made to add support for another storage engine, MySQL Cluster (NDB). The oslo.db aspects of this effort were tracked via bug 1564110 [1] and from reading this bug and looking at other patches related to this effort [2], it becomes obvious that this was never seen through to the completion and the OpenStack-wide effort never took off [3]. As a result, much of what is here is in-effect dead code now. Given no one is using this engine, there's no reason to keep it around. Deprecate it with an eye on removing it sooner rather than later. [1] https://bugs.launchpad.net/oslo.db/+bug/1564110 [2] https://review.opendev.org/q/owner:octave.orgeron%2540oracle.com [3] https://review.opendev.org/c/openstack/openstack-specs/+/429940 Change-Id: Id5ddf1d6f47b8a572001f58ad8b9b8a7dbe4e8ac Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
* Raise minimum SQLAlchemy version to 1.2.0Stephen Finucane2020-02-251-3/+2
| | | | | | | | | | Per [1], this is the latest supported version of SQLAlchemy. 1.1.x and earlier are EOL. [1] https://www.sqlalchemy.org/download.html#relstatus Change-Id: I63e4baf772be9ddfb787ac3aff01fcaddf7b901c Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
* Remove AutoString* in ndb.pyzhangyangyang2017-09-041-19/+0
| | | | | | | | Remove AutoString* in ndb.py including AutoStringTinyText,AutoStringText,AutoStringSize. Change-Id: I707d69facb8f4542550243c1b5eff051264f3204 Closes-Bug:#1714913
* Workaround non-compatible type.adapt() for SQLAlchemy < 1.1Mike Bayer2017-08-101-2/+3
| | | | | | | | | The ndb change that makes use of String.adapt() to produce a new object breaks on SQLAlchemy < 1.1 because adapt() there does not allow for kwargs to override those already present in the type. Change-Id: I8cc79dc9bebcb3cb3accf76559bc969c2dae7ed9
* Replace ndb "auto" types with unified StringMike Bayer2017-07-281-46/+37
| | | | | | | | | This simplifies the ndb "AutoStringXYZ" series of classes into a single oslo_db.sqlalchemy.types.String type which features all necessary behaviors via two new flags, mysql_ndb_length and mysql_ndb_type. Change-Id: I7f9c830073bf9a30abce0aa4bb55b5c9cf661afe
* Enable MySQL Storage Engine selectionoorgeron2017-06-261-0/+137
Enables new functionality for selecting InnoDB or MySQL Cluster as a DB storage backend in OpenStack services. Closes-Bug: 1564110 Change-Id: I9f1fd2a87fdf75332de2339d3ff4f08ce9220dcf