The oslo_db.sqlalchemy.ndb Module¶
Core functions for MySQL Cluster (NDB) Support.
-
class
oslo_db.sqlalchemy.ndb.AutoStringSize(length, ndb_size, **kw)¶ Bases:
sqlalchemy.sql.sqltypes.StringClass definition for AutoStringSize.
Class is used by the compiler function _auto_string_size().
-
class
oslo_db.sqlalchemy.ndb.AutoStringText(length=None, collation=None, convert_unicode=False, unicode_error=None, _warn_on_bytestring=False)¶ Bases:
sqlalchemy.sql.sqltypes.StringClass definition for AutoStringText.
Class is used by compiler function _auto_string_text().
-
class
oslo_db.sqlalchemy.ndb.AutoStringTinyText(length=None, collation=None, convert_unicode=False, unicode_error=None, _warn_on_bytestring=False)¶ Bases:
sqlalchemy.sql.sqltypes.StringClass definition for AutoStringTinyText.
Class is used by compiler function _auto-string_tiny_text().
-
oslo_db.sqlalchemy.ndb.enable_ndb_support(engine)¶ Enable NDB Support.
Function to flag the MySQL engine dialect to support features specific to MySQL Cluster (NDB).
-
oslo_db.sqlalchemy.ndb.init_ndb_events(engine)¶ Initialize NDB Events.
Function starts NDB specific events.
-
oslo_db.sqlalchemy.ndb.ndb_status(engine_or_compiler)¶ Test if NDB Support is enabled.
Function to test if NDB support is enabled or not.
-
oslo_db.sqlalchemy.ndb.prefix_inserts(create_table, compiler, **kw)¶ Replace InnoDB with NDBCLUSTER automatically.
Function will intercept CreateTable() calls and automatically convert InnoDB to NDBCLUSTER. Targets compiler events.