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.1.0.tar.gz
(9.4 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.1.0.tar.gz.
File metadata
- Download URL: ngits_iot_db-0.1.0.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
19a35254f7d74dd6a565280037b0d199a7425fe4953a909f657910f3dcd25cc4
|
|
| MD5 |
1fa2d1ced0e2e340e1c76db9ec6e9ef6
|
|
| BLAKE2b-256 |
c07e25929333a84a21a75250206e32f4075a4729ef6a187c80c335b39bdefe6f
|
File details
Details for the file ngits_iot_db-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ngits_iot_db-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f8f9be50cdfaf7d261883220d8a365ee8b6715a0996c80d8db1c6a760a0c43ce
|
|
| MD5 |
d3f3abe156227e980b00d3d65cce9a3b
|
|
| BLAKE2b-256 |
f2093d8466d0ff385169482dab9e562a72f673b524a782623f217eb4ad41f496
|