DateTime with milliseconds
- 主要語言
- Python
- 星號
- 1.9k
- 分支
- 272
- PR 合併指標
- 30 天內沒有已合併 PR
描述
Please,
I configured my model with DateTime(fnp=6) but my data returned as "0". In MySQL I have a table with DateTime(6), configured to milliseconds precision.
Can I get it data type? If I to configure using only "DateTime" the data is returned OK, but not in precision that I need.
`from sqlalchemy.dialects.mysql import DATETIME
TBLinhaTempoFuncoes = sa.Table('TBLinhaTempoFuncoes', metadata,
sa.Column('id', sa.Integer, primary_key=True, autoincrement=True),
sa.Column('Inicio', DATETIME(fsp=6)),
sa.Column('Fim', DATETIME(fsp=6)),
sa.Column('Parametros', sa.String(1000)),
sa.Column('group', sa.String(255)),
sa.Column('className', sa.String(255)),
sa.Column('IdEmbarcado', sa.Integer, sa.ForeignKey('TBEmbarcados.id'), nullable=False),
sa.Column('IdLinhaTempo', sa.Integer, sa.ForeignKey('TBLinhaTempo.id'), nullable=False),
sa.Column('IdFuncao', sa.Integer, sa.ForeignKey('TBFuncoes.id'), nullable=False),
sa.Column('IdEquipamento', sa.Integer, sa.ForeignKey('TBEquipamentos.id'), nullable=False))`
貢獻指南
評估
這個 Issue 還沒有評估資料。