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.2.0.tar.gz
(11.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.2.0.tar.gz.
File metadata
- Download URL: ngits_iot_db-0.2.0.tar.gz
- Upload date:
- Size: 11.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
77aec06c663c789d21dbfb9660956dbbe79f0a4dbd9b592af198902f55c7a65e
|
|
| MD5 |
f99401a5ff8a88ccc53d01bac202065d
|
|
| BLAKE2b-256 |
9d415cf78408faaaf692670dd0a495336a4ff94d659512b62ce7f14a95cacb5f
|
File details
Details for the file ngits_iot_db-0.2.0-py3-none-any.whl.
File metadata
- Download URL: ngits_iot_db-0.2.0-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
96d9f12504f4db5cf269faed76dfc95716aa76b2d6e9f3e1862e721cb2460eb0
|
|
| MD5 |
702ecec2f3df971d1f5ede32a431e67d
|
|
| BLAKE2b-256 |
fc9a81d0c4c7f7a306ff7ee85db1f6245ad0f77da30be83fca33942c3b368097
|