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.1.0.tar.gz (9.4 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.1.0-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ngits_iot_db-0.1.0.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for ngits_iot_db-0.1.0.tar.gz
Algorithm Hash digest
SHA256 19a35254f7d74dd6a565280037b0d199a7425fe4953a909f657910f3dcd25cc4
MD5 1fa2d1ced0e2e340e1c76db9ec6e9ef6
BLAKE2b-256 c07e25929333a84a21a75250206e32f4075a4729ef6a187c80c335b39bdefe6f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ngits_iot_db-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for ngits_iot_db-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f8f9be50cdfaf7d261883220d8a365ee8b6715a0996c80d8db1c6a760a0c43ce
MD5 d3f3abe156227e980b00d3d65cce9a3b
BLAKE2b-256 f2093d8466d0ff385169482dab9e562a72f673b524a782623f217eb4ad41f496

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