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.5.tar.gz
(13.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.2.5.tar.gz.
File metadata
- Download URL: ngits_iot_db-0.2.5.tar.gz
- Upload date:
- Size: 13.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
54334241160ce250f83c7d4d78cf19d31583dc788cad784398721cc9aa2c3355
|
|
| MD5 |
b643d19a7eae5d38a9c7b2b64503058a
|
|
| BLAKE2b-256 |
e61c374295c53354d6d5cb141ce91ef747398ae3b3171b1ca081623cbd235300
|
File details
Details for the file ngits_iot_db-0.2.5-py3-none-any.whl.
File metadata
- Download URL: ngits_iot_db-0.2.5-py3-none-any.whl
- Upload date:
- Size: 7.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 |
3170a5a25ffbe424de48f38070fc9892da8c6bb2a39204f5796d1217f9e359a5
|
|
| MD5 |
3e038550b629d7b8637956b3ff47fd8f
|
|
| BLAKE2b-256 |
60a7d64dd1615a9eeed661f6c1ecae995b19b45c8cb6fea0a4b15c943f6edbbc
|