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.9.0.tar.gz
(61.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.9.0.tar.gz.
File metadata
- Download URL: ngits_iot_db-0.9.0.tar.gz
- Upload date:
- Size: 61.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 |
a00ffe542347540dee79303d6fe5fa0177e0644dd87a6dad9ad11d91cb9d7217
|
|
| MD5 |
cfb248b3cc129f3681b0befdbe497c8c
|
|
| BLAKE2b-256 |
bdc2bdbedd86f1bf5c3cb2479eabd015b88bcdd8a40dac47885d879817c344b2
|
File details
Details for the file ngits_iot_db-0.9.0-py3-none-any.whl.
File metadata
- Download URL: ngits_iot_db-0.9.0-py3-none-any.whl
- Upload date:
- Size: 46.2 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 |
6f86f6fad93c3b807a826e3634ad45af758c18221f3b89697a6e13f698606bab
|
|
| MD5 |
5424d197108f45734c562fe76a59dba0
|
|
| BLAKE2b-256 |
e1558c07be24474d2603509b324ffd29fc73353c0c69e396172ae4dc9279adae
|