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.12.0.tar.gz (70.4 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.12.0-py3-none-any.whl (50.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ngits_iot_db-0.12.0.tar.gz
  • Upload date:
  • Size: 70.4 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.12.0.tar.gz
Algorithm Hash digest
SHA256 c232618ffd93c7ac9479f2eb2cfb63996d44f466c97a20bfb3471dbe8f2c3968
MD5 45c9a5c9d61537f588a9da46ab2975b1
BLAKE2b-256 32b92db37c334f8cb8063cac2c7efbaadce50edc88b3dd4d5bab5ac4909cd950

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ngits_iot_db-0.12.0-py3-none-any.whl
  • Upload date:
  • Size: 50.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.12.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c88773504e8cb0fcbf107aedba413154cbb75fc3476f904aef9947b06b6c2cb9
MD5 8feab574d49060f449d59acdc38fc894
BLAKE2b-256 2b9af65ea5a21e9460df2d2c93988ebff6220247cb30dc791a91253ecd21a609

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