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

Uploaded Python 3

File details

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

File metadata

  • Download URL: ngits_iot_db-0.10.2.tar.gz
  • Upload date:
  • Size: 66.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.10.2.tar.gz
Algorithm Hash digest
SHA256 bcc707bf3e247c8ae78a250586fc62738e05ae4762a4afa4a5a94f5f6893cd30
MD5 1250196e14a09ba2af61e0c6d1424ebd
BLAKE2b-256 8ce35348ebdac0bd338435d8772e308a480946310a9ac5fd8c4c692840da1109

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ngits_iot_db-0.10.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 19d2996716f379a3aad8948a0718aca2d9147374224f21f3e46e79a547404e5c
MD5 126f64220395b6d4de4870fe6c0be753
BLAKE2b-256 8699d3ca84f6dcfc9d31827a260c566429e8a3f1d82041a90f3355c1bc958ab3

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