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.4.2.tar.gz (33.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.4.2-py3-none-any.whl (29.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ngits_iot_db-0.4.2.tar.gz
  • Upload date:
  • Size: 33.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.4.2.tar.gz
Algorithm Hash digest
SHA256 f0d25db15f5dc2c277bc76e2b2889f673091a6050e7dd39fbb560121e96e7bcf
MD5 27573e36831a884cc7829542b08e89f1
BLAKE2b-256 7672e10a976b1583e3d0d1f8cf70f48f1ba4aca4453c2b40925e796a9e07e10d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ngits_iot_db-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 29.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.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b57daecd9d496985a26156822a28eb8199e57138952dbb055f6f15de56feaaa6
MD5 80be144618f029ef8b64e7c3319dc7a2
BLAKE2b-256 a338c0a2ef4597cd93b0815dc7bb4133e54a8166d52eb2bf9881e930d623e5df

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