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.2.6.tar.gz (13.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.2.6-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ngits_iot_db-0.2.6.tar.gz
  • Upload date:
  • Size: 13.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.2.6.tar.gz
Algorithm Hash digest
SHA256 25277dbfbae357f37fdfbc41f7ac557f0f9e380c1614d51677311eb1d6360fa9
MD5 22ff26c76af0dfeeaae7fe18befc103d
BLAKE2b-256 f0b94af02e8b9c538594aac51127fb178c053370fa61962444dc3dce00f2f72e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ngits_iot_db-0.2.6-py3-none-any.whl
  • Upload date:
  • Size: 7.7 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.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 2eadecf30b65006d5010d808434a61130cfff6a543f0f183718b674d26ffcf01
MD5 1b04251289a1f9988096ac0746b2aeed
BLAKE2b-256 ab8fe9b01b314965da51e951a0fdd2a08a4f315f63e0c65c594391313eb2c889

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