Python sqlalchemy.dialects.mysql.LONGTEXT Examples
The following are 16
code examples of sqlalchemy.dialects.mysql.LONGTEXT().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
sqlalchemy.dialects.mysql
, or try the search function
.
Example #1
Source File: types.py From vdi-broker with Apache License 2.0 | 5 votes |
def load_dialect_impl(self, dialect): if dialect.name == 'mysql': return dialect.type_descriptor(mysql.LONGTEXT()) else: return self.impl
Example #2
Source File: 3e64188fb918_raw_calais.py From mma-dexter with Apache License 2.0 | 5 votes |
def upgrade(): ### commands auto generated by Alembic - please adjust! ### op.add_column('documents', sa.Column('raw_calais', mysql.LONGTEXT(), nullable=True)) ### end Alembic commands ###
Example #3
Source File: __init__.py From quay with Apache License 2.0 | 5 votes |
def load_dialect_impl(self, dialect): if dialect.name == "mysql": return dialect.type_descriptor( LONGTEXT(charset="utf8mb4", collation="utf8mb4_unicode_ci") ) else: return dialect.type_descriptor(Text())
Example #4
Source File: 0bc3e1a3c135_set_result_meduimtext_type.py From taskflow with Apache License 2.0 | 5 votes |
def upgrade(): bind = op.get_bind() engine = bind.engine if engine.name == 'mysql': op.alter_column('atomdetails', 'results', type_=mysql.LONGTEXT, existing_nullable=True)
Example #5
Source File: types.py From oslo.db with Apache License 2.0 | 5 votes |
def __init__(self, mysql_as_long=False, mysql_as_medium=False): """Initialize JSON-encoding type.""" super(JsonEncodedType, self).__init__() if mysql_as_long and mysql_as_medium: raise TypeError("mysql_as_long and mysql_as_medium are mutually " "exclusive") if mysql_as_long: self.impl = Text().with_variant(mysql.LONGTEXT(), 'mysql') elif mysql_as_medium: self.impl = Text().with_variant(mysql.MEDIUMTEXT(), 'mysql')
Example #6
Source File: types.py From senlin with Apache License 2.0 | 5 votes |
def load_dialect_impl(self, dialect): if dialect.name == 'mysql': return dialect.type_descriptor(mysql.LONGTEXT()) else: return self.impl
Example #7
Source File: types.py From senlin with Apache License 2.0 | 5 votes |
def load_dialect_impl(self, dialect): if dialect.name == 'mysql': return dialect.type_descriptor(mysql.LONGTEXT()) else: return self.impl
Example #8
Source File: types.py From coriolis with GNU Affero General Public License v3.0 | 5 votes |
def load_dialect_impl(self, dialect): if dialect.name == 'mysql': return dialect.type_descriptor(mysql.LONGTEXT()) else: return self.impl
Example #9
Source File: types.py From coriolis with GNU Affero General Public License v3.0 | 5 votes |
def load_dialect_impl(self, dialect): if dialect.name == 'mysql': return dialect.type_descriptor(mysql.LONGTEXT()) else: return self.impl
Example #10
Source File: 2e09867c0c38_add_comment_data_to_post.py From CivilServant with MIT License | 5 votes |
def upgrade_development(): ### commands auto generated by Alembic - please adjust! ### op.add_column('posts', sa.Column('comment_data', mysql.LONGTEXT(), nullable=True)) op.add_column('posts', sa.Column('comments_queried_at', sa.DateTime(), nullable=True)) op.add_column('posts', sa.Column('created_at', sa.DateTime(), nullable=True)) ### end Alembic commands ###
Example #11
Source File: 2e09867c0c38_add_comment_data_to_post.py From CivilServant with MIT License | 5 votes |
def upgrade_test(): ### commands auto generated by Alembic - please adjust! ### op.add_column('posts', sa.Column('comment_data', mysql.LONGTEXT(), nullable=True)) op.add_column('posts', sa.Column('comments_queried_at', sa.DateTime(), nullable=True)) op.add_column('posts', sa.Column('created_at', sa.DateTime(), nullable=True)) ### end Alembic commands ###
Example #12
Source File: 2e09867c0c38_add_comment_data_to_post.py From CivilServant with MIT License | 5 votes |
def upgrade_production(): ### commands auto generated by Alembic - please adjust! ### op.add_column('posts', sa.Column('comment_data', mysql.LONGTEXT(), nullable=True)) op.add_column('posts', sa.Column('comments_queried_at', sa.DateTime(), nullable=True)) op.add_column('posts', sa.Column('created_at', sa.DateTime(), nullable=True)) ### end Alembic commands ###
Example #13
Source File: types.py From qinling with Apache License 2.0 | 5 votes |
def LongText(): # TODO(rakhmerov): Need to do for postgres. return sa.Text().with_variant(mysql.LONGTEXT(), 'mysql')
Example #14
Source File: 179_longer_event_descriptions.py From sync-engine with GNU Affero General Public License v3.0 | 5 votes |
def upgrade(): op.add_column('event', sa.Column('_description', mysql.LONGTEXT(), nullable=True))
Example #15
Source File: 038_add_public_ids_to_transactions.py From sync-engine with GNU Affero General Public License v3.0 | 5 votes |
def downgrade(): op.drop_index('ix_transaction_public_id', table_name='transaction') op.drop_column('transaction', 'public_id') op.drop_column('transaction', 'object_public_id') op.add_column('transaction', sa.Column(u'additional_data', mysql.LONGTEXT(), nullable=True)) op.drop_column('transaction', 'public_snapshot') op.drop_column('transaction', 'private_snapshot')
Example #16
Source File: types.py From vdi-broker with Apache License 2.0 | 4 votes |
def load_dialect_impl(self, dialect): if dialect.name == 'mysql': return dialect.type_descriptor(mysql.LONGTEXT()) else: return self.impl