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.13.0.tar.gz (70.7 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.13.0-py3-none-any.whl (50.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ngits_iot_db-0.13.0.tar.gz
  • Upload date:
  • Size: 70.7 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.13.0.tar.gz
Algorithm Hash digest
SHA256 64f0abfc3a259ea5f23630c0215416fba918c4255c6ab6ee51565782f50e8d49
MD5 43b43f5529cd783d6261903ed2be15da
BLAKE2b-256 e37fb8a08c004574372f5f6a710c29de2512c7e4374f3c52b1f028142e0d33fd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ngits_iot_db-0.13.0-py3-none-any.whl
  • Upload date:
  • Size: 50.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.13.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c6ffd5f55d9df326f049757f1f7a5a8c324c2864fb441c93dbf5b53072d83b8b
MD5 d974edac1bf6b588214f8176cf310f69
BLAKE2b-256 8dd2a6f584fcc93d898dd86e1a3ac36bde8e95c45661f5d048dc1c4bbcd2b791

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