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.5.1.tar.gz (38.9 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.5.1-py3-none-any.whl (35.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ngits_iot_db-0.5.1.tar.gz
  • Upload date:
  • Size: 38.9 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.5.1.tar.gz
Algorithm Hash digest
SHA256 19893821f700b1ed0b427967fd22e81cc751b08322ca06afd2558e0e453b2390
MD5 5ba56e0ea8c27d949ef575bc119b3f2f
BLAKE2b-256 18d8fa461537f00a99fb00fc3e8a66d49ae2b0d4eea8b50b163565626618f9e7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ngits_iot_db-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 35.1 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.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ac8a67c7152a48a7763cfeab798d60813db7ee823e4c97a3d5c145474ca8d96f
MD5 dcd6456be838dbf29766fadce87c7c89
BLAKE2b-256 517f973f5c27488237e90971f167b9d4f97312efcc9862d65c616f2b7f3c4b56

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