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.8.0.tar.gz
(48.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.8.0.tar.gz.
File metadata
- Download URL: ngits_iot_db-0.8.0.tar.gz
- Upload date:
- Size: 48.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 |
c3be3a5d95bdbcc5f02d4d871b6b9cd439a5f48cd92d2511e39efb8647bfcf1d
|
|
| MD5 |
07be7f4cfd493b994eea9fe597e7d8f5
|
|
| BLAKE2b-256 |
5d404966e549ccbe79aee00e7f249cb50a42faf5ced63756cf9ee7dcaa6be81b
|
File details
Details for the file ngits_iot_db-0.8.0-py3-none-any.whl.
File metadata
- Download URL: ngits_iot_db-0.8.0-py3-none-any.whl
- Upload date:
- Size: 41.0 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 |
79f55143528a1eed579ba4d894bff1f21ead28fb372ee4a4623b5d70bf341c8d
|
|
| MD5 |
f7a159282cba351aaf84dc43954c6064
|
|
| BLAKE2b-256 |
63037be3aae9401f6ce235f7b3c367ff30468d17614117c2c7199c56d41e788d
|