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

Uploaded Python 3

File details

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

File metadata

  • Download URL: ngits_iot_db-0.14.0.tar.gz
  • Upload date:
  • Size: 75.1 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.14.0.tar.gz
Algorithm Hash digest
SHA256 df7ae58ff886db9376a80303ac215b0a7a8d9d959606e3db0e02d00514c2b684
MD5 ce6f6db4b03a3b0dc31ea59c67661ac1
BLAKE2b-256 679ba2a932671d44b08d6195aba7a1a0c7b843c2dacd745020a85c0339436749

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ngits_iot_db-0.14.0-py3-none-any.whl
  • Upload date:
  • Size: 51.5 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.14.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7100bb55f5434c411fcee2b0872738cd5b41352dbd9fb892a5638403b5a76bb5
MD5 26cc4e4f24f1e36cc65c26da9aa72588
BLAKE2b-256 582f774cbcb3cc9fb97724d0d5f5294ef945b30afa5ec2ddaf351d3997b179c1

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