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.3.1.tar.gz
(28.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.3.1.tar.gz.
File metadata
- Download URL: ngits_iot_db-0.3.1.tar.gz
- Upload date:
- Size: 28.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 |
e064168f78d7d8d6c298c73de504e2861d29a6a6637f234a69d91345c4a0d8eb
|
|
| MD5 |
844e4715ce1ccacb2f90ca480ab536cd
|
|
| BLAKE2b-256 |
445a5d211e4af700c5412ba53c1a235ca309cd86cf38368b12e65af79ae826bb
|
File details
Details for the file ngits_iot_db-0.3.1-py3-none-any.whl.
File metadata
- Download URL: ngits_iot_db-0.3.1-py3-none-any.whl
- Upload date:
- Size: 24.6 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 |
ab79907a9c1c3c33101725c6076f3279e4e0d49b0bc6e0a1d4ef6919f38ef127
|
|
| MD5 |
e134ff548551147a3e4333366de1ed60
|
|
| BLAKE2b-256 |
a271691f93067d88bba6cfb56dde38156851f22ec20032d700c234693fa59c8e
|