Skip to main content

Alternative implementation of DateTime column for MySQL.

Project description

sa_mysql_dt

MySQL, unlike for instance, PostgreSQL, doesn’t support datetime columns with a sub-second granularity. This means that it is not possible to distinguish between two datetimes that were generated in the same second.

This can however be very useful. This package defines a new field type for SQLAlchemy that should be a drop-in replacement for the standard SQLAlchemy DateTime. It stores its information in a Numeric column to enable sub-second granularity.

It’s probably also not properly timezone aware.

To use it in a SQLAlchemy table definition as a column type, import it instead of SQLAlchemy’s version:

>>> from sa_mysql_dt import DateTime

CHANGES

0.1.1 (2010-11-15)

  • Bugfix release; somehow CHANGES.txt wasn’t included.

0.1 (2010-11-15)

  • Initial public release.

Download

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sa_mysql_dt-0.1.1.tar.gz (2.7 kB view details)

Uploaded Source

File details

Details for the file sa_mysql_dt-0.1.1.tar.gz.

File metadata

  • Download URL: sa_mysql_dt-0.1.1.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for sa_mysql_dt-0.1.1.tar.gz
Algorithm Hash digest
SHA256 26cdcdc76033c5e5c001e57e13631095548e9a08df52104885e4b0bcd973e387
MD5 df7ad0de188247667ff56de917caf2d0
BLAKE2b-256 286de6fdfc7274887bb4b618c2117daab183994da199061ade4ee25a8f084a4c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page