Support for the Drizzle database.
The following dialect/DBAPI options are available. Please refer to individual DBAPI sections for connect information.
Drizzle is a variant of MySQL. Unlike MySQL, Drizzle’s default storage engine is InnoDB (transactions, foreign-keys) rather than MyISAM. For more Notable Differences, visit the Drizzle Documentation.
The SQLAlchemy Drizzle dialect leans heavily on the MySQL dialect, so much of the SQLAlchemy MySQL documentation is also relevant.
As with all SQLAlchemy dialects, all UPPERCASE types that are known to be valid with Drizzle are importable from the top level dialect:
from sqlalchemy.dialects.drizzle import \
BIGINT, BINARY, BLOB, BOOLEAN, CHAR, DATE, DATETIME,
DECIMAL, DOUBLE, ENUM, FLOAT, INT, INTEGER,
NUMERIC, TEXT, TIME, TIMESTAMP, VARBINARY, VARCHAR
Types which are specific to Drizzle, or have Drizzle-specific construction arguments, are as follows:
Bases: sqlalchemy.types.BIGINT
Drizzle BIGINTEGER type.
Construct a BIGINTEGER.
Bases: sqlalchemy.dialects.drizzle.base._StringType, sqlalchemy.types.CHAR
Drizzle CHAR type, for fixed-length character data.
Construct a CHAR.
Parameters: |
|
---|
Bases: sqlalchemy.dialects.drizzle.base._NumericType, sqlalchemy.types.DECIMAL
Drizzle DECIMAL type.
Bases: sqlalchemy.dialects.drizzle.base._FloatType
Drizzle DOUBLE type.
Bases: sqlalchemy.dialects.mysql.base.ENUM
Drizzle ENUM type.
Construct an ENUM.
Example:
Column(‘myenum’, ENUM(“foo”, “bar”, “baz”))
Parameters: |
|
---|
Bases: sqlalchemy.dialects.drizzle.base._FloatType, sqlalchemy.types.FLOAT
Drizzle FLOAT type.
Bases: sqlalchemy.types.INTEGER
Drizzle INTEGER type.
Construct an INTEGER.
Bases: sqlalchemy.dialects.drizzle.base._NumericType, sqlalchemy.types.NUMERIC
Drizzle NUMERIC type.
Bases: sqlalchemy.dialects.drizzle.base._FloatType, sqlalchemy.types.REAL
Drizzle REAL type.
Bases: sqlalchemy.dialects.drizzle.base._StringType, sqlalchemy.types.TEXT
Drizzle TEXT type, for text up to 2^16 characters.
Construct a TEXT.
Parameters: |
|
---|
Bases: sqlalchemy.types.TIMESTAMP
Drizzle TIMESTAMP type.
Bases: sqlalchemy.dialects.drizzle.base._StringType, sqlalchemy.types.VARCHAR
Drizzle VARCHAR type, for variable-length character data.
Construct a VARCHAR.
Parameters: |
|
---|
Support for the Drizzle database via the MySQL-Python driver.
Documentation and download information (if applicable) for MySQL-Python is available at: http://sourceforge.net/projects/mysql-python