Mike thank you so much. Works awesome. чт, 1 нояб. 2018 г. в 16:28, Mike Bayer <mike...@zzzcomputing.com>:
> Assuming this is postgresql, the docuemtnation at > https://www.postgresql.org/docs/11/static/cube.html does not show the > actual syntax for this datatype, so let's assume it is "cube", use > UserDefinedType: > > from sqlalchemy.types import UserDefinedType > > class CUBE(UserDefinedType): > def get_col_spec(self, **kw): > return "CUBE" > > then use the type normally: > > Table('foo', metadata, Column('mycube', CUBE)) > > docs: > https://docs.sqlalchemy.org/en/latest/core/custom_types.html?highlight=userdefinedtype#creating-new-types > > > > > On Thu, Nov 1, 2018 at 1:47 AM Alexander Vasin <truenr...@gmail.com> > wrote: > > > > I need to create cube field. Is it possible using sqlalchemy / alembic? > > > > -- > > You received this message because you are subscribed to the Google > Groups "sqlalchemy-alembic" group. > > To unsubscribe from this group and stop receiving emails from it, send > an email to sqlalchemy-alembic+unsubscr...@googlegroups.com. > > For more options, visit https://groups.google.com/d/optout. > > -- > You received this message because you are subscribed to the Google Groups > "sqlalchemy-alembic" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sqlalchemy-alembic+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Kind regards, Alexander. -- You received this message because you are subscribed to the Google Groups "sqlalchemy-alembic" group. To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy-alembic+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.