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.2.tar.gz (39.0 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.2-py3-none-any.whl (35.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ngits_iot_db-0.5.2.tar.gz
  • Upload date:
  • Size: 39.0 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.2.tar.gz
Algorithm Hash digest
SHA256 ba62bf63c30ef035328589f51eafd214e8f53844ae7defefe6627623f6a0ebd3
MD5 9ad045088d3d648890e37a88b7017116
BLAKE2b-256 47c04f11732202b1fa19775dabbf2c8d44f2636d6736b9fc1f9ef297b0ec2bb6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ngits_iot_db-0.5.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2f57f06b1530719c27a6ca9c262b55631d36df33da29413a2c7e72de3ba128c3
MD5 46ce1c7252b812e5524d4af1203a71a1
BLAKE2b-256 afbfb287666984a64e320675d9ad0e883dfa70d00b44ff0b77d6672f320419bc

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