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
Release history Release notifications | RSS feed
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.4.0.tar.gz
(31.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ngits_iot_db-0.4.0.tar.gz.
File metadata
- Download URL: ngits_iot_db-0.4.0.tar.gz
- Upload date:
- Size: 31.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
424f27640429aa99a8bf9465a4451184e8c1f4efc397bea36283de9692f08e10
|
|
| MD5 |
76af14d4df0247f65e330876bbb2323b
|
|
| BLAKE2b-256 |
28ed6df739d36a6d0ab35a23e48b5ac98f561906e73b0a8afdb02a54d1e71d14
|
File details
Details for the file ngits_iot_db-0.4.0-py3-none-any.whl.
File metadata
- Download URL: ngits_iot_db-0.4.0-py3-none-any.whl
- Upload date:
- Size: 26.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6eda6f633e41395fc6c695f0ca5423a5408bcd423cdeb2159d168e065df34147
|
|
| MD5 |
56b07b31636c4103c7b3a712f9a0469a
|
|
| BLAKE2b-256 |
6e410f7aaf527e14f663204ba233c22a7a6e3b83717979177df43b85f95d1857
|