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.2.1.tar.gz (11.6 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.2.1-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ngits_iot_db-0.2.1.tar.gz
  • Upload date:
  • Size: 11.6 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.2.1.tar.gz
Algorithm Hash digest
SHA256 e784f203f108bb7e1794a016d0a7014c4b47293c073dd400306a76dd9536e7cb
MD5 10426bf750264c5d93c5085ad8de5fce
BLAKE2b-256 2d8f07b2f3d44fced4065833a9f7a72b5778ee494d9073ba26956afad6c9bd85

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ngits_iot_db-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 7.4 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.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ed06d6959ce9c5ad355cfe9de4fec3abdf51525aaa26dca41dff97006576561f
MD5 03d301c8207ee4421ba7afb871a1de9e
BLAKE2b-256 b3b697d0ef0750b16b2aa9095d38d8eb62ab3311fc9e37b87d257e0de4b72290

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