{"id":21371492,"url":"https://github.com/chirpstack/chirpstack-pg-to-sqlite","last_synced_at":"2026-01-25T09:32:11.923Z","repository":{"id":260605240,"uuid":"881817255","full_name":"chirpstack/chirpstack-pg-to-sqlite","owner":"chirpstack","description":"Script to migrate ChirpStack PostgreSQL database to SQLite.","archived":false,"fork":false,"pushed_at":"2024-11-05T12:10:00.000Z","size":16,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-02T17:54:15.607Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chirpstack.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-11-01T09:50:43.000Z","updated_at":"2024-11-05T12:10:02.000Z","dependencies_parsed_at":"2025-07-13T07:31:37.989Z","dependency_job_id":"409879db-35bf-46fd-8658-35d390f06152","html_url":"https://github.com/chirpstack/chirpstack-pg-to-sqlite","commit_stats":null,"previous_names":["chirpstack/chirpstack-pg-to-sqlite"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/chirpstack/chirpstack-pg-to-sqlite","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chirpstack%2Fchirpstack-pg-to-sqlite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chirpstack%2Fchirpstack-pg-to-sqlite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chirpstack%2Fchirpstack-pg-to-sqlite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chirpstack%2Fchirpstack-pg-to-sqlite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chirpstack","download_url":"https://codeload.github.com/chirpstack/chirpstack-pg-to-sqlite/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chirpstack%2Fchirpstack-pg-to-sqlite/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28750875,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T09:00:19.176Z","status":"ssl_error","status_checked_at":"2026-01-25T09:00:04.131Z","response_time":113,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-22T08:13:39.985Z","updated_at":"2026-01-25T09:32:11.906Z","avatar_url":"https://github.com/chirpstack.png","language":"Go","readme":"# ChirpStack PostgreSQL to SQLite script\n\nThis script connects to a ChirpStack PostgreSQL database, reads the data\nand writes this into s SQLite database. It is intended to migrate the\nChirpStack Gateway OS (full) image from PostgreSQL to SQLite.\n\n## Usage\n\n### CLI\n\n```text\nUsage of ./chirpstack-pg-to-sqlite:\n  -postgres-dsn string\n        PostgreSQL DSN (default \"postgres://chirpstack:chirpstack@localhost/chirpstack?sslmode=disable\")\n  -sqlite-path string\n        Path to SQLite directory (default \"chirpstack.sqlite\")\n```\n\n**Important:**\n\n* The target SQLite database needs to be already initialized with the proper\n  schema. You can use the `chirpstack.empty.sqlite` as a skeleton.\n* This script will remove all data from the target SQLite database.\n\n### ChirpStack Gateway OS\n\nIn the web-interface, under **System \u003e Software**, click the **Upload package**\nbutton and upload the `.ipk` package. This will automatically migrate the\nPostgreSQL database to SQLite (leaving the PostgreSQL database as-is).\n\n## Building from source\n\n```text\n# Build for current architecture\nmake build\n\n# Build ChirpStack Gateway OS (ARMv7) package\nmake build-gateway-os\n```\n\n## Changelog\n\n### v4.0.0\n\nInitial release compatible with ChirpStack v4.9.0 database schema, ChirpStack\nGateway OS v4.5.x.\n\n## License\n\nThis script is distributed under the MIT license. See also `LICENSE`.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchirpstack%2Fchirpstack-pg-to-sqlite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchirpstack%2Fchirpstack-pg-to-sqlite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchirpstack%2Fchirpstack-pg-to-sqlite/lists"}