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.10.3.tar.gz (66.2 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.10.3-py3-none-any.whl (49.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ngits_iot_db-0.10.3.tar.gz
  • Upload date:
  • Size: 66.2 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.10.3.tar.gz
Algorithm Hash digest
SHA256 f17aa8b6d9ce4eb77c3e490115c4477ae2cc6b5ed6554b843dde47c3d5be5c80
MD5 23cc6adac1f1337d766ed201f8a56918
BLAKE2b-256 843958abac01e22dc559f2c6955b47924bae3be9ddc38aac200ac557ecfeb6ae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ngits_iot_db-0.10.3-py3-none-any.whl
  • Upload date:
  • Size: 49.8 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.10.3-py3-none-any.whl
Algorithm Hash digest
SHA256 efeabd3b53692166a85e1ee2c115df15ed65432179cdd08bce7a298d9b70b76e
MD5 fa3006a0e6eda4202cfb8839bc0b2594
BLAKE2b-256 559182808f881a798dc9243911a5b3bf8a31ee683f2d0d386f4eb2475167b86b

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