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.11.0.tar.gz
(67.6 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.11.0.tar.gz.
File metadata
- Download URL: ngits_iot_db-0.11.0.tar.gz
- Upload date:
- Size: 67.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c277e14b8f8d7035762a7c8081cc0fb27500430e9e2b633e12ce7f14c7c6a64
|
|
| MD5 |
2b32529dc0467bd603ba61c47901af0c
|
|
| BLAKE2b-256 |
4c6415052962a3d7cb72b4d9af09641d0d7b59b8556851e9843e27d77823e488
|
File details
Details for the file ngits_iot_db-0.11.0-py3-none-any.whl.
File metadata
- Download URL: ngits_iot_db-0.11.0-py3-none-any.whl
- Upload date:
- Size: 50.1 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 |
da8b111385d0c2d6abe95edde1339896be21a7736ff25ea66cdad5f30ed45e2f
|
|
| MD5 |
75ae7124f3fbf6c1222280428c1d2e7b
|
|
| BLAKE2b-256 |
8582664699d44c7435830ed1f007f77b24cc3af7893481be690161e1ef4667d6
|