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.8.3.tar.gz
(49.7 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.8.3.tar.gz.
File metadata
- Download URL: ngits_iot_db-0.8.3.tar.gz
- Upload date:
- Size: 49.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d3eb5eb38960d3f586e9f30b23b472b4ce1a1a08c4551564f2198f1b0535f797
|
|
| MD5 |
a59a3cb043595e3b4d24778583e661dd
|
|
| BLAKE2b-256 |
a4cdc33d05d71c9e34a9921d1cce7b498d7165df22f180253641193e73f957ca
|
File details
Details for the file ngits_iot_db-0.8.3-py3-none-any.whl.
File metadata
- Download URL: ngits_iot_db-0.8.3-py3-none-any.whl
- Upload date:
- Size: 41.8 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 |
dfe6e70592bf107435a05bb5eed7c70bc745a2f8468cbc1741ed9165430e6bd9
|
|
| MD5 |
04cd3cb8c754dcda4fb89c49f664f878
|
|
| BLAKE2b-256 |
3b2b38217a6be2be14b95e00ebb7735259f75aa9abaf491eea72da7c29f6741d
|