Skip to main content

SQLAlchemy models for IoT sensor data storage with Alembic migrations

Project description

database uri

You can set database uri by setting IOT_DATABASE_URL variable.

export IOT_DATABASE_URL=postgresql://postgres:postgres@localhost:5432/iot_local

make migrations

alembic revision --autogenerate -m "Migration message."

upgrade

# upgrade all
alembic upgrade head

# upgrade all to specific migration
alembic upgrade <revision_id>

downgrade

# downgrade all
alembic downgrade base

# downgrade all to specific migration
alembic downgrade <revision_id>

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

ngits_iot_db-0.5.0.tar.gz (38.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ngits_iot_db-0.5.0-py3-none-any.whl (35.1 kB view details)

Uploaded Python 3

File details

Details for the file ngits_iot_db-0.5.0.tar.gz.

File metadata

  • Download URL: ngits_iot_db-0.5.0.tar.gz
  • Upload date:
  • Size: 38.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.2

File hashes

Hashes for ngits_iot_db-0.5.0.tar.gz
Algorithm Hash digest
SHA256 180bf23f3d199926e30f617fd8686d5d51eb7228ca3edf3bcfb4e062aa1fc19c
MD5 8ab4c404d9998e9e00d30e7e273f36c5
BLAKE2b-256 cba6b66ac0ba148862832de9b9e3317d91815a133594040e8804e38ebc21413d

See more details on using hashes here.

File details

Details for the file ngits_iot_db-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: ngits_iot_db-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 35.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.2

File hashes

Hashes for ngits_iot_db-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bd91a68da759e782131ad94f07c48a8650086a0f56421ce71afbd22c289ff7fa
MD5 c494ba1dc28ea423c460633e6294c2bb
BLAKE2b-256 6d9f2a4f1f481399ba62681c33e2f76ce4826b95d7e621be891d6f30e3bffa86

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