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.4.1.tar.gz
(33.5 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.4.1.tar.gz.
File metadata
- Download URL: ngits_iot_db-0.4.1.tar.gz
- Upload date:
- Size: 33.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
faf17fe803f73348609900ce434d3ea10066df838ab75b081f7371553b066a02
|
|
| MD5 |
b109377df448f5f68832162fc8bd7d7b
|
|
| BLAKE2b-256 |
b3c27ee14a581445a31c6e2e93a802ec5e5ccd9a6980ab724d5c446f6ab0aa46
|
File details
Details for the file ngits_iot_db-0.4.1-py3-none-any.whl.
File metadata
- Download URL: ngits_iot_db-0.4.1-py3-none-any.whl
- Upload date:
- Size: 29.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 |
ed9595345ebb781b86c3141877ae7d5bc0ad4a0fb147743232633e36228715f0
|
|
| MD5 |
c82c0d05cb88b0ea6d61fe80d6e917a9
|
|
| BLAKE2b-256 |
74a6a687ee970d25f7a631b7294a8ea84738d468c4518b31e716305a87361c4f
|