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.1.1.tar.gz (10.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.1.1-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ngits_iot_db-0.1.1.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.2

File hashes

Hashes for ngits_iot_db-0.1.1.tar.gz
Algorithm Hash digest
SHA256 cf825611659404adcc44b3231a8ee6dcee7fbdd1b88d0d06eca5ee77cbc35726
MD5 26f3c7d6a7206dd8f8440b7e9d4285f5
BLAKE2b-256 dc0a75ccdb1b4adf6ed066963dd44d85f6bc28a0d938e9d16a7441b727c4f030

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ngits_iot_db-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.2

File hashes

Hashes for ngits_iot_db-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f20c2df679d851364b55d6fdc681157c24dbc8282ab8712d4321a29d260b369f
MD5 ad91d9364356455eb58b28113834e728
BLAKE2b-256 371cef6039e966d97fbf492ebd9ce265fbf85eb823cc01fa68ae876193c86936

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