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

Uploaded Python 3

File details

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

File metadata

  • Download URL: ngits_iot_db-0.3.3.tar.gz
  • Upload date:
  • Size: 28.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.3.3.tar.gz
Algorithm Hash digest
SHA256 3f3efc28225f490feef9c7d9a16cb64f07631642ec5558a9b2b3c7daea66fdf2
MD5 515a45d8109b9af85820885be02e446c
BLAKE2b-256 4b90ec379b3fa139bc27a676d4b2ebc9fd318a971b5e5c93bdd76eb2f76c2ae8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ngits_iot_db-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 24.7 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 88653d8186d5de6c3757bf7681d613f4538db38d79b43e43844b60ee55f13919
MD5 69aa08489688855ecd34dd0505c1b9fa
BLAKE2b-256 42adead40e663ff33a18c19b1887644eadde1492a0c254733dfa6e68094c8a41

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