sqlalchemy postgres timestamp with timezone

Solutions on MaxInterview for sqlalchemy postgres timestamp with timezone by the best coders in the world

showing results for - "sqlalchemy postgres timestamp with timezone"
Gia
09 Nov 2018
1from sqlalchemy import Column, DateTime, Integer, MetaData, Table
2from sqlalchemy.sql import func
3
4metadata = MetaData()
5
6example = Table('example', metadata,
7    Column('id', Integer, primary_key=True),
8    Column('date', DateTime(timezone=True), default=func.now())
9    )