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.0.tar.gz (65.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.10.0-py3-none-any.whl (49.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ngits_iot_db-0.10.0.tar.gz
  • Upload date:
  • Size: 65.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.10.0.tar.gz
Algorithm Hash digest
SHA256 7025bcd7889bad0ace2cc2b172b904282f9a08fb2c847888d1a25bfe723998fb
MD5 6f9616a2dc09b59a27cb47cb5afc7d7d
BLAKE2b-256 e8ebd7008c7c2eca3370f20a1dc7b71ff638305a6194934eb8f48aa2b6f9c49d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ngits_iot_db-0.10.0-py3-none-any.whl
  • Upload date:
  • Size: 49.2 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 86559a4aec66de14f0436a932507669c62adc32eb2353e4d4f976860a3368fce
MD5 c5bb4c42851d7b98730792ca3b0675b3
BLAKE2b-256 3655d9618c55031041c28b3967f055d1d725d30dac97b785b9d3af3bc5c0c95c

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