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.9.1.tar.gz
(62.1 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.9.1.tar.gz.
File metadata
- Download URL: ngits_iot_db-0.9.1.tar.gz
- Upload date:
- Size: 62.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3055185734c43aaa0f4e8a6057985b0abbb6cc9eb89139b08bbb3cbbe4283b93
|
|
| MD5 |
3c2f3eb5dd88c936d19dec244c83ae01
|
|
| BLAKE2b-256 |
c75fdfd342d3766383734293dc87b85408d5be83f97a7539a0ae2ad639b35072
|
File details
Details for the file ngits_iot_db-0.9.1-py3-none-any.whl.
File metadata
- Download URL: ngits_iot_db-0.9.1-py3-none-any.whl
- Upload date:
- Size: 46.2 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 |
32f7d34ec99c6d0ca74bb2dc555ff8df0532b22125c0f87abfa3adc35b03772b
|
|
| MD5 |
ee68de16f35f6f75a73eaccb189a1490
|
|
| BLAKE2b-256 |
39266ad095e6625586aaed0c407e756e86fce9e7f25868a580d13b408e15344b
|