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>
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.16.2.tar.gz
(80.1 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.16.2.tar.gz.
File metadata
- Download URL: ngits_iot_db-0.16.2.tar.gz
- Upload date:
- Size: 80.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d2f8e72fd0835bd6563853566c2568fd7e39d071085159aecbc4e004d0afe95b
|
|
| MD5 |
ce21eb6f97a11d0c107f9dee22c5dd4c
|
|
| BLAKE2b-256 |
0472d93e46ccf9eaf19e1d2fe9a1aba5a8230a72b89a8b11435336a700bf28e5
|
File details
Details for the file ngits_iot_db-0.16.2-py3-none-any.whl.
File metadata
- Download URL: ngits_iot_db-0.16.2-py3-none-any.whl
- Upload date:
- Size: 51.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9bf80829624a8ddb7f1d0def756a16c1142c22b121ed7957bf66b237c4e78cd9
|
|
| MD5 |
2b487c9ba7034b129c3b620c6f5dbab0
|
|
| BLAKE2b-256 |
4979473ddf379d1e52833cb63d2d46045549ab77cbdb54f9dedb7e824a5c615f
|