database uri
============
You can set database uri by setting `IOT_DATABASE_URL` variable.
```shell
export IOT_DATABASE_URL=postgresql://postgres:postgres@localhost:5432/iot_local
```
make migrations
===============
```shell
alembic revision --autogenerate -m "Migration message."
```
upgrade
=======
```shell
# upgrade all
alembic upgrade head
# upgrade all to specific migration
alembic upgrade <revision_id>
```
downgrade
=========
```shell
# downgrade all
alembic downgrade base
# downgrade all to specific migration
alembic downgrade <revision_id>
```
Raw data
{
"_id": null,
"home_page": null,
"name": "ngits-iot-db",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": null,
"keywords": "iot, sqlalchemy, database, models, sensors",
"author": null,
"author_email": "\"NG IT Services Sp. z o. o.\" <biuro@ngits.pl>",
"download_url": "https://files.pythonhosted.org/packages/60/57/3595c80f0adb398e9e72ed528bedf16686d469f43968d3536162974a9f78/ngits_iot_db-0.1.2.tar.gz",
"platform": null,
"description": "database uri\n============\n\nYou can set database uri by setting `IOT_DATABASE_URL` variable.\n\n```shell\nexport IOT_DATABASE_URL=postgresql://postgres:postgres@localhost:5432/iot_local\n```\n\n\nmake migrations\n===============\n\n```shell\nalembic revision --autogenerate -m \"Migration message.\"\n```\n\nupgrade\n=======\n\n```shell\n# upgrade all\nalembic upgrade head\n\n# upgrade all to specific migration\nalembic upgrade <revision_id>\n```\n\ndowngrade\n=========\n\n```shell\n# downgrade all\nalembic downgrade base\n\n# downgrade all to specific migration\nalembic downgrade <revision_id>\n```\n",
"bugtrack_url": null,
"license": "BSD-3-Clause",
"summary": "SQLAlchemy models for IoT sensor data storage with Alembic migrations",
"version": "0.1.2",
"project_urls": null,
"split_keywords": [
"iot",
" sqlalchemy",
" database",
" models",
" sensors"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "0d4c4c20b0e642452014126394caa22e821132e5629adf8ed60f1bf394320726",
"md5": "7ac9c33226f0bc4005369afbf66ece71",
"sha256": "f528e72dc7e2c0cbcc0060938f2130c7286c15633397d13d88b6539d54016efa"
},
"downloads": -1,
"filename": "ngits_iot_db-0.1.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "7ac9c33226f0bc4005369afbf66ece71",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 6480,
"upload_time": "2025-07-31T04:59:00",
"upload_time_iso_8601": "2025-07-31T04:59:00.484609Z",
"url": "https://files.pythonhosted.org/packages/0d/4c/4c20b0e642452014126394caa22e821132e5629adf8ed60f1bf394320726/ngits_iot_db-0.1.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "60573595c80f0adb398e9e72ed528bedf16686d469f43968d3536162974a9f78",
"md5": "3f34005a224a22e38eff1fd9efe2c1b5",
"sha256": "cbf78cdd535eb2b4ac2a10ad00ece9b72ea612e2cb47c0fe21108c33d0101d08"
},
"downloads": -1,
"filename": "ngits_iot_db-0.1.2.tar.gz",
"has_sig": false,
"md5_digest": "3f34005a224a22e38eff1fd9efe2c1b5",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 10396,
"upload_time": "2025-07-31T04:59:01",
"upload_time_iso_8601": "2025-07-31T04:59:01.733134Z",
"url": "https://files.pythonhosted.org/packages/60/57/3595c80f0adb398e9e72ed528bedf16686d469f43968d3536162974a9f78/ngits_iot_db-0.1.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-31 04:59:01",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "ngits-iot-db"
}