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.8.4.tar.gz (51.5 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.8.4-py3-none-any.whl (41.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ngits_iot_db-0.8.4.tar.gz
  • Upload date:
  • Size: 51.5 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.8.4.tar.gz
Algorithm Hash digest
SHA256 20ed6aa34f1f45b124790db9c757cd69199ae0bf01d2620e163634450559e163
MD5 259c1d2167b03f53c647c43e075e8959
BLAKE2b-256 8152dc8ec059f5aad84d9d170e2ce14474c314fff0e125500d470a3bef01ba54

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ngits_iot_db-0.8.4-py3-none-any.whl
  • Upload date:
  • Size: 41.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.8.4-py3-none-any.whl
Algorithm Hash digest
SHA256 1f5a1262eb79cd3b39f04e45ae02124d5e90e2f5de021cbe1da7110135a9a2a5
MD5 d6f501a423d72ae75bd709f4c56f8638
BLAKE2b-256 908bbaa0c4a41c6daabdabf5bf6e4d93f4414e6482af918ce6f4bf1350a9c6db

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