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.6.0.tar.gz
(39.2 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.6.0.tar.gz.
File metadata
- Download URL: ngits_iot_db-0.6.0.tar.gz
- Upload date:
- Size: 39.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a03d45274c991a7b900751efcfe554e047fde1dd2c5cfa6a5c4b3bffe55fba75
|
|
| MD5 |
dd19516ca24ecef69c66b33da74b33c2
|
|
| BLAKE2b-256 |
c876db9e30c29d236d27202bf638d8f478cc993a5a607465290705ef8b98a6da
|
File details
Details for the file ngits_iot_db-0.6.0-py3-none-any.whl.
File metadata
- Download URL: ngits_iot_db-0.6.0-py3-none-any.whl
- Upload date:
- Size: 35.1 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 |
f1d28089b33cdef8f9f7d68422fd326d722570907540295879d769922c9490a6
|
|
| MD5 |
f2e67224776e38e90fff62a623a4cfa3
|
|
| BLAKE2b-256 |
65b18ce1a38e59c10696535376c62c31a8970dcf2165135ef342502c2b7fe1d3
|