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.6.tar.gz
(54.0 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.6.tar.gz.
File metadata
- Download URL: ngits_iot_db-0.8.6.tar.gz
- Upload date:
- Size: 54.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf6c81d8d581892483aca7de6cd942cfe1170eff3a5c06eaf07fb4f6589d21bb
|
|
| MD5 |
4689d5546a2cc204c39b63e29ea19b36
|
|
| BLAKE2b-256 |
286c963d58d9770c47a245db84f25e872a18a2dc292356ea5aa4198c358d069f
|
File details
Details for the file ngits_iot_db-0.8.6-py3-none-any.whl.
File metadata
- Download URL: ngits_iot_db-0.8.6-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 |
0a2bb28a8eea961ffce7c9e6cc44e32a5d0c34df70456d91a0814921a404498a
|
|
| MD5 |
d799d53f2c4a66a7d249b105b6483083
|
|
| BLAKE2b-256 |
4965f39c21b6a2d5b3c26ec9733c012699cf4f1047d29fce565aac5af44689fc
|