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.10.1.tar.gz
(65.8 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.10.1.tar.gz.
File metadata
- Download URL: ngits_iot_db-0.10.1.tar.gz
- Upload date:
- Size: 65.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6896df15cc59b9146b95af3d457a9db66d349d5ef4cad85ecaa7ece1efb70caa
|
|
| MD5 |
fa7b4862ab05458d10f2dfe63dbb79fa
|
|
| BLAKE2b-256 |
92cf763dd8538b6a9e4e6a1f872c20b26243a838cdc10729c3219c24ed05b8b8
|
File details
Details for the file ngits_iot_db-0.10.1-py3-none-any.whl.
File metadata
- Download URL: ngits_iot_db-0.10.1-py3-none-any.whl
- Upload date:
- Size: 49.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 |
ef98ea32e32804637960eda1bf118f92eb2b5bef82516f86071b261fd6500331
|
|
| MD5 |
6a1b6c2390cfbcf937be601538fd6dc7
|
|
| BLAKE2b-256 |
ebbe0691a72395c96dfaa77425621c10036613593a6cadf6e88fbad41751e118
|