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.3.2.tar.gz (28.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.3.2-py3-none-any.whl (24.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ngits_iot_db-0.3.2.tar.gz
  • Upload date:
  • Size: 28.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.3.2.tar.gz
Algorithm Hash digest
SHA256 5154bf6ab90b4c72f168e5a5b8f23a208b2d8d88d00694a90d690d76e689828d
MD5 b0b39e37e3dcdbd809376e6b7795a2b1
BLAKE2b-256 5aaa4ac42c9ee7b33eada6888389e8ef27db00cc7810fa6fbbfffbd5a7432cc8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ngits_iot_db-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 24.6 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.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c12e0a6e2cd036513259789c315776c5b42c48603e483f16da74f79c14166ac2
MD5 df12703fe3ec8338d9f638bfafa9dd39
BLAKE2b-256 d247549223abe9fe7cacf8501193504a0bdd39646a6a857c5bfb0322b1296b13

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